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

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

Issue 565213005: Make Print Preview elements transitions smoother. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 // TODO(rltoscano): Move data/* into print_preview.data namespace 5 // TODO(rltoscano): Move data/* into print_preview.data namespace
6 6
7 var localStrings = new LocalStrings(templateData); 7 var localStrings = new LocalStrings(templateData);
8 8
9 <include src="component.js"/> 9 <include src="component.js"/>
10 <include src="print_preview_focus_manager.js"/> 10 <include src="print_preview_focus_manager.js"/>
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 */ 174 */
175 this.advancedSettings_ = new print_preview.AdvancedSettings( 175 this.advancedSettings_ = new print_preview.AdvancedSettings(
176 this.printTicketStore_); 176 this.printTicketStore_);
177 this.addChild(this.advancedSettings_); 177 this.addChild(this.advancedSettings_);
178 178
179 /** 179 /**
180 * Component representing more/less settings button. 180 * Component representing more/less settings button.
181 * @type {!print_preview.MoreSettings} 181 * @type {!print_preview.MoreSettings}
182 * @private 182 * @private
183 */ 183 */
184 this.moreSettings_ = new print_preview.MoreSettings([ 184 var settingsSections = [
185 this.destinationSettings_, 185 this.destinationSettings_,
186 this.pageSettings_, 186 this.pageSettings_,
187 this.copiesSettings_, 187 this.copiesSettings_,
188 this.mediaSizeSettings_, 188 this.mediaSizeSettings_,
189 this.layoutSettings_, 189 this.layoutSettings_,
190 this.marginSettings_, 190 this.marginSettings_,
191 this.colorSettings_, 191 this.colorSettings_,
192 this.otherOptionsSettings_, 192 this.otherOptionsSettings_,
193 this.advancedOptionsSettings_]); 193 this.advancedOptionsSettings_];
194 this.moreSettings_ = new print_preview.MoreSettings(
195 this.destinationStore_, settingsSections);
194 this.addChild(this.moreSettings_); 196 this.addChild(this.moreSettings_);
195 197
196 /** 198 /**
197 * Area of the UI that holds the print preview. 199 * Area of the UI that holds the print preview.
198 * @type {!print_preview.PreviewArea} 200 * @type {!print_preview.PreviewArea}
199 * @private 201 * @private
200 */ 202 */
201 this.previewArea_ = new print_preview.PreviewArea(this.destinationStore_, 203 this.previewArea_ = new print_preview.PreviewArea(this.destinationStore_,
202 this.printTicketStore_, 204 this.printTicketStore_,
203 this.nativeLayer_, 205 this.nativeLayer_,
(...skipping 1080 matching lines...) Expand 10 before | Expand all | Expand 10 after
1284 <include src="search/cloud_destination_list.js"/> 1286 <include src="search/cloud_destination_list.js"/>
1285 <include src="search/recent_destination_list.js"/> 1287 <include src="search/recent_destination_list.js"/>
1286 <include src="search/destination_list_item.js"/> 1288 <include src="search/destination_list_item.js"/>
1287 <include src="search/destination_search.js"/> 1289 <include src="search/destination_search.js"/>
1288 <include src="search/fedex_tos.js"/> 1290 <include src="search/fedex_tos.js"/>
1289 1291
1290 window.addEventListener('DOMContentLoaded', function() { 1292 window.addEventListener('DOMContentLoaded', function() {
1291 printPreview = new print_preview.PrintPreview(); 1293 printPreview = new print_preview.PrintPreview();
1292 printPreview.initialize(); 1294 printPreview.initialize();
1293 }); 1295 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698