| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 * Print options section to control printer advanced options. | 9 * Print options section to control printer advanced options. |
| 10 * @param {!print_preview.ticket_items.VendorItems} ticketItem Ticket item to | 10 * @param {!print_preview.ticket_items.VendorItems} ticketItem Ticket item to |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 print_preview.DestinationStore.EventType. | 74 print_preview.DestinationStore.EventType. |
| 75 SELECTED_DESTINATION_CAPABILITIES_READY, | 75 SELECTED_DESTINATION_CAPABILITIES_READY, |
| 76 this.onDestinationChanged_.bind(this)); | 76 this.onDestinationChanged_.bind(this)); |
| 77 }, | 77 }, |
| 78 | 78 |
| 79 /** | 79 /** |
| 80 * @return {!HTMLElement} | 80 * @return {!HTMLElement} |
| 81 * @private | 81 * @private |
| 82 */ | 82 */ |
| 83 getButton_: function() { | 83 getButton_: function() { |
| 84 return assert(this.getChildElement('.advanced-options-settings-button')); | 84 return this.getChildElement('.advanced-options-settings-button'); |
| 85 }, | 85 }, |
| 86 | 86 |
| 87 /** | 87 /** |
| 88 * Called when the destination selection has changed. Updates UI elements. | 88 * Called when the destination selection has changed. Updates UI elements. |
| 89 * @private | 89 * @private |
| 90 */ | 90 */ |
| 91 onDestinationChanged_: function() { | 91 onDestinationChanged_: function() { |
| 92 this.updateUiStateInternal(); | 92 this.updateUiStateInternal(); |
| 93 } | 93 } |
| 94 }; | 94 }; |
| 95 | 95 |
| 96 // Export | 96 // Export |
| 97 return { | 97 return { |
| 98 AdvancedOptionsSettings: AdvancedOptionsSettings | 98 AdvancedOptionsSettings: AdvancedOptionsSettings |
| 99 }; | 99 }; |
| 100 }); | 100 }); |
| OLD | NEW |