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 from the the People section to interact | 6 * @fileoverview A helper object used from the the People section to interact |
7 * with the Easy Unlock functionality of the browser. ChromeOS only. | 7 * with the Easy Unlock functionality of the browser. ChromeOS only. |
8 */ | 8 */ |
9 cr.exportPath('settings'); | 9 cr.exportPath('settings'); |
10 | 10 |
(...skipping 25 matching lines...) Expand all Loading... |
36 startTurnOffFlow: function() {}, | 36 startTurnOffFlow: function() {}, |
37 | 37 |
38 /** | 38 /** |
39 * Cancels any in-progress Easy Unlock turn-off flows. | 39 * Cancels any in-progress Easy Unlock turn-off flows. |
40 */ | 40 */ |
41 cancelTurnOffFlow: function() {}, | 41 cancelTurnOffFlow: function() {}, |
42 }; | 42 }; |
43 | 43 |
44 /** | 44 /** |
45 * @constructor | 45 * @constructor |
46 * @implements {EasyUnlockBrowserProxy} | 46 * @implements {settings.EasyUnlockBrowserProxy} |
47 */ | 47 */ |
48 function EasyUnlockBrowserProxyImpl() {} | 48 function EasyUnlockBrowserProxyImpl() {} |
49 // The singleton instance_ is replaced with a test version of this wrapper | 49 // The singleton instance_ is replaced with a test version of this wrapper |
50 // during testing. | 50 // during testing. |
51 cr.addSingletonGetter(EasyUnlockBrowserProxyImpl); | 51 cr.addSingletonGetter(EasyUnlockBrowserProxyImpl); |
52 | 52 |
53 EasyUnlockBrowserProxyImpl.prototype = { | 53 EasyUnlockBrowserProxyImpl.prototype = { |
54 /** @override */ | 54 /** @override */ |
55 getEnabledStatus: function() { | 55 getEnabledStatus: function() { |
56 return cr.sendWithPromise('easyUnlockGetEnabledStatus'); | 56 return cr.sendWithPromise('easyUnlockGetEnabledStatus'); |
(...skipping 14 matching lines...) Expand all Loading... |
71 chrome.send('easyUnlockStartTurnOffFlow'); | 71 chrome.send('easyUnlockStartTurnOffFlow'); |
72 }, | 72 }, |
73 | 73 |
74 /** @override */ | 74 /** @override */ |
75 cancelTurnOffFlow: function() { | 75 cancelTurnOffFlow: function() { |
76 chrome.send('easyUnlockCancelTurnOffFlow'); | 76 chrome.send('easyUnlockCancelTurnOffFlow'); |
77 }, | 77 }, |
78 }; | 78 }; |
79 | 79 |
80 return { | 80 return { |
| 81 EasyUnlockBrowserProxy: EasyUnlockBrowserProxy, |
81 EasyUnlockBrowserProxyImpl: EasyUnlockBrowserProxyImpl, | 82 EasyUnlockBrowserProxyImpl: EasyUnlockBrowserProxyImpl, |
82 }; | 83 }; |
83 }); | 84 }); |
OLD | NEW |