Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(278)

Side by Side Diff: chrome/browser/resources/print_preview/data/app_state.js

Issue 692303002: Add DPI option selection to Print Preview. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Do not show DPI selection if there's only one option available. Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 22 matching lines...) Expand all
33 * @enum {string} 33 * @enum {string}
34 */ 34 */
35 AppState.Field = { 35 AppState.Field = {
36 VERSION: 'version', 36 VERSION: 'version',
37 SELECTED_DESTINATION_ID: 'selectedDestinationId', 37 SELECTED_DESTINATION_ID: 'selectedDestinationId',
38 SELECTED_DESTINATION_ACCOUNT: 'selectedDestinationAccount', 38 SELECTED_DESTINATION_ACCOUNT: 'selectedDestinationAccount',
39 SELECTED_DESTINATION_ORIGIN: 'selectedDestinationOrigin', 39 SELECTED_DESTINATION_ORIGIN: 'selectedDestinationOrigin',
40 SELECTED_DESTINATION_CAPABILITIES: 'selectedDestinationCapabilities', 40 SELECTED_DESTINATION_CAPABILITIES: 'selectedDestinationCapabilities',
41 SELECTED_DESTINATION_NAME: 'selectedDestinationName', 41 SELECTED_DESTINATION_NAME: 'selectedDestinationName',
42 IS_GCP_PROMO_DISMISSED: 'isGcpPromoDismissed', 42 IS_GCP_PROMO_DISMISSED: 'isGcpPromoDismissed',
43 DPI: 'dpi',
43 MEDIA_SIZE: 'mediaSize', 44 MEDIA_SIZE: 'mediaSize',
44 MARGINS_TYPE: 'marginsType', 45 MARGINS_TYPE: 'marginsType',
45 CUSTOM_MARGINS: 'customMargins', 46 CUSTOM_MARGINS: 'customMargins',
46 IS_COLOR_ENABLED: 'isColorEnabled', 47 IS_COLOR_ENABLED: 'isColorEnabled',
47 IS_DUPLEX_ENABLED: 'isDuplexEnabled', 48 IS_DUPLEX_ENABLED: 'isDuplexEnabled',
48 IS_HEADER_FOOTER_ENABLED: 'isHeaderFooterEnabled', 49 IS_HEADER_FOOTER_ENABLED: 'isHeaderFooterEnabled',
49 IS_LANDSCAPE_ENABLED: 'isLandscapeEnabled', 50 IS_LANDSCAPE_ENABLED: 'isLandscapeEnabled',
50 IS_COLLATE_ENABLED: 'isCollateEnabled', 51 IS_COLLATE_ENABLED: 'isCollateEnabled',
51 IS_CSS_BACKGROUND_ENABLED: 'isCssBackgroundEnabled', 52 IS_CSS_BACKGROUND_ENABLED: 'isCssBackgroundEnabled',
52 VENDOR_OPTIONS: 'vendorOptions' 53 VENDOR_OPTIONS: 'vendorOptions'
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 persist_: function() { 215 persist_: function() {
215 chrome.send(AppState.NATIVE_FUNCTION_NAME_, 216 chrome.send(AppState.NATIVE_FUNCTION_NAME_,
216 [JSON.stringify(this.state_)]); 217 [JSON.stringify(this.state_)]);
217 } 218 }
218 }; 219 };
219 220
220 return { 221 return {
221 AppState: AppState 222 AppState: AppState
222 }; 223 };
223 }); 224 });
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/resources/print_preview/data/print_ticket_store.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698