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

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

Issue 917093003: Shorten Closure template notation from Array.<*> to Array<*>. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove cvox Created 5 years, 10 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 746 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/print_preview/data/user_info.js ('k') | chrome/browser/resources/print_preview/preview_generator.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698