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

Unified Diff: chrome/browser/resources/settings/controls/settings_toggle_button.js

Issue 2899533002: [MD settings] move <dialog> out of content (Closed)
Patch Set: review changes Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/resources/settings/privacy_page/privacy_page.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/settings/controls/settings_toggle_button.js
diff --git a/chrome/browser/resources/settings/controls/settings_toggle_button.js b/chrome/browser/resources/settings/controls/settings_toggle_button.js
index 1352bccfeadf21ee4242a8d4dfe60e9c1e330d12..5a05d7199ca721bcd46c989e0f792b048340843e 100644
--- a/chrome/browser/resources/settings/controls/settings_toggle_button.js
+++ b/chrome/browser/resources/settings/controls/settings_toggle_button.js
@@ -9,6 +9,8 @@
Polymer({
is: 'settings-toggle-button',
+ behaviors: [SettingsBooleanControlBehavior],
+
properties: {
elideLabel: {
type: Boolean,
@@ -16,7 +18,10 @@ Polymer({
},
},
- behaviors: [SettingsBooleanControlBehavior],
+ /** @override */
+ focus: function() {
+ this.$.control.focus();
+ },
/** @private */
onLabelWrapperTap_: function() {
« no previous file with comments | « no previous file | chrome/browser/resources/settings/privacy_page/privacy_page.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698