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 /** @typedef {{id: string, name: string, canBeDisabled: boolean}} */ | |
6 var NtpExtension; | |
7 | |
8 cr.define('settings', function() { | |
9 /** @interface */ | |
10 function OnStartupBrowserProxy() {} | |
11 | |
12 OnStartupBrowserProxy.prototype = { | |
dpapad
2016/11/17 01:16:46
Do we need a new Proxy class, given that there is
Dan Beam
2016/11/17 01:33:11
we probably could fold together, yes. but right n
| |
13 /** @return {!Promise<?NtpExtension>} */ | |
14 getNtpExtension: assertNotReached, | |
15 }; | |
16 | |
17 /** | |
18 * @constructor | |
19 * @implements {settings.OnStartupBrowserProxy} | |
20 */ | |
21 function OnStartupBrowserProxyImpl() {} | |
22 cr.addSingletonGetter(OnStartupBrowserProxyImpl); | |
23 | |
24 OnStartupBrowserProxyImpl.prototype = { | |
25 /** @override */ | |
26 getNtpExtension: function() { | |
27 return cr.sendWithPromise('getNtpExtension'); | |
28 }, | |
29 }; | |
30 | |
31 return { | |
32 OnStartupBrowserProxy: OnStartupBrowserProxy, | |
33 OnStartupBrowserProxyImpl: OnStartupBrowserProxyImpl, | |
34 }; | |
35 }); | |
OLD | NEW |