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

Unified Diff: chrome/browser/resources/md_bookmarks/command_manager.html

Issue 2834493006: MD Bookmarks: Pull context menu into separate element (Closed)
Patch Set: Switch back to using a Command enum Created 3 years, 8 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/command_manager.html
diff --git a/chrome/browser/resources/md_bookmarks/command_manager.html b/chrome/browser/resources/md_bookmarks/command_manager.html
new file mode 100644
index 0000000000000000000000000000000000000000..1fa9b56e12aefe004235311be478e5b9e2cc636e
--- /dev/null
+++ b/chrome/browser/resources/md_bookmarks/command_manager.html
@@ -0,0 +1,34 @@
+<link rel="import" href="chrome://resources/html/polymer.html">
+<link rel="import" href="chrome://resources/cr_elements/cr_action_menu/cr_action_menu.html">
+<link rel="import" href="chrome://resources/cr_elements/cr_lazy_render/cr_lazy_render.html">
+<link rel="import" href="chrome://bookmarks/edit_dialog.html">
+<link rel="import" href="chrome://bookmarks/store_client.html">
+
+<dom-module id="bookmarks-command-manager">
+ <template>
+ <dialog is="cr-action-menu" id="dropdown" on-mousedown="onMenuMousedown_">
+ <button class="dropdown-item"
+ command="edit"
+ hidden$="[[!canExecute('edit', menuIds_)]]"
+ on-tap="onCommandClick_">
+ [[getEditActionLabel_(menuIds_)]]
+ </button>
+ <button class="dropdown-item"
+ command="copy"
+ hidden$="[[!canExecute('copy', menuIds_)]]"
+ on-tap="onCommandClick_">
+ $i18n{menuCopyURL}
+ </button>
+ <button class="dropdown-item"
+ command="delete"
+ hidden$="[[!canExecute('delete', menuIds_)]]"
+ on-tap="onCommandClick_">
+ $i18n{menuDelete}
+ </button>
+ </dialog>
+ <template is="cr-lazy-render" id="editDialog">
+ <bookmarks-edit-dialog></bookmarks-edit-dialog>
+ </template>
+ </template>
+ <script src="chrome://bookmarks/command_manager.js"></script>
+</dom-module>

Powered by Google App Engine
This is Rietveld 408576698