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

Side by Side Diff: chrome/browser/resources/settings/settings_ui/settings_ui.js

Issue 2802073002: MD Settings: Focus the container, instead of settings-main, when sidenav is closed. (Closed)
Patch Set: 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
« no previous file with comments | « chrome/browser/resources/settings/settings_ui/settings_ui.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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-ui' implements the UI for the Settings page. 7 * 'settings-ui' implements the UI for the Settings page.
8 * 8 *
9 * Example: 9 * Example:
10 * 10 *
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 this.$.drawer.closeDrawer(); 261 this.$.drawer.closeDrawer();
262 }, 262 },
263 263
264 /** @private */ 264 /** @private */
265 onMenuButtonTap_: function() { 265 onMenuButtonTap_: function() {
266 this.$.drawer.toggle(); 266 this.$.drawer.toggle();
267 }, 267 },
268 268
269 /** @private */ 269 /** @private */
270 onMenuClosed_: function() { 270 onMenuClosed_: function() {
271 this.$$('settings-main').focus(); 271 this.$.container.focus();
272 }, 272 },
273 273
274 /** @private */ 274 /** @private */
275 directionDelegateChanged_: function() { 275 directionDelegateChanged_: function() {
276 this.$.drawer.align = this.directionDelegate.isRtl() ? 276 this.$.drawer.align = this.directionDelegate.isRtl() ?
277 'right' : 'left'; 277 'right' : 'left';
278 }, 278 },
279 }); 279 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/settings/settings_ui/settings_ui.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698