| 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 | 6 * @fileoverview |
| 7 * 'settings-storage' is the settings subpage for storage settings. | 7 * 'settings-storage' is the settings subpage for storage settings. |
| 8 */ | 8 */ |
| 9 cr.exportPath('settings'); | 9 cr.exportPath('settings'); |
| 10 | 10 |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 | 69 |
| 70 /** | 70 /** |
| 71 * Timer ID for periodic update. | 71 * Timer ID for periodic update. |
| 72 * @private {number} | 72 * @private {number} |
| 73 */ | 73 */ |
| 74 updateTimerId_: -1, | 74 updateTimerId_: -1, |
| 75 | 75 |
| 76 /** @override */ | 76 /** @override */ |
| 77 ready: function() { | 77 ready: function() { |
| 78 cr.addWebUIListener( | 78 cr.addWebUIListener( |
| 79 'storage-size-stat-changed', | 79 'storage-size-stat-changed', this.handleSizeStatChanged_.bind(this)); |
| 80 this.handleSizeStatChanged_.bind(this)); | |
| 81 cr.addWebUIListener( | 80 cr.addWebUIListener( |
| 82 'storage-downloads-size-changed', | 81 'storage-downloads-size-changed', |
| 83 this.handleDownloadsSizeChanged_.bind(this)); | 82 this.handleDownloadsSizeChanged_.bind(this)); |
| 84 cr.addWebUIListener( | 83 cr.addWebUIListener( |
| 85 'storage-drive-cache-size-changed', | 84 'storage-drive-cache-size-changed', |
| 86 this.handleDriveCacheSizeChanged_.bind(this)); | 85 this.handleDriveCacheSizeChanged_.bind(this)); |
| 87 cr.addWebUIListener( | 86 cr.addWebUIListener( |
| 88 'storage-browsing-data-size-changed', | 87 'storage-browsing-data-size-changed', |
| 89 this.handleBrowsingDataSizeChanged_.bind(this)); | 88 this.handleBrowsingDataSizeChanged_.bind(this)); |
| 90 cr.addWebUIListener( | 89 cr.addWebUIListener( |
| (...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 303 default: | 302 default: |
| 304 return ''; | 303 return ''; |
| 305 } | 304 } |
| 306 }, | 305 }, |
| 307 | 306 |
| 308 /** @private */ | 307 /** @private */ |
| 309 onCloseDriveCacheDialog_: function() { | 308 onCloseDriveCacheDialog_: function() { |
| 310 cr.ui.focusWithoutInk(assert(this.$$('#deleteButton'))); | 309 cr.ui.focusWithoutInk(assert(this.$$('#deleteButton'))); |
| 311 }, | 310 }, |
| 312 }); | 311 }); |
| OLD | NEW |