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

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

Issue 595153003: Compile print_preview, part 5: reduce down to 104 errors (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@I_print_preview_4
Patch Set: revert movement of enums: now handle in compiler pass 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 cr.exportPath('print_preview'); 5 cr.exportPath('print_preview');
6 6
7 /** 7 /**
8 * @typedef {{selectSaveAsPdfDestination: boolean, 8 * @typedef {{selectSaveAsPdfDestination: boolean,
9 * layoutSettings.portrait: boolean, 9 * layoutSettings.portrait: boolean,
10 * pageRange: string, 10 * pageRange: string,
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 }, 202 },
203 203
204 /** 204 /**
205 * Requests that a preview be generated. The following events may be 205 * Requests that a preview be generated. The following events may be
206 * dispatched in response: 206 * dispatched in response:
207 * - PAGE_COUNT_READY 207 * - PAGE_COUNT_READY
208 * - PAGE_LAYOUT_READY 208 * - PAGE_LAYOUT_READY
209 * - PAGE_PREVIEW_READY 209 * - PAGE_PREVIEW_READY
210 * - PREVIEW_GENERATION_DONE 210 * - PREVIEW_GENERATION_DONE
211 * - PREVIEW_GENERATION_FAIL 211 * - PREVIEW_GENERATION_FAIL
212 * @param {print_preview.Destination} destination Destination to print to. 212 * @param {!print_preview.Destination} destination Destination to print to.
213 * @param {!print_preview.PrintTicketStore} printTicketStore Used to get the 213 * @param {!print_preview.PrintTicketStore} printTicketStore Used to get the
214 * state of the print ticket. 214 * state of the print ticket.
215 * @param {!print_preview.DocumentInfo} documentInfo Document data model. 215 * @param {!print_preview.DocumentInfo} documentInfo Document data model.
216 * @param {number} requestId ID of the preview request. 216 * @param {number} requestId ID of the preview request.
217 */ 217 */
218 startGetPreview: function( 218 startGetPreview: function(
219 destination, printTicketStore, documentInfo, requestId) { 219 destination, printTicketStore, documentInfo, requestId) {
220 assert(printTicketStore.isTicketValidForPreview(), 220 assert(printTicketStore.isTicketValidForPreview(),
221 'Trying to generate preview when ticket is not valid'); 221 'Trying to generate preview when ticket is not valid');
222 222
(...skipping 605 matching lines...) Expand 10 before | Expand all | Expand 10 after
828 828
829 /** 829 /**
830 * Character delimeter of the decimal point. 830 * Character delimeter of the decimal point.
831 * @type {string} 831 * @type {string}
832 * @private 832 * @private
833 */ 833 */
834 this.decimalDelimeter_ = decimalDelimeter; 834 this.decimalDelimeter_ = decimalDelimeter;
835 835
836 /** 836 /**
837 * Unit type of local machine's measurement system. 837 * Unit type of local machine's measurement system.
838 * @type {string} 838 * @type {print_preview.MeasurementSystem.UnitType}
839 * @private 839 * @private
840 */ 840 */
841 this.unitType_ = unitType; 841 this.unitType_ = unitType;
842 842
843 /** 843 /**
844 * Whether the document to print is modifiable. 844 * Whether the document to print is modifiable.
845 * @type {boolean} 845 * @type {boolean}
846 * @private 846 * @private
847 */ 847 */
848 this.isDocumentModifiable_ = isDocumentModifiable; 848 this.isDocumentModifiable_ = isDocumentModifiable;
849 849
850 /** 850 /**
851 * Title of the document. 851 * Title of the document.
852 * @type {string} 852 * @type {string}
853 * @private 853 * @private
854 */ 854 */
855 this.documentTitle_ = documentTitle; 855 this.documentTitle_ = documentTitle;
856 856
857 /** 857 /**
858 * Whether the document has selection. 858 * Whether the document has selection.
859 * @type {string} 859 * @type {boolean}
860 * @private 860 * @private
861 */ 861 */
862 this.documentHasSelection_ = documentHasSelection; 862 this.documentHasSelection_ = documentHasSelection;
863 863
864 /** 864 /**
865 * Whether selection only should be printed. 865 * Whether selection only should be printed.
866 * @type {string} 866 * @type {boolean}
867 * @private 867 * @private
868 */ 868 */
869 this.selectionOnly_ = selectionOnly; 869 this.selectionOnly_ = selectionOnly;
870 870
871 /** 871 /**
872 * ID of the system default destination. 872 * ID of the system default destination.
873 * @type {?string} 873 * @type {?string}
874 * @private 874 * @private
875 */ 875 */
876 this.systemDefaultDestinationId_ = systemDefaultDestinationId; 876 this.systemDefaultDestinationId_ = systemDefaultDestinationId;
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
955 return this.serializedAppStateStr_; 955 return this.serializedAppStateStr_;
956 } 956 }
957 }; 957 };
958 958
959 // Export 959 // Export
960 return { 960 return {
961 NativeInitialSettings: NativeInitialSettings, 961 NativeInitialSettings: NativeInitialSettings,
962 NativeLayer: NativeLayer 962 NativeLayer: NativeLayer
963 }; 963 };
964 }); 964 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698