Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(674)

Side by Side Diff: chrome/browser/resources/settings/device_page/storage.js

Issue 2617663002: WIP: run clang-format-js on lots of things (Closed)
Patch Set: merge Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 55
56 /** 56 /**
57 * Timer ID for periodic update. 57 * Timer ID for periodic update.
58 * @private {number} 58 * @private {number}
59 */ 59 */
60 updateTimerId_: -1, 60 updateTimerId_: -1,
61 61
62 /** @override */ 62 /** @override */
63 ready: function() { 63 ready: function() {
64 cr.addWebUIListener( 64 cr.addWebUIListener(
65 'storage-size-stat-changed', 65 'storage-size-stat-changed', this.handleSizeStatChanged_.bind(this));
66 this.handleSizeStatChanged_.bind(this));
67 cr.addWebUIListener( 66 cr.addWebUIListener(
68 'storage-downloads-size-changed', 67 'storage-downloads-size-changed',
69 this.handleDownloadsSizeChanged_.bind(this)); 68 this.handleDownloadsSizeChanged_.bind(this));
70 cr.addWebUIListener( 69 cr.addWebUIListener(
71 'storage-drive-cache-size-changed', 70 'storage-drive-cache-size-changed',
72 this.handleDriveCacheSizeChanged_.bind(this)); 71 this.handleDriveCacheSizeChanged_.bind(this));
73 cr.addWebUIListener( 72 cr.addWebUIListener(
74 'storage-browsing-data-size-changed', 73 'storage-browsing-data-size-changed',
75 this.handleBrowsingDataSizeChanged_.bind(this)); 74 this.handleBrowsingDataSizeChanged_.bind(this));
76 cr.addWebUIListener( 75 cr.addWebUIListener(
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 switch (spaceState) { 274 switch (spaceState) {
276 case settings.StorageSpaceState.LOW: 275 case settings.StorageSpaceState.LOW:
277 return 'space-low'; 276 return 'space-low';
278 case settings.StorageSpaceState.CRITICALLY_LOW: 277 case settings.StorageSpaceState.CRITICALLY_LOW:
279 return 'space-critically-low'; 278 return 'space-critically-low';
280 default: 279 default:
281 return ''; 280 return '';
282 } 281 }
283 }, 282 },
284 }); 283 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698