Chromium Code Reviews| Index: chrome/browser/resources/print_preview/data/print_ticket_store.js |
| diff --git a/chrome/browser/resources/print_preview/data/print_ticket_store.js b/chrome/browser/resources/print_preview/data/print_ticket_store.js |
| index c23a98000ef411e112747008d6af60bf94775521..7c68106b700e4a03090480b8c3f5c3b1e74f4848 100644 |
| --- a/chrome/browser/resources/print_preview/data/print_ticket_store.js |
| +++ b/chrome/browser/resources/print_preview/data/print_ticket_store.js |
| @@ -305,52 +305,62 @@ cr.define('print_preview', function() { |
| // Initialize ticket with user's previous values. |
| if (this.appState_.hasField( |
| print_preview.AppState.Field.IS_COLOR_ENABLED)) { |
| - this.color_.updateValue(this.appState_.getField( |
| - print_preview.AppState.Field.IS_COLOR_ENABLED)); |
| + this.color_.updateValue( |
| + /** @type {!Object} */(this.appState_.getField( |
| + print_preview.AppState.Field.IS_COLOR_ENABLED))); |
| } |
| if (this.appState_.hasField( |
| print_preview.AppState.Field.IS_DUPLEX_ENABLED)) { |
| - this.duplex_.updateValue(this.appState_.getField( |
| - print_preview.AppState.Field.IS_DUPLEX_ENABLED)); |
| + this.duplex_.updateValue( |
| + /** @type {!Object} */(this.appState_.getField( |
| + print_preview.AppState.Field.IS_DUPLEX_ENABLED))); |
| } |
| if (this.appState_.hasField(print_preview.AppState.Field.MEDIA_SIZE)) { |
| - this.mediaSize_.updateValue(this.appState_.getField( |
| - print_preview.AppState.Field.MEDIA_SIZE)); |
| + this.mediaSize_.updateValue( |
| + /** @type {!Object} */(this.appState_.getField( |
| + print_preview.AppState.Field.MEDIA_SIZE))); |
| } |
| if (this.appState_.hasField( |
| print_preview.AppState.Field.IS_LANDSCAPE_ENABLED)) { |
| - this.landscape_.updateValue(this.appState_.getField( |
| - print_preview.AppState.Field.IS_LANDSCAPE_ENABLED)); |
| + this.landscape_.updateValue( |
| + /** @type {!Object} */(this.appState_.getField( |
| + print_preview.AppState.Field.IS_LANDSCAPE_ENABLED))); |
| } |
| // Initialize margins after landscape because landscape may reset margins. |
| if (this.appState_.hasField(print_preview.AppState.Field.MARGINS_TYPE)) { |
| this.marginsType_.updateValue( |
| - this.appState_.getField(print_preview.AppState.Field.MARGINS_TYPE)); |
| + /** @type {!Object} */(this.appState_.getField( |
| + print_preview.AppState.Field.MARGINS_TYPE))); |
| } |
| if (this.appState_.hasField( |
| print_preview.AppState.Field.CUSTOM_MARGINS)) { |
| - this.customMargins_.updateValue(this.appState_.getField( |
| - print_preview.AppState.Field.CUSTOM_MARGINS)); |
| + this.customMargins_.updateValue( |
| + /** @type {!Object} */(this.appState_.getField( |
| + print_preview.AppState.Field.CUSTOM_MARGINS))); |
| } |
| if (this.appState_.hasField( |
| print_preview.AppState.Field.IS_HEADER_FOOTER_ENABLED)) { |
| - this.headerFooter_.updateValue(this.appState_.getField( |
| - print_preview.AppState.Field.IS_HEADER_FOOTER_ENABLED)); |
| + this.headerFooter_.updateValue( |
| + /** @type {!Object} */(this.appState_.getField( |
| + print_preview.AppState.Field.IS_HEADER_FOOTER_ENABLED))); |
| } |
| if (this.appState_.hasField( |
| print_preview.AppState.Field.IS_COLLATE_ENABLED)) { |
| - this.collate_.updateValue(this.appState_.getField( |
| - print_preview.AppState.Field.IS_COLLATE_ENABLED)); |
| + this.collate_.updateValue( |
| + /** @type {!Object} */(this.appState_.getField( |
| + print_preview.AppState.Field.IS_COLLATE_ENABLED))); |
| } |
| if (this.appState_.hasField( |
| print_preview.AppState.Field.IS_CSS_BACKGROUND_ENABLED)) { |
| - this.cssBackground_.updateValue(this.appState_.getField( |
| - print_preview.AppState.Field.IS_CSS_BACKGROUND_ENABLED)); |
| + this.cssBackground_.updateValue( |
| + /** @type {!Object} */(this.appState_.getField( |
| + print_preview.AppState.Field.IS_CSS_BACKGROUND_ENABLED))); |
| } |
| if (this.appState_.hasField( |
| print_preview.AppState.Field.VENDOR_OPTIONS)) { |
| - this.vendorItems_.updateValue(this.appState_.getField( |
| - print_preview.AppState.Field.VENDOR_OPTIONS)); |
| + this.vendorItems_.updateValue( |
| + /** @type {!Object.<string,string>} */(this.appState_.getField( |
|
Aleksey Shlyapnikov
2014/09/22 22:00:40
Space after comma.
Vitaly Pavlenko
2014/09/22 22:33:11
Done.
|
| + print_preview.AppState.Field.VENDOR_OPTIONS))); |
| } |
| }, |