summaryrefslogtreecommitdiff
path: root/chromium/chrome/browser/resources/pdf/constants.js
blob: 475061b73ae8a9430cfcc57dfd4d265470259c02 (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
25
26
27
28
29
30
31
32
33
34
// Copyright 2017 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.

/**
 * Enumeration of page fitting types.
 * @enum {string}
 */
export const FittingType = {
  NONE: 'none',
  FIT_TO_PAGE: 'fit-to-page',
  FIT_TO_WIDTH: 'fit-to-width',
  FIT_TO_HEIGHT: 'fit-to-height',
};

/**
 * Enumeration of two up view actions.
 * @enum {string}
 */
export const TwoUpViewAction = {
  TWO_UP_VIEW_ENABLE: 'two-up-view-enable',
  TWO_UP_VIEW_DISABLE: 'two-up-view-disable',
};

/**
 * Enumeration of save message request types. Must Match SaveRequestType in
 * pdf/out_of_process_instance.h.
 * @enum {number}
 */
export const SaveRequestType = {
  ANNOTATION: 0,
  ORIGINAL: 1,
  EDITED: 2,
};