| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 cr.exportPath('settings'); | 5 cr.exportPath('settings'); |
| 6 | 6 |
| 7 /** | 7 /** |
| 8 * @enum {number} | 8 * @enum {number} |
| 9 * These values must be kept in sync with the values in | 9 * These values must be kept in sync with the values in |
| 10 * third_party/cros_system_api/dbus/service_constants.h. | 10 * third_party/cros_system_api/dbus/service_constants.h. |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 settings.FingerprintInfo; | 51 settings.FingerprintInfo; |
| 52 | 52 |
| 53 cr.define('settings', function() { | 53 cr.define('settings', function() { |
| 54 /** @interface */ | 54 /** @interface */ |
| 55 function FingerprintBrowserProxy() {} | 55 function FingerprintBrowserProxy() {} |
| 56 | 56 |
| 57 FingerprintBrowserProxy.prototype = { | 57 FingerprintBrowserProxy.prototype = { |
| 58 /** | 58 /** |
| 59 * @return {!Promise<!settings.FingerprintInfo>} | 59 * @return {!Promise<!settings.FingerprintInfo>} |
| 60 */ | 60 */ |
| 61 getFingerprintsList: function () {}, | 61 getFingerprintsList: function() {}, |
| 62 | 62 |
| 63 /** | 63 /** |
| 64 * @return {!Promise<number>} | 64 * @return {!Promise<number>} |
| 65 */ | 65 */ |
| 66 getNumFingerprints: function () {}, | 66 getNumFingerprints: function() {}, |
| 67 | 67 |
| 68 startEnroll: function () {}, | 68 startEnroll: function() {}, |
| 69 | 69 |
| 70 cancelCurrentEnroll: function() {}, | 70 cancelCurrentEnroll: function() {}, |
| 71 | 71 |
| 72 /** | 72 /** |
| 73 * @param {number} index | 73 * @param {number} index |
| 74 * @return {!Promise<string>} | 74 * @return {!Promise<string>} |
| 75 */ | 75 */ |
| 76 getEnrollmentLabel: function(index) {}, | 76 getEnrollmentLabel: function(index) {}, |
| 77 | 77 |
| 78 /** | 78 /** |
| (...skipping 23 matching lines...) Expand all Loading... |
| 102 | 102 |
| 103 /** | 103 /** |
| 104 * @constructor | 104 * @constructor |
| 105 * @implements {settings.FingerprintBrowserProxy} | 105 * @implements {settings.FingerprintBrowserProxy} |
| 106 */ | 106 */ |
| 107 function FingerprintBrowserProxyImpl() {} | 107 function FingerprintBrowserProxyImpl() {} |
| 108 cr.addSingletonGetter(FingerprintBrowserProxyImpl); | 108 cr.addSingletonGetter(FingerprintBrowserProxyImpl); |
| 109 | 109 |
| 110 FingerprintBrowserProxyImpl.prototype = { | 110 FingerprintBrowserProxyImpl.prototype = { |
| 111 /** @override */ | 111 /** @override */ |
| 112 getFingerprintsList: function () { | 112 getFingerprintsList: function() { |
| 113 return cr.sendWithPromise('getFingerprintsList'); | 113 return cr.sendWithPromise('getFingerprintsList'); |
| 114 }, | 114 }, |
| 115 | 115 |
| 116 /** @override */ | 116 /** @override */ |
| 117 getNumFingerprints: function () { | 117 getNumFingerprints: function() { |
| 118 return cr.sendWithPromise('getNumFingerprints'); | 118 return cr.sendWithPromise('getNumFingerprints'); |
| 119 }, | 119 }, |
| 120 | 120 |
| 121 /** @override */ | 121 /** @override */ |
| 122 startEnroll: function () { | 122 startEnroll: function() { |
| 123 chrome.send('startEnroll'); | 123 chrome.send('startEnroll'); |
| 124 }, | 124 }, |
| 125 | 125 |
| 126 /** @override */ | 126 /** @override */ |
| 127 cancelCurrentEnroll: function() { | 127 cancelCurrentEnroll: function() { |
| 128 chrome.send('cancelCurrentEnroll'); | 128 chrome.send('cancelCurrentEnroll'); |
| 129 }, | 129 }, |
| 130 | 130 |
| 131 /** @override */ | 131 /** @override */ |
| 132 getEnrollmentLabel: function(index) { | 132 getEnrollmentLabel: function(index) { |
| (...skipping 20 matching lines...) Expand all Loading... |
| 153 chrome.send('endCurrentAuthentication'); | 153 chrome.send('endCurrentAuthentication'); |
| 154 }, | 154 }, |
| 155 | 155 |
| 156 /** @override */ | 156 /** @override */ |
| 157 fakeScanComplete: function() { | 157 fakeScanComplete: function() { |
| 158 chrome.send('fakeScanComplete'); | 158 chrome.send('fakeScanComplete'); |
| 159 }, | 159 }, |
| 160 }; | 160 }; |
| 161 | 161 |
| 162 return { | 162 return { |
| 163 FingerprintBrowserProxy : FingerprintBrowserProxy, | 163 FingerprintBrowserProxy: FingerprintBrowserProxy, |
| 164 FingerprintBrowserProxyImpl : FingerprintBrowserProxyImpl, | 164 FingerprintBrowserProxyImpl: FingerprintBrowserProxyImpl, |
| 165 }; | 165 }; |
| 166 }); | 166 }); |
| OLD | NEW |