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

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

Issue 2668693007: [MD Bookmarks] Double Click (Closed)
Patch Set: change the loop and add tab changes Created 3 years, 10 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 3f8c87f5976d27ad5b129bdd967a7d816ee76f2f..b75eb60de66bcab9440193406fa7a755ff258a94 100644
--- a/chrome/browser/resources/md_bookmarks/item.js
+++ b/chrome/browser/resources/md_bookmarks/item.js
@@ -63,7 +63,10 @@ Polymer({
* @private
*/
onDblClick_: function(e) {
- /* TODO(jiaxi): Add double click later. */
+ if (!this.item.url)
+ this.fire('selected-folder-changed', this.item.id);
+ else
+ chrome.tabs.create({url: this.item.url});
},
/**

Powered by Google App Engine
This is Rietveld 408576698