OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 var chrome = chrome || {}; | 5 var chrome = chrome || {}; |
6 // TODO(akalin): Add mocking code for e.g. chrome.send() so that we | 6 // TODO(akalin): Add mocking code for e.g. chrome.send() so that we |
7 // can test this without rebuilding chrome. | 7 // can test this without rebuilding chrome. |
8 chrome.sync = chrome.sync || {}; | 8 chrome.sync = chrome.sync || {}; |
9 (function () { | 9 (function () { |
10 | 10 |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 'onChangesComplete', | 78 'onChangesComplete', |
79 'onSyncCycleCompleted', | 79 'onSyncCycleCompleted', |
80 'onAuthError', | 80 'onAuthError', |
81 'onUpdatedToken', | 81 'onUpdatedToken', |
82 'onPassphraseRequired', | 82 'onPassphraseRequired', |
83 'onPassphraseAccepted', | 83 'onPassphraseAccepted', |
84 'onInitializationComplete', | 84 'onInitializationComplete', |
85 'onStopSyncingPermanently', | 85 'onStopSyncingPermanently', |
86 'onClearServerDataSucceeded', | 86 'onClearServerDataSucceeded', |
87 'onClearServerDataFailed', | 87 'onClearServerDataFailed', |
| 88 'onEncryptedTypesChanged', |
88 'onEncryptionComplete', | 89 'onEncryptionComplete', |
89 'onActionableError' | 90 'onActionableError' |
90 ], | 91 ], |
91 | 92 |
92 'transaction': [ | 93 'transaction': [ |
93 'onTransactionStart', | 94 'onTransactionStart', |
94 'onTransactionWrite', | 95 'onTransactionWrite', |
95 'onTransactionEnd' | 96 'onTransactionEnd' |
96 ] | 97 ] |
97 }; | 98 }; |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 * @return {number} The number of seconds since the timer was | 163 * @return {number} The number of seconds since the timer was |
163 * created. | 164 * created. |
164 */ | 165 */ |
165 get elapsedSeconds() { | 166 get elapsedSeconds() { |
166 return ((new Date()).getTime() - start.getTime()) / 1000.0; | 167 return ((new Date()).getTime() - start.getTime()) / 1000.0; |
167 } | 168 } |
168 }; | 169 }; |
169 }; | 170 }; |
170 | 171 |
171 })(); | 172 })(); |
OLD | NEW |