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

Side by Side Diff: chrome/browser/resources/print_preview/settings/media_size_settings.js

Issue 606213002: Compile print_preview, part 6: reduce down to 48 errors (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@J_print_preview_5
Patch Set: Created 6 years, 2 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 unified diff | Download patch
OLDNEW
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 * Encapsulates all settings and logic related to the media size selection UI. 9 * Encapsulates all settings and logic related to the media size selection UI.
10 * @param {!print_preview.ticket_items.MediaSize} ticketItem Used to read and 10 * @param {!print_preview.ticket_items.MediaSize} ticketItem Used to read and
(...skipping 22 matching lines...) Expand all
33 }, 33 },
34 34
35 /** @override */ 35 /** @override */
36 set isEnabled(isEnabled) { 36 set isEnabled(isEnabled) {
37 this.select_.disabled = !isEnabled; 37 this.select_.disabled = !isEnabled;
38 }, 38 },
39 39
40 /** @override */ 40 /** @override */
41 enterDocument: function() { 41 enterDocument: function() {
42 print_preview.SettingsSection.prototype.enterDocument.call(this); 42 print_preview.SettingsSection.prototype.enterDocument.call(this);
43 this.tracker.add(this.select_, 'change', this.onSelectChange_.bind(this)); 43 this.tracker.add(assert(this.select_),
44 'change',
45 this.onSelectChange_.bind(this));
44 this.tracker.add( 46 this.tracker.add(
45 this.ticketItem_, 47 this.ticketItem_,
46 print_preview.ticket_items.TicketItem.EventType.CHANGE, 48 print_preview.ticket_items.TicketItem.EventType.CHANGE,
47 this.onTicketItemChange_.bind(this)); 49 this.onTicketItemChange_.bind(this));
48 }, 50 },
49 51
50 /** 52 /**
51 * @return {HTMLSelectElement} Select element containing media size options. 53 * @return {HTMLSelectElement} Select element containing media size options.
52 * @private 54 * @private
53 */ 55 */
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 this.updateSelect_(); 141 this.updateSelect_();
140 this.updateUiStateInternal(); 142 this.updateUiStateInternal();
141 } 143 }
142 }; 144 };
143 145
144 // Export 146 // Export
145 return { 147 return {
146 MediaSizeSettings: MediaSizeSettings 148 MediaSizeSettings: MediaSizeSettings
147 }; 149 };
148 }); 150 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698