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

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

Issue 8345025: Print Preview: Adding support for localized margin units and format. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removing tests Created 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 // require: cr/ui/print_preview_cloud.js 5 // require: cr/ui/print_preview_cloud.js
6 6
7 var localStrings = new LocalStrings(); 7 var localStrings = new LocalStrings();
8 8
9 // If useCloudPrint is true we attempt to connect to cloud print 9 // If useCloudPrint is true we attempt to connect to cloud print
10 // and populate the list of printers with cloud print printers. 10 // and populate the list of printers with cloud print printers.
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 copiesSettings = print_preview.CopiesSettings.getInstance(); 135 copiesSettings = print_preview.CopiesSettings.getInstance();
136 layoutSettings = print_preview.LayoutSettings.getInstance(); 136 layoutSettings = print_preview.LayoutSettings.getInstance();
137 marginSettings = print_preview.MarginSettings.getInstance(); 137 marginSettings = print_preview.MarginSettings.getInstance();
138 headerFooterSettings = print_preview.HeaderFooterSettings.getInstance(); 138 headerFooterSettings = print_preview.HeaderFooterSettings.getInstance();
139 colorSettings = print_preview.ColorSettings.getInstance(); 139 colorSettings = print_preview.ColorSettings.getInstance();
140 $('printer-list').onchange = updateControlsWithSelectedPrinterCapabilities; 140 $('printer-list').onchange = updateControlsWithSelectedPrinterCapabilities;
141 141
142 previewArea.showLoadingAnimation(); 142 previewArea.showLoadingAnimation();
143 chrome.send('getInitiatorTabTitle'); 143 chrome.send('getInitiatorTabTitle');
144 chrome.send('getDefaultPrinter'); 144 chrome.send('getDefaultPrinter');
145 chrome.send('getNumberFormatAndMeasurementSystem');
145 } 146 }
146 147
147 /** 148 /**
148 * Disables the input elements in the sidebar. 149 * Disables the input elements in the sidebar.
149 */ 150 */
150 function disableInputElementsInSidebar() { 151 function disableInputElementsInSidebar() {
151 var els = $('sidebar').querySelectorAll('input, button, select'); 152 var els = $('sidebar').querySelectorAll('input, button, select');
152 for (var i = 0; i < els.length; i++) { 153 for (var i = 0; i < els.length; i++) {
153 if (els[i] == printHeader.cancelButton) 154 if (els[i] == printHeader.cancelButton)
154 continue; 155 continue;
(...skipping 913 matching lines...) Expand 10 before | Expand all | Expand 10 after
1068 <include src="copies_settings.js"/> 1069 <include src="copies_settings.js"/>
1069 <include src="header_footer_settings.js"/> 1070 <include src="header_footer_settings.js"/>
1070 <include src="layout_settings.js"/> 1071 <include src="layout_settings.js"/>
1071 <include src="color_settings.js"/> 1072 <include src="color_settings.js"/>
1072 <include src="margin_settings.js"/> 1073 <include src="margin_settings.js"/>
1073 <include src="margin_textbox.js"/> 1074 <include src="margin_textbox.js"/>
1074 <include src="margin_utils.js"/> 1075 <include src="margin_utils.js"/>
1075 <include src="margins_ui.js"/> 1076 <include src="margins_ui.js"/>
1076 <include src="margins_ui_pair.js"/> 1077 <include src="margins_ui_pair.js"/>
1077 <include src="preview_area.js"/> 1078 <include src="preview_area.js"/>
OLDNEW
« no previous file with comments | « chrome/browser/resources/print_preview/margin_utils.js ('k') | chrome/browser/resources/print_preview/print_preview_utils.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698