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

Unified Diff: chrome/browser/resources/md_bookmarks/item.js

Issue 2920413002: MD Bookmarks: Focus sidebar nodes on click without showing an outline (Closed)
Patch Set: Fix override comment Created 3 years, 6 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/md_bookmarks/item.js
diff --git a/chrome/browser/resources/md_bookmarks/item.js b/chrome/browser/resources/md_bookmarks/item.js
index 040eb143e1acca07ab976be4cadf0f7abdebc0b1..50fa1cd2ae7bf9d9b7d129d224031e84e1b4e27e 100644
--- a/chrome/browser/resources/md_bookmarks/item.js
+++ b/chrome/browser/resources/md_bookmarks/item.js
@@ -6,6 +6,7 @@ Polymer({
is: 'bookmarks-item',
behaviors: [
+ bookmarks.MouseFocusBehavior,
bookmarks.StoreClient,
],
@@ -29,12 +30,6 @@ Polymer({
reflectToAttribute: true,
},
- /** @private */
- mouseFocus_: {
- type: Boolean,
- reflectToAttribute: true,
- },
-
/** @private */
isFolder_: Boolean,
},
@@ -44,8 +39,6 @@ Polymer({
],
listeners: {
- 'mousedown': 'onMousedown_',
- 'blur': 'onItemBlur_',
'click': 'onClick_',
'dblclick': 'onDblClick_',
'contextmenu': 'onContextMenu_',
@@ -126,20 +119,6 @@ Polymer({
this.isFolder_ = !this.item_.url;
},
- /**
- * @private
- */
- onMousedown_: function() {
- this.mouseFocus_ = true;
- },
-
- /**
- * @private
- */
- onItemBlur_: function() {
- this.mouseFocus_ = false;
- },
-
/**
* @param {MouseEvent} e
* @private
« no previous file with comments | « chrome/browser/resources/md_bookmarks/item.html ('k') | chrome/browser/resources/md_bookmarks/mouse_focus_behavior.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698