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

Side by Side Diff: chrome/browser/resources/settings/appearance_page/appearance_browser_proxy.js

Issue 1896283003: [MD settings] appearance theme and wallpaper (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review changes Created 4 years, 8 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
(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 cr.define('settings', function() {
6 /** @interface */
7 function AppearanceBrowserProxy() {}
8
9 AppearanceBrowserProxy.prototype = {
10 /**
11 * @return {!Promise<boolean>} Whether the theme may be reset.
12 */
13 getResetThemeEnabled: assertNotReached,
14
15 <if expr="chromeos">
16 /**
17 * ChromeOS only.
dpapad 2016/04/20 01:16:58 Nit(optional): You can remove the comment now, sin
dschuyler 2016/04/20 19:15:45 Done.
18 */
19 openWallpaperManager: assertNotReached,
20 </if>
21
22 resetTheme: assertNotReached,
23 };
24
25 /**
26 * @implements {settings.AppearanceBrowserProxy}
27 * @constructor
28 */
29 function AppearanceBrowserProxyImpl() {}
30
31 cr.addSingletonGetter(AppearanceBrowserProxyImpl);
32
33 AppearanceBrowserProxyImpl.prototype = {
34 /** @override */
35 getResetThemeEnabled: function() {
36 return cr.sendWithPromise('getResetThemeEnabled');
37 },
38
39 <if expr="chromeos">
40 /** @override */
41 openWallpaperManager: function() {
42 chrome.send('openWallpaperManager');
43 },
44
45 /** @override */
46 resetTheme: function() {
47 chrome.send('resetTheme');
48 },
49 </if>
50 };
51
52 return {
53 AppearanceBrowserProxy: AppearanceBrowserProxy,
54 AppearanceBrowserProxyImpl: AppearanceBrowserProxyImpl,
55 };
56 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698