| OLD | NEW |
| 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 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 257 if (event.detail.item.id != 'advancedSubmenu') | 257 if (event.detail.item.id != 'advancedSubmenu') |
| 258 this.$.drawer.closeDrawer(); | 258 this.$.drawer.closeDrawer(); |
| 259 }, | 259 }, |
| 260 | 260 |
| 261 /** @private */ | 261 /** @private */ |
| 262 onMenuButtonTap_: function() { | 262 onMenuButtonTap_: function() { |
| 263 this.$.drawer.toggle(); | 263 this.$.drawer.toggle(); |
| 264 }, | 264 }, |
| 265 | 265 |
| 266 /** @private */ | 266 /** @private */ |
| 267 onMenuClosed_: function() { |
| 268 this.$$('settings-main').focus(); |
| 269 }, |
| 270 |
| 271 /** @private */ |
| 267 directionDelegateChanged_: function() { | 272 directionDelegateChanged_: function() { |
| 268 this.$.drawer.align = this.directionDelegate.isRtl() ? | 273 this.$.drawer.align = this.directionDelegate.isRtl() ? |
| 269 'right' : 'left'; | 274 'right' : 'left'; |
| 270 }, | 275 }, |
| 271 }); | 276 }); |
| OLD | NEW |