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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 | 45 |
46 /** @private */ | 46 /** @private */ |
47 androidEnabled_: { | 47 androidEnabled_: { |
48 type: Boolean, | 48 type: Boolean, |
49 value: false, | 49 value: false, |
50 }, | 50 }, |
51 | 51 |
52 /** @private */ | 52 /** @private */ |
53 isGuest_: { | 53 isGuest_: { |
54 type: Boolean, | 54 type: Boolean, |
55 value: function() { return loadTimeData.getBoolean('isGuest'); } | 55 value: function() { |
| 56 return loadTimeData.getBoolean('isGuest'); |
| 57 } |
56 }, | 58 }, |
57 | 59 |
58 /** @private */ | 60 /** @private */ |
59 hasDriveCache_: { | 61 hasDriveCache_: { |
60 type: Boolean, | 62 type: Boolean, |
61 value: false | 63 value: false, |
62 }, | 64 }, |
63 | 65 |
64 /** @private {settings.StorageSizeStat} */ | 66 /** @private {settings.StorageSizeStat} */ |
65 sizeStat_: Object, | 67 sizeStat_: Object, |
66 }, | 68 }, |
67 | 69 |
68 /** | 70 /** |
69 * Timer ID for periodic update. | 71 * Timer ID for periodic update. |
70 * @private {number} | 72 * @private {number} |
71 */ | 73 */ |
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
298 return 'space-low'; | 300 return 'space-low'; |
299 case settings.StorageSpaceState.CRITICALLY_LOW: | 301 case settings.StorageSpaceState.CRITICALLY_LOW: |
300 return 'space-critically-low'; | 302 return 'space-critically-low'; |
301 default: | 303 default: |
302 return ''; | 304 return ''; |
303 } | 305 } |
304 }, | 306 }, |
305 | 307 |
306 /** @private */ | 308 /** @private */ |
307 onCloseDriveCacheDialog_: function() { | 309 onCloseDriveCacheDialog_: function() { |
308 this.$$('#deleteButton').focus(); | 310 cr.ui.focusWithoutInk(assert(this.$$('#deleteButton'))); |
309 }, | 311 }, |
310 }); | 312 }); |
OLD | NEW |