summaryrefslogtreecommitdiffstats
path: root/chromium/chrome/browser/resources/print_preview/data/scaling.js
blob: 49c8d5b912df5ed2da53828816eb5e7a692736bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Copyright (c) 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

cr.define('print_preview', function() {
  'use strict';

  /**
   * Must be kept in sync with the C++ ScalingType enum in
   * printing/print_job_constants.h.
   * @enum {number}
   */
  const ScalingType = {
    DEFAULT: 0,
    FIT_TO_PAGE: 1,
    FIT_TO_PAPER: 2,
    CUSTOM: 3,
  };

  // Export
  return {
    ScalingType: ScalingType,
  };
});