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

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

Issue 2524143003: Print Preview: Add option to rasterize PDFs and add JPEG compression. (Closed)
Patch Set: Clean up JS Created 4 years 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 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 /** 181 /**
182 * Component that renders miscellaneous print options. 182 * Component that renders miscellaneous print options.
183 * @type {!print_preview.OtherOptionsSettings} 183 * @type {!print_preview.OtherOptionsSettings}
184 * @private 184 * @private
185 */ 185 */
186 this.otherOptionsSettings_ = new print_preview.OtherOptionsSettings( 186 this.otherOptionsSettings_ = new print_preview.OtherOptionsSettings(
187 this.printTicketStore_.duplex, 187 this.printTicketStore_.duplex,
188 this.printTicketStore_.fitToPage, 188 this.printTicketStore_.fitToPage,
189 this.printTicketStore_.cssBackground, 189 this.printTicketStore_.cssBackground,
190 this.printTicketStore_.selectionOnly, 190 this.printTicketStore_.selectionOnly,
191 this.printTicketStore_.headerFooter); 191 this.printTicketStore_.headerFooter,
192 this.printTicketStore_.rasterize);
192 this.addChild(this.otherOptionsSettings_); 193 this.addChild(this.otherOptionsSettings_);
193 194
194 /** 195 /**
195 * Component that renders the advanced options button. 196 * Component that renders the advanced options button.
196 * @type {!print_preview.AdvancedOptionsSettings} 197 * @type {!print_preview.AdvancedOptionsSettings}
197 * @private 198 * @private
198 */ 199 */
199 this.advancedOptionsSettings_ = new print_preview.AdvancedOptionsSettings( 200 this.advancedOptionsSettings_ = new print_preview.AdvancedOptionsSettings(
200 this.printTicketStore_.vendorItems, this.destinationStore_); 201 this.printTicketStore_.vendorItems, this.destinationStore_);
201 this.addChild(this.advancedOptionsSettings_); 202 this.addChild(this.advancedOptionsSettings_);
(...skipping 1113 matching lines...) Expand 10 before | Expand all | Expand 10 after
1315 <include src="data/ticket_items/duplex.js"> 1316 <include src="data/ticket_items/duplex.js">
1316 <include src="data/ticket_items/header_footer.js"> 1317 <include src="data/ticket_items/header_footer.js">
1317 <include src="data/ticket_items/media_size.js"> 1318 <include src="data/ticket_items/media_size.js">
1318 <include src="data/ticket_items/scaling.js"> 1319 <include src="data/ticket_items/scaling.js">
1319 <include src="data/ticket_items/landscape.js"> 1320 <include src="data/ticket_items/landscape.js">
1320 <include src="data/ticket_items/margins_type.js"> 1321 <include src="data/ticket_items/margins_type.js">
1321 <include src="data/ticket_items/page_range.js"> 1322 <include src="data/ticket_items/page_range.js">
1322 <include src="data/ticket_items/fit_to_page.js"> 1323 <include src="data/ticket_items/fit_to_page.js">
1323 <include src="data/ticket_items/css_background.js"> 1324 <include src="data/ticket_items/css_background.js">
1324 <include src="data/ticket_items/selection_only.js"> 1325 <include src="data/ticket_items/selection_only.js">
1326 <include src="data/ticket_items/rasterize.js">
1325 <include src="data/ticket_items/vendor_items.js"> 1327 <include src="data/ticket_items/vendor_items.js">
1326 1328
1327 <include src="native_layer.js"> 1329 <include src="native_layer.js">
1328 <include src="print_preview_animations.js"> 1330 <include src="print_preview_animations.js">
1329 <include src="cloud_print_interface.js"> 1331 <include src="cloud_print_interface.js">
1330 <include src="print_preview_utils.js"> 1332 <include src="print_preview_utils.js">
1331 <include src="print_header.js"> 1333 <include src="print_header.js">
1332 <include src="metrics.js"> 1334 <include src="metrics.js">
1333 1335
1334 <include src="settings/settings_section.js"> 1336 <include src="settings/settings_section.js">
(...skipping 24 matching lines...) Expand all
1359 <include src="search/recent_destination_list.js"> 1361 <include src="search/recent_destination_list.js">
1360 <include src="search/destination_list_item.js"> 1362 <include src="search/destination_list_item.js">
1361 <include src="search/destination_search.js"> 1363 <include src="search/destination_search.js">
1362 <include src="search/fedex_tos.js"> 1364 <include src="search/fedex_tos.js">
1363 <include src="search/provisional_destination_resolver.js"> 1365 <include src="search/provisional_destination_resolver.js">
1364 1366
1365 window.addEventListener('DOMContentLoaded', function() { 1367 window.addEventListener('DOMContentLoaded', function() {
1366 printPreview = new print_preview.PrintPreview(); 1368 printPreview = new print_preview.PrintPreview();
1367 printPreview.initialize(); 1369 printPreview.initialize();
1368 }); 1370 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698