OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 cr.define('print_preview', function() { | 5 cr.define('print_preview', function() { |
6 'use strict'; | 6 'use strict'; |
7 | 7 |
8 /** | 8 /** |
9 * Object used to get and persist the print preview application state. | 9 * Object used to get and persist the print preview application state. |
10 * @constructor | 10 * @constructor |
(...skipping 30 matching lines...) Expand all Loading... |
41 SELECTED_DESTINATION_NAME: 'selectedDestinationName', | 41 SELECTED_DESTINATION_NAME: 'selectedDestinationName', |
42 SELECTED_DESTINATION_EXTENSION_ID: 'selectedDestinationExtensionId', | 42 SELECTED_DESTINATION_EXTENSION_ID: 'selectedDestinationExtensionId', |
43 SELECTED_DESTINATION_EXTENSION_NAME: 'selectedDestinationExtensionName', | 43 SELECTED_DESTINATION_EXTENSION_NAME: 'selectedDestinationExtensionName', |
44 IS_GCP_PROMO_DISMISSED: 'isGcpPromoDismissed', | 44 IS_GCP_PROMO_DISMISSED: 'isGcpPromoDismissed', |
45 DPI: 'dpi', | 45 DPI: 'dpi', |
46 MEDIA_SIZE: 'mediaSize', | 46 MEDIA_SIZE: 'mediaSize', |
47 MARGINS_TYPE: 'marginsType', | 47 MARGINS_TYPE: 'marginsType', |
48 CUSTOM_MARGINS: 'customMargins', | 48 CUSTOM_MARGINS: 'customMargins', |
49 IS_COLOR_ENABLED: 'isColorEnabled', | 49 IS_COLOR_ENABLED: 'isColorEnabled', |
50 IS_DUPLEX_ENABLED: 'isDuplexEnabled', | 50 IS_DUPLEX_ENABLED: 'isDuplexEnabled', |
| 51 IS_PRINT_FRIENDLY_ENABLED: 'isPrintFriendlyEnabled', |
51 IS_HEADER_FOOTER_ENABLED: 'isHeaderFooterEnabled', | 52 IS_HEADER_FOOTER_ENABLED: 'isHeaderFooterEnabled', |
52 IS_LANDSCAPE_ENABLED: 'isLandscapeEnabled', | 53 IS_LANDSCAPE_ENABLED: 'isLandscapeEnabled', |
53 IS_COLLATE_ENABLED: 'isCollateEnabled', | 54 IS_COLLATE_ENABLED: 'isCollateEnabled', |
54 IS_CSS_BACKGROUND_ENABLED: 'isCssBackgroundEnabled', | 55 IS_CSS_BACKGROUND_ENABLED: 'isCssBackgroundEnabled', |
55 VENDOR_OPTIONS: 'vendorOptions' | 56 VENDOR_OPTIONS: 'vendorOptions' |
56 }; | 57 }; |
57 | 58 |
58 /** | 59 /** |
59 * Current version of the app state. This value helps to understand how to | 60 * Current version of the app state. This value helps to understand how to |
60 * parse earlier versions of the app state. | 61 * parse earlier versions of the app state. |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
236 persist_: function() { | 237 persist_: function() { |
237 chrome.send(AppState.NATIVE_FUNCTION_NAME_, | 238 chrome.send(AppState.NATIVE_FUNCTION_NAME_, |
238 [JSON.stringify(this.state_)]); | 239 [JSON.stringify(this.state_)]); |
239 } | 240 } |
240 }; | 241 }; |
241 | 242 |
242 return { | 243 return { |
243 AppState: AppState | 244 AppState: AppState |
244 }; | 245 }; |
245 }); | 246 }); |
OLD | NEW |