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

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

Issue 8395006: Print Preview: Hiding header/footer options when 'no margins' is selected (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebasing Created 9 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/resources/print_preview/margin_settings.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 // Names of all the custom events used. 109 // Names of all the custom events used.
110 var customEvents = { 110 var customEvents = {
111 // Fired when the mouse moves while a margin line is being dragged. 111 // Fired when the mouse moves while a margin line is being dragged.
112 MARGIN_LINE_DRAG: 'marginLineDrag', 112 MARGIN_LINE_DRAG: 'marginLineDrag',
113 // Fired when a mousedown event occurs on a margin line. 113 // Fired when a mousedown event occurs on a margin line.
114 MARGIN_LINE_MOUSE_DOWN: 'marginLineMouseDown', 114 MARGIN_LINE_MOUSE_DOWN: 'marginLineMouseDown',
115 // Fired when a margin textbox gains focus. 115 // Fired when a margin textbox gains focus.
116 MARGIN_TEXTBOX_FOCUSED: 'marginTextboxFocused', 116 MARGIN_TEXTBOX_FOCUSED: 'marginTextboxFocused',
117 // Fired when a new preview might be needed because of margin changes. 117 // Fired when a new preview might be needed because of margin changes.
118 MARGINS_MAY_HAVE_CHANGED: 'marginsMayHaveChanged', 118 MARGINS_MAY_HAVE_CHANGED: 'marginsMayHaveChanged',
119 // Fired when the margins selection in the dropdown changes.
120 MARGINS_SELECTION_CHANGED: 'marginsSelectionChanged',
119 // Fired when a pdf generation related error occurs. 121 // Fired when a pdf generation related error occurs.
120 PDF_GENERATION_ERROR: 'PDFGenerationError', 122 PDF_GENERATION_ERROR: 'PDFGenerationError',
121 // Fired once the first page of the pdf document is loaded in the plugin. 123 // Fired once the first page of the pdf document is loaded in the plugin.
122 PDF_LOADED: 'PDFLoaded', 124 PDF_LOADED: 'PDFLoaded',
123 // Fired when the selected printer capabilities change. 125 // Fired when the selected printer capabilities change.
124 PRINTER_CAPABILITIES_UPDATED: 'printerCapabilitiesUpdated', 126 PRINTER_CAPABILITIES_UPDATED: 'printerCapabilitiesUpdated',
125 // Fired when the print button needs to be updated. 127 // Fired when the print button needs to be updated.
126 UPDATE_PRINT_BUTTON: 'updatePrintButton', 128 UPDATE_PRINT_BUTTON: 'updatePrintButton',
127 // Fired when the print summary needs to be updated. 129 // Fired when the print summary needs to be updated.
128 UPDATE_SUMMARY: 'updateSummary' 130 UPDATE_SUMMARY: 'updateSummary'
(...skipping 1021 matching lines...) Expand 10 before | Expand all | Expand 10 after
1150 <include src="copies_settings.js"/> 1152 <include src="copies_settings.js"/>
1151 <include src="header_footer_settings.js"/> 1153 <include src="header_footer_settings.js"/>
1152 <include src="layout_settings.js"/> 1154 <include src="layout_settings.js"/>
1153 <include src="color_settings.js"/> 1155 <include src="color_settings.js"/>
1154 <include src="margin_settings.js"/> 1156 <include src="margin_settings.js"/>
1155 <include src="margin_textbox.js"/> 1157 <include src="margin_textbox.js"/>
1156 <include src="margin_utils.js"/> 1158 <include src="margin_utils.js"/>
1157 <include src="margins_ui.js"/> 1159 <include src="margins_ui.js"/>
1158 <include src="margins_ui_pair.js"/> 1160 <include src="margins_ui_pair.js"/>
1159 <include src="preview_area.js"/> 1161 <include src="preview_area.js"/>
OLDNEW
« no previous file with comments | « chrome/browser/resources/print_preview/margin_settings.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698