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

Side by Side Diff: chrome/browser/resources/settings/internet_page/network_proxy.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 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 Polymer element for displaying and editing network proxy 6 * @fileoverview Polymer element for displaying and editing network proxy
7 * values. 7 * values.
8 */ 8 */
9 Polymer({ 9 Polymer({
10 is: 'network-proxy', 10 is: 'network-proxy',
(...skipping 461 matching lines...) Expand 10 before | Expand all | Expand 10 after
472 /** 472 /**
473 * Handles the shared proxy confirmation dialog 'Cancel' button or a cancel 473 * Handles the shared proxy confirmation dialog 'Cancel' button or a cancel
474 * event. 474 * event.
475 * @private 475 * @private
476 */ 476 */
477 onAllowSharedDialogCancel_: function() { 477 onAllowSharedDialogCancel_: function() {
478 /** @type {!SettingsCheckboxElement} */ (this.$.allowShared) 478 /** @type {!SettingsCheckboxElement} */ (this.$.allowShared)
479 .resetToPrefValue(); 479 .resetToPrefValue();
480 this.$.confirmAllowSharedDialog.close(); 480 this.$.confirmAllowSharedDialog.close();
481 }, 481 },
482
483 /** @private */
484 onAllowSharedDialogClose_: function() {
485 this.$$('#allowShared').focus();
486 },
482 }); 487 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698