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

Unified Diff: chrome/browser/resources/print_preview/data/app_state.js

Issue 575333002: Compile print_preview, part 2: reduce down to 260 errors (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@I_print_preview
Patch Set: Created 6 years, 3 months 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/print_preview/data/app_state.js
diff --git a/chrome/browser/resources/print_preview/data/app_state.js b/chrome/browser/resources/print_preview/data/app_state.js
index ffdda9a13c1ee6b79735bd8469470af02b1377e4..230ad3ea607c21677fa82cac63b229fc9e5f67e1 100644
--- a/chrome/browser/resources/print_preview/data/app_state.js
+++ b/chrome/browser/resources/print_preview/data/app_state.js
@@ -29,30 +29,6 @@ cr.define('print_preview', function() {
};
/**
- * Enumeration of field names for serialized app state.
- * @enum {string}
- */
- AppState.Field = {
- VERSION: 'version',
- SELECTED_DESTINATION_ID: 'selectedDestinationId',
- SELECTED_DESTINATION_ACCOUNT: 'selectedDestinationAccount',
- SELECTED_DESTINATION_ORIGIN: 'selectedDestinationOrigin',
- SELECTED_DESTINATION_CAPABILITIES: 'selectedDestinationCapabilities',
- SELECTED_DESTINATION_NAME: 'selectedDestinationName',
- IS_GCP_PROMO_DISMISSED: 'isGcpPromoDismissed',
- MEDIA_SIZE: 'mediaSize',
- MARGINS_TYPE: 'marginsType',
- CUSTOM_MARGINS: 'customMargins',
- IS_COLOR_ENABLED: 'isColorEnabled',
- IS_DUPLEX_ENABLED: 'isDuplexEnabled',
- IS_HEADER_FOOTER_ENABLED: 'isHeaderFooterEnabled',
- IS_LANDSCAPE_ENABLED: 'isLandscapeEnabled',
- IS_COLLATE_ENABLED: 'isCollateEnabled',
- IS_CSS_BACKGROUND_ENABLED: 'isCssBackgroundEnabled',
- VENDOR_OPTIONS: 'vendorOptions'
- };
-
- /**
* Current version of the app state. This value helps to understand how to
* parse earlier versions of the app state.
* @type {number}
@@ -218,3 +194,27 @@ cr.define('print_preview', function() {
AppState: AppState
};
});
+
+/**
+ * Enumeration of field names for serialized app state.
+ * @enum {string}
+ */
+print_preview.AppState.Field = {
+ VERSION: 'version',
+ SELECTED_DESTINATION_ID: 'selectedDestinationId',
+ SELECTED_DESTINATION_ACCOUNT: 'selectedDestinationAccount',
+ SELECTED_DESTINATION_ORIGIN: 'selectedDestinationOrigin',
+ SELECTED_DESTINATION_CAPABILITIES: 'selectedDestinationCapabilities',
+ SELECTED_DESTINATION_NAME: 'selectedDestinationName',
+ IS_GCP_PROMO_DISMISSED: 'isGcpPromoDismissed',
+ MEDIA_SIZE: 'mediaSize',
+ MARGINS_TYPE: 'marginsType',
+ CUSTOM_MARGINS: 'customMargins',
+ IS_COLOR_ENABLED: 'isColorEnabled',
+ IS_DUPLEX_ENABLED: 'isDuplexEnabled',
+ IS_HEADER_FOOTER_ENABLED: 'isHeaderFooterEnabled',
+ IS_LANDSCAPE_ENABLED: 'isLandscapeEnabled',
+ IS_COLLATE_ENABLED: 'isCollateEnabled',
+ IS_CSS_BACKGROUND_ENABLED: 'isCssBackgroundEnabled',
+ VENDOR_OPTIONS: 'vendorOptions'
+};
Aleksey Shlyapnikov 2014/09/19 18:54:42 What's the reason for this and other similar chang
Vitaly Pavlenko 2014/09/19 20:33:09 Right now Closure Compiler doesn't understand @typ

Powered by Google App Engine
This is Rietveld 408576698