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

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

Issue 2617663002: WIP: run clang-format-js on lots of things (Closed)
Patch Set: merge Created 3 years, 11 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 * Creates a LayoutSettings object. This object encapsulates all settings and 9 * Creates a LayoutSettings object. This object encapsulates all settings and
10 * logic related to layout mode (portrait/landscape). 10 * logic related to layout mode (portrait/landscape).
(...skipping 27 matching lines...) Expand all
38 }, 38 },
39 39
40 /** @override */ 40 /** @override */
41 set isEnabled(isEnabled) { 41 set isEnabled(isEnabled) {
42 this.select_.disabled = !isEnabled; 42 this.select_.disabled = !isEnabled;
43 }, 43 },
44 44
45 /** @override */ 45 /** @override */
46 enterDocument: function() { 46 enterDocument: function() {
47 print_preview.SettingsSection.prototype.enterDocument.call(this); 47 print_preview.SettingsSection.prototype.enterDocument.call(this);
48 this.tracker.add( 48 this.tracker.add(this.select_, 'change', this.onSelectChange_.bind(this));
49 this.select_, 'change', this.onSelectChange_.bind(this));
50 this.tracker.add( 49 this.tracker.add(
51 this.landscapeTicketItem_, 50 this.landscapeTicketItem_,
52 print_preview.ticket_items.TicketItem.EventType.CHANGE, 51 print_preview.ticket_items.TicketItem.EventType.CHANGE,
53 this.onLandscapeTicketItemChange_.bind(this)); 52 this.onLandscapeTicketItemChange_.bind(this));
54 }, 53 },
55 54
56 /** 55 /**
57 * Called when the select element is changed. Updates the print ticket 56 * Called when the select element is changed. Updates the print ticket
58 * layout selection. 57 * layout selection.
59 * @private 58 * @private
(...skipping 28 matching lines...) Expand all
88 select.selectedIndex = i; 87 select.selectedIndex = i;
89 break; 88 break;
90 } 89 }
91 } 90 }
92 } 91 }
93 this.updateUiStateInternal(); 92 this.updateUiStateInternal();
94 } 93 }
95 }; 94 };
96 95
97 // Export 96 // Export
98 return { 97 return {LayoutSettings: LayoutSettings};
99 LayoutSettings: LayoutSettings
100 };
101 }); 98 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698