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

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

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

Powered by Google App Engine
This is Rietveld 408576698