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