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

Side by Side Diff: chrome/browser/resources/md_history/list_container.html

Issue 2077483002: MD History: Add confirmation dialog when deleting items from the toolbar (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cr_refactor_dialog
Patch Set: Address nits Created 4 years, 5 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 <link rel="import" href="chrome://resources/cr_elements/cr_dialog/cr_dialog.html ">
3 <link rel="import" href="chrome://resources/cr_elements/shared_style_css.html">
2 <link rel="import" href="chrome://resources/polymer/v1_0/iron-pages/iron-pages.h tml"> 4 <link rel="import" href="chrome://resources/polymer/v1_0/iron-pages/iron-pages.h tml">
3 <link rel="import" href="chrome://history/grouped_list.html"> 5 <link rel="import" href="chrome://history/grouped_list.html">
4 <link rel="import" href="chrome://history/history_list.html"> 6 <link rel="import" href="chrome://history/history_list.html">
5 7
6 <dom-module id="history-list-container"> 8 <dom-module id="history-list-container">
7 <template> 9 <template>
8 <style> 10 <style include="cr-shared-style">
9 :host { 11 :host {
10 display: block; 12 display: block;
11 height: 100%; 13 height: 100%;
12 overflow: hidden; 14 overflow: hidden;
13 } 15 }
14 16
15 #content, 17 #content,
16 #content > * { 18 #content > * {
17 height: 100%; 19 height: 100%;
18 } 20 }
21
22 #dialog .body {
23 white-space: pre-wrap;
24 }
19 </style> 25 </style>
20 <iron-pages id="content" attr-for-selected="id" 26 <iron-pages id="content" attr-for-selected="id"
21 selected="[[selectedPage_]]"> 27 selected="[[selectedPage_]]">
22 <history-list id="infinite-list" querying="[[queryState.querying]]" 28 <history-list id="infinite-list" querying="[[queryState.querying]]"
23 searched-term="[[queryResult.info.term]]"></history-list> 29 searched-term="[[queryResult.info.term]]"></history-list>
24 <template is="dom-if" if="[[grouped]]"> 30 <template is="dom-if" if="[[grouped]]">
25 <history-grouped-list id="grouped-list" 31 <history-grouped-list id="grouped-list"
26 range="[[queryState.range]]" 32 range="[[queryState.range]]"
27 query-start-time="[[queryResult.info.queryStartTime]]" 33 query-start-time="[[queryResult.info.queryStartTime]]"
28 query-end-time="[[queryResult.info.queryEndTime]]" 34 query-end-time="[[queryResult.info.queryEndTime]]"
29 searched-term="[[queryResult.info.term]]"> 35 searched-term="[[queryResult.info.term]]">
30 </history-grouped-list> 36 </history-grouped-list>
31 </template> 37 </template>
32 </template>
33 </iron-pages> 38 </iron-pages>
39
40 <cr-dialog id="dialog">
41 <div class="title">$i18n{removeSelected}</div>
42 <div class="body">$i18n{deleteWarning}</div>
43 <div class="button-container">
44 <paper-button class="cancel-button" on-tap="onDialogCancelTap_">
45 $i18n{cancel}
46 </paper-button>
47 <paper-button class="action-button" on-tap="onDialogConfirmTap_"
48 autofocus>
49 $i18n{deleteConfirm}
50 </paper-button>
51 </div>
52 </cr-dialog>
34 </template> 53 </template>
35 <script src="chrome://history/list_container.js"></script> 54 <script src="chrome://history/list_container.js"></script>
36 </dom-module> 55 </dom-module>
OLDNEW
« no previous file with comments | « chrome/browser/resources/md_history/history_list.js ('k') | chrome/browser/resources/md_history/list_container.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698