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

Unified Diff: chrome/browser/resources/md_history/history_toolbar.html

Issue 1585473003: MD History: Added a clear browsing data button (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@second_patch
Patch Set: ye Created 4 years, 10 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
« no previous file with comments | « no previous file | chrome/browser/resources/md_history/history_toolbar.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/md_history/history_toolbar.html
diff --git a/chrome/browser/resources/md_history/history_toolbar.html b/chrome/browser/resources/md_history/history_toolbar.html
index cd00916be0bc745434721e8393df491dae5546bf..6de760d269a530f5ee054a6c1debb852f224da76 100644
--- a/chrome/browser/resources/md_history/history_toolbar.html
+++ b/chrome/browser/resources/md_history/history_toolbar.html
@@ -17,7 +17,9 @@
:host,
#items,
- #main-content {
+ #main-content,
+ #button-container,
+ #toolbar-container {
@apply(--layout-center);
@apply(--layout-horizontal);
width: 100%;
@@ -50,27 +52,66 @@
width: 36px;
}
+ #centered-buttons {
+ flex: 1 1 960px;
+ max-width: 960px;
+ }
+
+ paper-button {
+ pointer-events: auto;
+ }
+
+ .toolbar-overlay {
+ height: inherit;
+ left: 0;
+ pointer-events: none;
+ position: absolute;
+ top: 0;
+ }
+
+ #front-padding {
+ flex: 1 1 0;
+ min-width: 100px;
+ }
+
+ #back-padding {
+ flex: 1 1 0;
+ }
+
[hidden] {
display: none !important;
}
</style>
- <div id="main-content" hidden$="{{itemsSelected_}}">
- <h1 i18n-content="title" id="title"></h1>
- <cr-search-field id="search-input"
- i18n-values="label:search;clear-label:clearSearch"></cr-search-field>
- </div>
+ <div id="toolbar-container">
+ <div id="main-content" hidden$="{{itemsSelected_}}">
+ <h1 i18n-content="title" id="title"></h1>
+ <cr-search-field id="search-input"
+ i18n-values="label:search;clear-label:clearSearch">
+ </cr-search-field>
+ </div>
- <div id="items" hidden$="{{!itemsSelected_}}">
- <paper-icon-button icon="clear" id="cancel-icon-button"
- on-tap="onClearSelectionTap_"></paper-icon-button>
- <div id="number-selected">{{numberOfItemsSelected_(count)}}</div>
- <paper-button id="cancel-button" on-tap="onClearSelectionTap_"
- i18n-content="cancel"></paper-button>
- <paper-button id="delete-button" i18n-content="delete"
- on-tap="onDeleteTap_"></paper-button>
+ <div id="items" hidden$="{{!itemsSelected_}}">
+ <paper-icon-button icon="clear" id="cancel-icon-button"
+ on-tap="onClearSelectionTap_"></paper-icon-button>
+ <div id="number-selected">{{numberOfItemsSelected_(count)}}</div>
+ <paper-button id="cancel-button" on-tap="onClearSelectionTap_"
+ i18n-content="cancel"></paper-button>
+ <paper-button id="delete-button" i18n-content="delete"
+ on-tap="onDeleteTap_"></paper-button>
+ </div>
</div>
+ <div id="button-container" class="toolbar-overlay">
+ <div id="front-padding"></div>
+ <div id="centered-buttons" hidden$="{{itemsSelected_}}">
+ <paper-button on-tap="onClearBrowsingDataTap_"
+ i18n-content="clearBrowsingData"
+ id="clear-browsing-data-button">
+ </paper-button>
+ </div>
+ <div id="back-padding"></div>
+ </div>
</template>
<script src="chrome://history/history_toolbar.js"></script>
</dom-module>
« no previous file with comments | « no previous file | chrome/browser/resources/md_history/history_toolbar.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698