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