Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / resources / print_preview / data / app_state.js
index ffdda9a..a8ebb06 100644 (file)
@@ -12,7 +12,7 @@ cr.define('print_preview', function() {
   function AppState() {
     /**
      * Internal representation of application state.
-     * @type {Object.<string: Object>}
+     * @type {Object}
      * @private
      */
     this.state_ = {};
@@ -40,6 +40,7 @@ cr.define('print_preview', function() {
     SELECTED_DESTINATION_CAPABILITIES: 'selectedDestinationCapabilities',
     SELECTED_DESTINATION_NAME: 'selectedDestinationName',
     IS_GCP_PROMO_DISMISSED: 'isGcpPromoDismissed',
+    DPI: 'dpi',
     MEDIA_SIZE: 'mediaSize',
     MARGINS_TYPE: 'marginsType',
     CUSTOM_MARGINS: 'customMargins',
@@ -80,7 +81,10 @@ cr.define('print_preview', function() {
       return this.state_[AppState.Field.SELECTED_DESTINATION_ACCOUNT];
     },
 
-    /** @return {?string} Origin of the selected destination. */
+    /**
+     * @return {?print_preview.Destination.Origin.<string>} Origin of the
+     *     selected destination.
+     */
     get selectedDestinationOrigin() {
       return this.state_[AppState.Field.SELECTED_DESTINATION_ORIGIN];
     },
@@ -111,7 +115,7 @@ cr.define('print_preview', function() {
 
     /**
      * @param {!print_preview.AppState.Field} field App state field to get.
-     * @return {Object} Value of the app state field.
+     * @return {?} Value of the app state field.
      */
     getField: function(field) {
       if (field == AppState.Field.CUSTOM_MARGINS) {
@@ -163,7 +167,7 @@ cr.define('print_preview', function() {
     /**
      * Persists the given value for the given field.
      * @param {!print_preview.AppState.Field} field Field to persist.
-     * @param {Object} value Value of field to persist.
+     * @param {?} value Value of field to persist.
      */
     persistField: function(field, value) {
       if (!this.isInitialized_)