OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 * Updates the Drive related Flags section. | 6 * Updates the Drive related Flags section. |
7 * @param {Array} flags List of dictionaries describing flags. | 7 * @param {Array} flags List of dictionaries describing flags. |
8 */ | 8 */ |
9 function updateDriveRelatedFlags(flags) { | 9 function updateDriveRelatedFlags(flags) { |
10 var ul = $('drive-related-flags'); | 10 var ul = $('drive-related-flags'); |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 (localMetadata['account-metadata-refreshing'] ? ' (refreshing)' : ''); | 182 (localMetadata['account-metadata-refreshing'] ? ' (refreshing)' : ''); |
183 } | 183 } |
184 | 184 |
185 /** | 185 /** |
186 * Updates the summary about delta update status. | 186 * Updates the summary about delta update status. |
187 * @param {Object} deltaUpdateStatus Dictionary describing delta update status. | 187 * @param {Object} deltaUpdateStatus Dictionary describing delta update status. |
188 */ | 188 */ |
189 function updateDeltaUpdateStatus(deltaUpdateStatus) { | 189 function updateDeltaUpdateStatus(deltaUpdateStatus) { |
190 $('push-notification-enabled').textContent = | 190 $('push-notification-enabled').textContent = |
191 deltaUpdateStatus['push-notification-enabled']; | 191 deltaUpdateStatus['push-notification-enabled']; |
192 $('polling-interval-sec').textContent = | |
193 deltaUpdateStatus['polling-interval-sec']; | |
194 $('last-update-check-time').textContent = | 192 $('last-update-check-time').textContent = |
195 deltaUpdateStatus['last-update-check-time']; | 193 deltaUpdateStatus['last-update-check-time']; |
196 $('last-update-check-error').textContent = | 194 $('last-update-check-error').textContent = |
197 deltaUpdateStatus['last-update-check-error']; | 195 deltaUpdateStatus['last-update-check-error']; |
198 } | 196 } |
199 | 197 |
200 /** | 198 /** |
201 * Updates the event log section. | 199 * Updates the event log section. |
202 * @param {Array} log Array of events. | 200 * @param {Array} log Array of events. |
203 */ | 201 */ |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
261 $('button-show-file-entries').addEventListener('click', function() { | 259 $('button-show-file-entries').addEventListener('click', function() { |
262 var button = $('button-show-file-entries'); | 260 var button = $('button-show-file-entries'); |
263 button.parentNode.removeChild(button); | 261 button.parentNode.removeChild(button); |
264 chrome.send('listFileEntries'); | 262 chrome.send('listFileEntries'); |
265 }); | 263 }); |
266 | 264 |
267 window.setInterval(function() { | 265 window.setInterval(function() { |
268 chrome.send('periodicUpdate'); | 266 chrome.send('periodicUpdate'); |
269 }, 1000); | 267 }, 1000); |
270 }); | 268 }); |
OLD | NEW |