OLD | NEW |
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 749 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
760 */ | 760 */ |
761 onPrivetPrintFailed_: function(http_error) { | 761 onPrivetPrintFailed_: function(http_error) { |
762 var privetPrintFailedEvent = | 762 var privetPrintFailedEvent = |
763 new Event(NativeLayer.EventType.PRIVET_PRINT_FAILED); | 763 new Event(NativeLayer.EventType.PRIVET_PRINT_FAILED); |
764 privetPrintFailedEvent.httpError = http_error; | 764 privetPrintFailedEvent.httpError = http_error; |
765 this.dispatchEvent(privetPrintFailedEvent); | 765 this.dispatchEvent(privetPrintFailedEvent); |
766 }, | 766 }, |
767 | 767 |
768 /** | 768 /** |
769 * @param {Array<!{extensionId: string, | 769 * @param {Array<!{extensionId: string, |
770 * id: string, | 770 * extensionName: string, |
771 * name: string, | 771 * id: string, |
772 * description: (string|undefined)}>} printers The list | 772 * name: string, |
| 773 * description: (string|undefined)}>} printers The list |
773 * containing information about printers added by an extension. | 774 * containing information about printers added by an extension. |
774 * @param {boolean} done Whether this is the final list of extension | 775 * @param {boolean} done Whether this is the final list of extension |
775 * managed printers. | 776 * managed printers. |
776 */ | 777 */ |
777 onExtensionPrintersAdded_: function(printers, done) { | 778 onExtensionPrintersAdded_: function(printers, done) { |
778 var event = new Event(NativeLayer.EventType.EXTENSION_PRINTERS_ADDED); | 779 var event = new Event(NativeLayer.EventType.EXTENSION_PRINTERS_ADDED); |
779 event.printers = printers; | 780 event.printers = printers; |
780 event.done = done; | 781 event.done = done; |
781 this.dispatchEvent(event); | 782 this.dispatchEvent(event); |
782 }, | 783 }, |
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1032 return this.serializedAppStateStr_; | 1033 return this.serializedAppStateStr_; |
1033 } | 1034 } |
1034 }; | 1035 }; |
1035 | 1036 |
1036 // Export | 1037 // Export |
1037 return { | 1038 return { |
1038 NativeInitialSettings: NativeInitialSettings, | 1039 NativeInitialSettings: NativeInitialSettings, |
1039 NativeLayer: NativeLayer | 1040 NativeLayer: NativeLayer |
1040 }; | 1041 }; |
1041 }); | 1042 }); |
OLD | NEW |