Chromium Code Reviews| 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/shared_style.html"> | |
| 6 <link rel="import" href="chrome://bookmarks/store_client.html"> | |
| 7 | |
| 8 <dom-module id="bookmarks-command-manager"> | |
| 9 <template> | |
| 10 <style include="shared-style"> | |
| 11 </style> | |
|
calamity
2017/04/24 05:20:35
nit: Unnecessary?
tsergeant
2017/04/24 07:28:23
Oops, done.
| |
| 12 <dialog is="cr-action-menu" id="dropdown" on-mousedown="onMenuMousedown_"> | |
| 13 <button class="dropdown-item" | |
| 14 command="edit" | |
| 15 hidden$="[[!canEdit(menuIds_)]]" | |
| 16 on-tap="onCommandClick_"> | |
| 17 [[getEditActionLabel_(menuIds_)]] | |
| 18 </button> | |
| 19 <button class="dropdown-item" | |
| 20 command="copy" | |
| 21 hidden$="[[!canCopy(menuIds_)]]" | |
|
calamity
2017/04/24 05:20:35
I'm conflicted about whether I want this to be can
tsergeant
2017/04/24 07:28:23
I actually used to have it like canExecute('copy')
calamity
2017/04/26 03:43:44
Yeah, just saw it this morning. Sorry.
| |
| 22 on-tap="onCommandClick_"> | |
| 23 $i18n{menuCopyURL} | |
| 24 </button> | |
| 25 <button class="dropdown-item" | |
| 26 command="delete" | |
| 27 hidden$="[[!canDelete(menuIds_)]]" | |
| 28 on-tap="onCommandClick_"> | |
| 29 $i18n{menuDelete} | |
| 30 </button> | |
|
calamity
2017/04/24 05:20:35
I mean, looking at this, there's some part of me t
tsergeant
2017/04/24 07:28:23
The biggest thing that gets in the way of the dom-
calamity
2017/04/26 03:43:44
Fair enough.
| |
| 31 </dialog> | |
| 32 <template is="cr-lazy-render" id="editDialog"> | |
| 33 <bookmarks-edit-dialog></bookmarks-edit-dialog> | |
| 34 </template> | |
| 35 </template> | |
| 36 <script src="chrome://bookmarks/command_manager.js"></script> | |
| 37 </dom-module> | |
| OLD | NEW |