OLD | NEW |
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 Loading... |
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 Loading... |
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"/> |
OLD | NEW |