Chromium Code Reviews| OLD | NEW |
|---|---|
| (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 }); | |
| OLD | NEW |