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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/md_history/list_container.html
diff --git a/chrome/browser/resources/md_history/list_container.html b/chrome/browser/resources/md_history/list_container.html
index bf01abeb72c73c500210158ef8882c6b5ee03f19..eff450f54c92a0dec2aa0bbd670015e1d2f15a41 100644
--- a/chrome/browser/resources/md_history/list_container.html
+++ b/chrome/browser/resources/md_history/list_container.html
@@ -1,11 +1,13 @@
<link rel="import" href="chrome://resources/html/polymer.html">
+<link rel="import" href="chrome://resources/cr_elements/cr_dialog/cr_dialog.html">
+<link rel="import" href="chrome://resources/cr_elements/shared_style_css.html">
<link rel="import" href="chrome://resources/polymer/v1_0/iron-pages/iron-pages.html">
<link rel="import" href="chrome://history/grouped_list.html">
<link rel="import" href="chrome://history/history_list.html">
<dom-module id="history-list-container">
<template>
- <style>
+ <style include="cr-shared-style">
:host {
display: block;
height: 100%;
@@ -16,6 +18,10 @@
#content > * {
height: 100%;
}
+
+ #dialog .body {
+ white-space: pre-wrap;
+ }
</style>
<iron-pages id="content" attr-for-selected="id"
selected="[[selectedPage_]]">
@@ -29,8 +35,21 @@
searched-term="[[queryResult.info.term]]">
</history-grouped-list>
</template>
- </template>
</iron-pages>
+
+ <cr-dialog id="dialog">
+ <div class="title">$i18n{removeSelected}</div>
+ <div class="body">$i18n{deleteWarning}</div>
+ <div class="button-container">
+ <paper-button class="cancel-button" on-tap="onDialogCancelTap_">
+ $i18n{cancel}
+ </paper-button>
+ <paper-button class="action-button" on-tap="onDialogConfirmTap_"
+ autofocus>
+ $i18n{deleteConfirm}
+ </paper-button>
+ </div>
+ </cr-dialog>
</template>
<script src="chrome://history/list_container.js"></script>
</dom-module>
« 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