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

Unified Diff: chrome/browser/resources/options/deletable_item_list.js

Issue 683813004: Fewer focusable items in chrome://settings/searchEngines (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
Index: chrome/browser/resources/options/deletable_item_list.js
diff --git a/chrome/browser/resources/options/deletable_item_list.js b/chrome/browser/resources/options/deletable_item_list.js
index 0d52ff07bab0d275472f3c7a551460cf0caee9d6..60da4af9c0be3b37a5c8277ff29bee8634f5089d 100644
--- a/chrome/browser/resources/options/deletable_item_list.js
+++ b/chrome/browser/resources/options/deletable_item_list.js
@@ -38,6 +38,13 @@ cr.define('options', function() {
*/
deletable_: true,
+ /**
+ * Whether or not the close button can ever be navigated to using the
+ * keyboard.
+ * @type {boolean}
Dan Beam 2014/10/29 01:37:12 @protected
bondd 2014/10/29 17:19:07 Done.
+ */
+ closeButtonFocusAllowed: false,
+
/** @override */
decorate: function() {
ListItem.prototype.decorate.call(this);
@@ -57,7 +64,7 @@ cr.define('options', function() {
this.closeButtonElement_.addEventListener('mouseup',
this.handleMouseDownUpOnClose_);
this.closeButtonElement_.addEventListener('focus',
- this.handleFocus_.bind(this));
+ this.handleFocus.bind(this));
this.closeButtonElement_.tabIndex = -1;
this.closeButtonElement_.title =
loadTimeData.getString('deletableItemDeleteButtonTitle');
@@ -94,9 +101,9 @@ cr.define('options', function() {
/**
* Called when a focusable child element receives focus. Selects this item
* in the list selection model.
- * @private
+ * @protected
*/
- handleFocus_: function() {
+ handleFocus: function() {
bondd 2014/10/28 22:29:57 Made this protected because existing code in inlin
// This handler is also fired when the child receives focus as a result of
// the item getting selected by the customized mouse/keyboard handling in
// SelectionController. Take care not to destroy a potential multiple

Powered by Google App Engine
This is Rietveld 408576698