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

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

Issue 2403623002: Skip over the URL input when the NTP is used for the Home Button. (Closed)
Patch Set: put quotes and rebase Created 4 years, 2 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 | « chrome/browser/resources/settings/controls/settings_input.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/settings/controls/settings_input.js
diff --git a/chrome/browser/resources/settings/controls/settings_input.js b/chrome/browser/resources/settings/controls/settings_input.js
index 1de44bb64905b190f50013989a9639db9a1412bb..012a8bcaeccb646c238874c19da2cf913ad8e84c 100644
--- a/chrome/browser/resources/settings/controls/settings_input.js
+++ b/chrome/browser/resources/settings/controls/settings_input.js
@@ -36,6 +36,8 @@ Polymer({
reflectToAttribute: true
},
+ canTab: Boolean,
+
/* Properties for paper-input. This is not strictly necessary.
* Though it does define the types for the closure compiler. */
errorMessage: { type: String },
@@ -78,6 +80,16 @@ Polymer({
},
/**
+ * Gets a tab index for this control if it can be tabbed to.
+ * @param {boolean} canTab
+ * @return {number}
+ * @private
+ */
+ getTabindex_: function(canTab) {
+ return canTab ? 0 : -1;
+ },
+
+ /**
* Blur method for paper-input. Only update the pref value on a blur event.
* @private
*/
« no previous file with comments | « chrome/browser/resources/settings/controls/settings_input.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698