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

Side by Side Diff: chrome/browser/resources/md_bookmarks/command_manager.html

Issue 2945513002: MD Bookmarks: Add a confirmation dialog before opening many tabs (Closed)
Patch Set: Rebase Created 3 years, 6 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 unified diff | Download patch
OLDNEW
1 <link rel="import" href="chrome://resources/html/polymer.html"> 1 <link rel="import" href="chrome://resources/html/polymer.html">
2 2
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_action_menu/cr_action _menu.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/cr_elements/cr_lazy_render/cr_lazy_r ender.html">
5 <link rel="import" href="chrome://resources/html/cr/ui/command.html"> 5 <link rel="import" href="chrome://resources/html/cr/ui/command.html">
6 <link rel="import" href="chrome://resources/polymer/v1_0/iron-a11y-keys-behavior /iron-a11y-keys-behavior.html"> 6 <link rel="import" href="chrome://resources/polymer/v1_0/iron-a11y-keys-behavior /iron-a11y-keys-behavior.html">
7 <link rel="import" href="chrome://bookmarks/edit_dialog.html"> 7 <link rel="import" href="chrome://bookmarks/edit_dialog.html">
8 <link rel="import" href="chrome://bookmarks/shared_style.html"> 8 <link rel="import" href="chrome://bookmarks/shared_style.html">
9 <link rel="import" href="chrome://bookmarks/store_client.html"> 9 <link rel="import" href="chrome://bookmarks/store_client.html">
10 10
11 <dom-module id="bookmarks-command-manager"> 11 <dom-module id="bookmarks-command-manager">
12 <template> 12 <template>
13 <style include="shared-style"></style> 13 <style include="shared-style"></style>
14 <dialog is="cr-action-menu" id="dropdown" on-mousedown="onMenuMousedown_"> 14 <dialog is="cr-action-menu" id="dropdown" on-mousedown="onMenuMousedown_">
15 <template is="dom-repeat" items="[[menuCommands_]]" as="command"> 15 <template is="dom-repeat" items="[[menuCommands_]]" as="command">
16 <button class="dropdown-item" 16 <button class="dropdown-item"
17 command$="[[command]]" 17 command$="[[command]]"
18 hidden$="[[!isCommandVisible_(command, menuIds_)]]" 18 hidden$="[[!isCommandVisible_(command, menuIds_)]]"
19 disabled$="[[!isCommandEnabled_(command, menuIds_)]]" 19 disabled$="[[!isCommandEnabled_(command, menuIds_)]]"
20 on-tap="onCommandClick_"> 20 on-tap="onCommandClick_">
21 [[getCommandLabel_(command, menuIds_)]] 21 [[getCommandLabel_(command, menuIds_)]]
22 </button> 22 </button>
23 <hr hidden$="[[!showDividerAfter_(command, menuIds_)]]"></hr> 23 <hr hidden$="[[!showDividerAfter_(command, menuIds_)]]"></hr>
24 </template> 24 </template>
25 </dialog> 25 </dialog>
26 <template is="cr-lazy-render" id="editDialog"> 26 <template is="cr-lazy-render" id="editDialog">
27 <bookmarks-edit-dialog></bookmarks-edit-dialog> 27 <bookmarks-edit-dialog></bookmarks-edit-dialog>
28 </template> 28 </template>
29 <template is="cr-lazy-render" id="openDialog">
30 <dialog is="cr-dialog">
31 <div class="title">$i18n{openDialogTitle}</div>
32 <div class="body">
33 [[confirmOpenString_]]
34 </div>
35 <div class="button-container">
36 <paper-button class="cancel-button" on-tap="onOpenCancelTap_">
37 $i18n{cancel}
38 </paper-button>
39 <paper-button class="action-button" on-tap="onOpenConfirmTap_">
40 $i18n{openDialogConfirm}
41 </paper-button>
42 </div>
43 </dialog>
44 </template>
29 </template> 45 </template>
30 <script src="chrome://bookmarks/command_manager.js"></script> 46 <script src="chrome://bookmarks/command_manager.js"></script>
31 </dom-module> 47 </dom-module>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698