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

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

Issue 601303002: Do not show Advanced Settings for FedEx and Mobile destinations. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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 (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 <include src="component.js"> 7 <include src="component.js">
8 <include src="print_preview_focus_manager.js"> 8 <include src="print_preview_focus_manager.js">
9 9
10 cr.define('print_preview', function() { 10 cr.define('print_preview', function() {
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 this.printTicketStore_.selectionOnly, 162 this.printTicketStore_.selectionOnly,
163 this.printTicketStore_.headerFooter); 163 this.printTicketStore_.headerFooter);
164 this.addChild(this.otherOptionsSettings_); 164 this.addChild(this.otherOptionsSettings_);
165 165
166 /** 166 /**
167 * Component that renders the advanced options button. 167 * Component that renders the advanced options button.
168 * @type {!print_preview.AdvancedOptionsSettings} 168 * @type {!print_preview.AdvancedOptionsSettings}
169 * @private 169 * @private
170 */ 170 */
171 this.advancedOptionsSettings_ = new print_preview.AdvancedOptionsSettings( 171 this.advancedOptionsSettings_ = new print_preview.AdvancedOptionsSettings(
172 this.destinationStore_); 172 this.printTicketStore_.vendorItems, this.destinationStore_);
173 this.addChild(this.advancedOptionsSettings_); 173 this.addChild(this.advancedOptionsSettings_);
174 174
175 /** 175 /**
176 * Component used to search for print destinations. 176 * Component used to search for print destinations.
177 * @type {!print_preview.AdvancedSettings} 177 * @type {!print_preview.AdvancedSettings}
178 * @private 178 * @private
179 */ 179 */
180 this.advancedSettings_ = new print_preview.AdvancedSettings( 180 this.advancedSettings_ = new print_preview.AdvancedSettings(
181 this.printTicketStore_); 181 this.printTicketStore_);
182 this.addChild(this.advancedSettings_); 182 this.addChild(this.advancedSettings_);
(...skipping 1118 matching lines...) Expand 10 before | Expand all | Expand 10 after
1301 <include src="search/cloud_destination_list.js"> 1301 <include src="search/cloud_destination_list.js">
1302 <include src="search/recent_destination_list.js"> 1302 <include src="search/recent_destination_list.js">
1303 <include src="search/destination_list_item.js"> 1303 <include src="search/destination_list_item.js">
1304 <include src="search/destination_search.js"> 1304 <include src="search/destination_search.js">
1305 <include src="search/fedex_tos.js"> 1305 <include src="search/fedex_tos.js">
1306 1306
1307 window.addEventListener('DOMContentLoaded', function() { 1307 window.addEventListener('DOMContentLoaded', function() {
1308 printPreview = new print_preview.PrintPreview(); 1308 printPreview = new print_preview.PrintPreview();
1309 printPreview.initialize(); 1309 printPreview.initialize();
1310 }); 1310 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698