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

Side by Side Diff: chrome/browser/resources/settings/android_apps_page/android_apps_browser_proxy.js

Issue 2617663002: WIP: run clang-format-js on lots of things (Closed)
Patch Set: merge Created 3 years, 11 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 /** 5 /**
6 * @fileoverview A helper object used by the "Google Play Store" (Arc++) section 6 * @fileoverview A helper object used by the "Google Play Store" (Arc++) section
7 * to retrieve information about android apps. 7 * to retrieve information about android apps.
8 */ 8 */
9 9
10 /** 10 /**
11 * @typedef {{appReady: boolean}} 11 * @typedef {{appReady: boolean}}
12 * @see chrome/browser/ui/webui/settings/chromeos/android_apps_handler.cc 12 * @see chrome/browser/ui/webui/settings/chromeos/android_apps_handler.cc
13 */ 13 */
14 var AndroidAppsInfo; 14 var AndroidAppsInfo;
15 15
16 cr.define('settings', function() { 16 cr.define('settings', function() {
17 /** @interface */ 17 /** @interface */
18 function AndroidAppsBrowserProxy() { 18 function AndroidAppsBrowserProxy() {}
19 }
20 19
21 AndroidAppsBrowserProxy.prototype = { 20 AndroidAppsBrowserProxy.prototype = {
22 requestAndroidAppsInfo: function() {}, 21 requestAndroidAppsInfo: function() {},
23 22
24 /** 23 /**
25 * @param {boolean} keyboardAction True if the app was opened using a 24 * @param {boolean} keyboardAction True if the app was opened using a
26 * keyboard action. 25 * keyboard action.
27 */ 26 */
28 showAndroidAppsSettings: function(keyboardAction) {}, 27 showAndroidAppsSettings: function(keyboardAction) {},
29 }; 28 };
30 29
31 /** 30 /**
32 * @constructor 31 * @constructor
33 * @implements {settings.AndroidAppsBrowserProxy} 32 * @implements {settings.AndroidAppsBrowserProxy}
34 */ 33 */
35 function AndroidAppsBrowserProxyImpl() { 34 function AndroidAppsBrowserProxyImpl() {}
36 }
37 35
38 // The singleton instance_ can be replaced with a test version of this wrapper 36 // The singleton instance_ can be replaced with a test version of this wrapper
39 // during testing. 37 // during testing.
40 cr.addSingletonGetter(AndroidAppsBrowserProxyImpl); 38 cr.addSingletonGetter(AndroidAppsBrowserProxyImpl);
41 39
42 AndroidAppsBrowserProxyImpl.prototype = { 40 AndroidAppsBrowserProxyImpl.prototype = {
43 /** @override */ 41 /** @override */
44 requestAndroidAppsInfo: function() { 42 requestAndroidAppsInfo: function() {
45 chrome.send('requestAndroidAppsInfo'); 43 chrome.send('requestAndroidAppsInfo');
46 }, 44 },
47 45
48 /** @override */ 46 /** @override */
49 showAndroidAppsSettings: function(keyboardAction) { 47 showAndroidAppsSettings: function(keyboardAction) {
50 chrome.send('showAndroidAppsSettings', [keyboardAction]); 48 chrome.send('showAndroidAppsSettings', [keyboardAction]);
51 }, 49 },
52 }; 50 };
53 51
54 return { 52 return {
55 AndroidAppsBrowserProxy: AndroidAppsBrowserProxy, 53 AndroidAppsBrowserProxy: AndroidAppsBrowserProxy,
56 AndroidAppsBrowserProxyImpl: AndroidAppsBrowserProxyImpl, 54 AndroidAppsBrowserProxyImpl: AndroidAppsBrowserProxyImpl,
57 }; 55 };
58 }); 56 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698