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

Side by Side Diff: chrome/browser/resources/print_preview/data/destination.js

Issue 2938073003: Change getAccessToken and getExtensionPrinterAccess to sendWithPromise (Closed)
Patch Set: Fix annotation Created 3 years, 6 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 * Enumeration of the types of destinations. 8 * Enumeration of the types of destinations.
9 * @enum {string} 9 * @enum {string}
10 */ 10 */
11 print_preview.DestinationType = { 11 print_preview.DestinationType = {
12 GOOGLE: 'google', 12 GOOGLE: 'google',
13 GOOGLE_PROMOTED: 'google_promoted', 13 GOOGLE_PROMOTED: 'google_promoted',
14 LOCAL: 'local', 14 LOCAL: 'local',
15 MOBILE: 'mobile' 15 MOBILE: 'mobile'
16 }; 16 };
17 17
18 /** 18 /**
19 * Enumeration of the origin types for cloud destinations. 19 * Enumeration of the origin types for cloud destinations.
20 * @enum {string} 20 * @enum {string}
21 */ 21 */
22 print_preview.DestinationOrigin = { 22 print_preview.DestinationOrigin = {
23 LOCAL: 'local', 23 LOCAL: 'local',
24 COOKIES: 'cookies', 24 COOKIES: 'cookies',
25 PROFILE: 'profile',
26 DEVICE: 'device', 25 DEVICE: 'device',
27 PRIVET: 'privet', 26 PRIVET: 'privet',
28 EXTENSION: 'extension', 27 EXTENSION: 'extension',
29 CROS: 'chrome_os', 28 CROS: 'chrome_os',
30 }; 29 };
31 30
32 /** 31 /**
33 * Enumeration of the connection statuses of printer destinations. 32 * Enumeration of the connection statuses of printer destinations.
34 * @enum {string} 33 * @enum {string}
35 */ 34 */
(...skipping 522 matching lines...) Expand 10 before | Expand all | Expand 10 after
558 get isEnterprisePrinter() { 557 get isEnterprisePrinter() {
559 return this.isEnterprisePrinter_; 558 return this.isEnterprisePrinter_;
560 }, 559 },
561 }; 560 };
562 561
563 // Export 562 // Export
564 return { 563 return {
565 Destination: Destination, 564 Destination: Destination,
566 }; 565 };
567 }); 566 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698