OLD | NEW |
(Empty) | |
| 1 <link rel="import" href="chrome://resources/html/polymer.html"> |
| 2 <link rel="import" href="chrome://resources/cr_elements/cr_action_menu/cr_action
_menu.html"> |
| 3 <link rel="import" href="chrome://resources/cr_elements/cr_lazy_render/cr_lazy_r
ender.html"> |
| 4 <link rel="import" href="chrome://bookmarks/edit_dialog.html"> |
| 5 <link rel="import" href="chrome://bookmarks/store_client.html"> |
| 6 |
| 7 <dom-module id="bookmarks-command-manager"> |
| 8 <template> |
| 9 <dialog is="cr-action-menu" id="dropdown" on-mousedown="onMenuMousedown_"> |
| 10 <button class="dropdown-item" |
| 11 command="edit" |
| 12 hidden$="[[!canExecute('edit', menuIds_)]]" |
| 13 on-tap="onCommandClick_"> |
| 14 [[getEditActionLabel_(menuIds_)]] |
| 15 </button> |
| 16 <button class="dropdown-item" |
| 17 command="copy" |
| 18 hidden$="[[!canExecute('copy', menuIds_)]]" |
| 19 on-tap="onCommandClick_"> |
| 20 $i18n{menuCopyURL} |
| 21 </button> |
| 22 <button class="dropdown-item" |
| 23 command="delete" |
| 24 hidden$="[[!canExecute('delete', menuIds_)]]" |
| 25 on-tap="onCommandClick_"> |
| 26 $i18n{menuDelete} |
| 27 </button> |
| 28 </dialog> |
| 29 <template is="cr-lazy-render" id="editDialog"> |
| 30 <bookmarks-edit-dialog></bookmarks-edit-dialog> |
| 31 </template> |
| 32 </template> |
| 33 <script src="chrome://bookmarks/command_manager.js"></script> |
| 34 </dom-module> |
OLD | NEW |