OLD | NEW |
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 * Type definition of AndroidAppsInfo entry. |playStoreEnabled| indicates that |
| 12 * Play Store is enabled. |settingsAppAvailable| indicates that Android settings |
| 13 * app is registered in the system. |
| 14 * @typedef {{ |
| 15 * playStoreEnabled: boolean, |
| 16 * settingsAppAvailable: boolean, |
| 17 * }} |
12 * @see chrome/browser/ui/webui/settings/chromeos/android_apps_handler.cc | 18 * @see chrome/browser/ui/webui/settings/chromeos/android_apps_handler.cc |
13 */ | 19 */ |
14 var AndroidAppsInfo; | 20 var AndroidAppsInfo; |
15 | 21 |
16 cr.define('settings', function() { | 22 cr.define('settings', function() { |
17 /** @interface */ | 23 /** @interface */ |
18 function AndroidAppsBrowserProxy() { | 24 function AndroidAppsBrowserProxy() { |
19 } | 25 } |
20 | 26 |
21 AndroidAppsBrowserProxy.prototype = { | 27 AndroidAppsBrowserProxy.prototype = { |
(...skipping 27 matching lines...) Expand all Loading... |
49 showAndroidAppsSettings: function(keyboardAction) { | 55 showAndroidAppsSettings: function(keyboardAction) { |
50 chrome.send('showAndroidAppsSettings', [keyboardAction]); | 56 chrome.send('showAndroidAppsSettings', [keyboardAction]); |
51 }, | 57 }, |
52 }; | 58 }; |
53 | 59 |
54 return { | 60 return { |
55 AndroidAppsBrowserProxy: AndroidAppsBrowserProxy, | 61 AndroidAppsBrowserProxy: AndroidAppsBrowserProxy, |
56 AndroidAppsBrowserProxyImpl: AndroidAppsBrowserProxyImpl, | 62 AndroidAppsBrowserProxyImpl: AndroidAppsBrowserProxyImpl, |
57 }; | 63 }; |
58 }); | 64 }); |
OLD | NEW |