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

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

Issue 2817803002: MD Settings: CrOS: Focus elements on dialog close (Closed)
Patch Set: rebase Created 3 years, 8 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 284 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 getBarClass_: function(spaceState) { 295 getBarClass_: function(spaceState) {
296 switch (spaceState) { 296 switch (spaceState) {
297 case settings.StorageSpaceState.LOW: 297 case settings.StorageSpaceState.LOW:
298 return 'space-low'; 298 return 'space-low';
299 case settings.StorageSpaceState.CRITICALLY_LOW: 299 case settings.StorageSpaceState.CRITICALLY_LOW:
300 return 'space-critically-low'; 300 return 'space-critically-low';
301 default: 301 default:
302 return ''; 302 return '';
303 } 303 }
304 }, 304 },
305
306 /** @private */
307 onCloseDriveCacheDialog_: function() {
308 this.$$('#deleteButton').focus();
309 },
305 }); 310 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698