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

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

Issue 2745593004: [MD Bookmarks] Add draggable sidebar. (Closed)
Patch Set: rebase Created 3 years, 9 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/folder_node.js
diff --git a/chrome/browser/resources/md_bookmarks/folder_node.js b/chrome/browser/resources/md_bookmarks/folder_node.js
index 8b2ac66b902d1ec02d964429635f6fdf6e22fe16..ff0f867a50c79ad0045c1366287a7531ca5d54c2 100644
--- a/chrome/browser/resources/md_bookmarks/folder_node.js
+++ b/chrome/browser/resources/md_bookmarks/folder_node.js
@@ -60,14 +60,6 @@ Polymer({
return this.isSelectedFolder_ ? 'bookmarks:folder-open' : 'cr:folder';
},
- /**
- * @private
- * @return {string}
- */
- getArrowIcon_: function() {
- return this.isClosed_ ? 'cr:arrow-drop-down' : 'cr:arrow-drop-up';
- },
-
/** @private */
selectFolder_: function() {
this.dispatch(bookmarks.actions.selectFolder(this.item_.id));
@@ -76,10 +68,12 @@ Polymer({
/**
* Occurs when the drop down arrow is tapped.
* @private
+ * @param {!Event} e
*/
- toggleFolder_: function() {
+ toggleFolder_: function(e) {
this.dispatch(
bookmarks.actions.changeFolderOpen(this.item_.id, this.isClosed_));
+ e.stopPropagation();
},
/**
@@ -106,7 +100,7 @@ Polymer({
/** @private */
depthChanged_: function() {
- this.style.setProperty('--node-depth', this.depth.toString());
+ this.style.setProperty('--node-depth', String(this.depth));
},
/**
« no previous file with comments | « chrome/browser/resources/md_bookmarks/folder_node.html ('k') | chrome/browser/resources/md_bookmarks/list.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698