OLD | NEW |
1 <link rel="import" href="chrome://resources/html/polymer.html"> | 1 <link rel="import" href="chrome://resources/html/polymer.html"> |
| 2 |
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_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://resources/cr_elements/cr_lazy_render/cr_lazy_r
ender.html"> |
4 <link rel="import" href="chrome://resources/polymer/v1_0/iron-a11y-keys-behavior
/iron-a11y-keys-behavior.html"> | 5 <link rel="import" href="chrome://resources/polymer/v1_0/iron-a11y-keys-behavior
/iron-a11y-keys-behavior.html"> |
5 <link rel="import" href="chrome://bookmarks/edit_dialog.html"> | 6 <link rel="import" href="chrome://bookmarks/edit_dialog.html"> |
6 <link rel="import" href="chrome://bookmarks/shared_style.html"> | 7 <link rel="import" href="chrome://bookmarks/shared_style.html"> |
7 <link rel="import" href="chrome://bookmarks/store_client.html"> | 8 <link rel="import" href="chrome://bookmarks/store_client.html"> |
8 | 9 |
9 <dom-module id="bookmarks-command-manager"> | 10 <dom-module id="bookmarks-command-manager"> |
10 <template> | 11 <template> |
11 <style include="shared-style"></style> | 12 <style include="shared-style"></style> |
12 <dialog is="cr-action-menu" id="dropdown" on-mousedown="onMenuMousedown_"> | 13 <dialog is="cr-action-menu" id="dropdown" on-mousedown="onMenuMousedown_"> |
13 <template is="dom-repeat" items="[[menuCommands_]]" as="command"> | 14 <template is="dom-repeat" items="[[menuCommands_]]" as="command"> |
14 <button class="dropdown-item" | 15 <button class="dropdown-item" |
15 command$="[[command]]" | 16 command$="[[command]]" |
16 hidden$="[[!isCommandVisible_(command, menuIds_)]]" | 17 hidden$="[[!isCommandVisible_(command, menuIds_)]]" |
17 disabled$="[[!isCommandEnabled_(command, menuIds_)]]" | 18 disabled$="[[!isCommandEnabled_(command, menuIds_)]]" |
18 on-tap="onCommandClick_"> | 19 on-tap="onCommandClick_"> |
19 [[getCommandLabel_(command, menuIds_)]] | 20 [[getCommandLabel_(command, menuIds_)]] |
20 </button> | 21 </button> |
21 <hr hidden$="[[!showDividerAfter_(command)]]"></hr> | 22 <hr hidden$="[[!showDividerAfter_(command)]]"></hr> |
22 </template> | 23 </template> |
23 </dialog> | 24 </dialog> |
24 <template is="cr-lazy-render" id="editDialog"> | 25 <template is="cr-lazy-render" id="editDialog"> |
25 <bookmarks-edit-dialog></bookmarks-edit-dialog> | 26 <bookmarks-edit-dialog></bookmarks-edit-dialog> |
26 </template> | 27 </template> |
27 </template> | 28 </template> |
28 <script src="chrome://bookmarks/command_manager.js"></script> | 29 <script src="chrome://bookmarks/command_manager.js"></script> |
29 </dom-module> | 30 </dom-module> |
OLD | NEW |