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

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

Issue 1572383006: MD History: Hook all elements into the page and add tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@patch
Patch Set: Rebase. Created 4 years, 11 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/history_toolbar.html
diff --git a/chrome/browser/resources/md_history/history_toolbar.html b/chrome/browser/resources/md_history/history_toolbar.html
new file mode 100644
index 0000000000000000000000000000000000000000..7e46840aaecb2f0b335050475f80a812eb09b247
--- /dev/null
+++ b/chrome/browser/resources/md_history/history_toolbar.html
@@ -0,0 +1,75 @@
+<link rel="import" href="chrome://resources/polymer/v1_0/polymer/polymer.html">
+<link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/iron-flex-layout.html">
+<link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-button.html">
+<link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper-icon-button.html">
+<link rel="import" href="chrome://resources/cr_elements/cr_search_field/cr_search_field.html">
+
+<dom-module id="history-toolbar">
+ <template>
+
+ <style>
+ :host {
+ @apply(--layout-center);
+ @apply(--layout-horizontal);
+ background: #3f5566;
+ color: #fff;
+ height: 56px;
+ transition: background-color 150ms;
+ width: 100%;
+ }
+
+ :host([items-selected_]) {
+ background: rgb(68, 136, 255);
+ }
+
+ h1 {
+ @apply(--layout-flex);
+ font-size: 16px;
+ font-weight: 400;
+ padding-left: 24px;
+ }
+
+ #items {
+ @apply(--layout-center);
+ @apply(--layout-horizontal);
+ margin: 0 auto;
+ max-width: 960px;
+ width: 100%;
+ }
+
+ #number-selected {
+ @apply(--layout-flex);
+ }
+
+ paper-icon-button {
+ height: 36px;
+ margin: 0 24px 0 2px;
+ min-width: 36px;
+ width: 36px;
+ }
+ </style>
+
+ <template is="dom-if" if="{{!itemsSelected_}}">
+ <h1 i18n-content="title" id="title"></h1>
+ <cr-search-field id="search-input"
+ i18n-values="label:search;clear-label:clearSearch"></cr-search-field>
+ </template>
+
+ <template is="dom-if" if="{{itemsSelected_}}">
+ <div id="items">
+ <paper-icon-button icon="clear" id="cancel-icon-button"
+ on-tap="onClearSelectionTap_">
+ </paper-icon-button>
+ <!-- TODO: change "selected" and number to an i18n (or equivalent)
+ string -->
+ <div id="number-selected">{{count}} selected</div>
+ <paper-button id="cancel-button" on-tap="onClearSelectionTap_">
+ CANCEL
+ </paper-button>
+ <paper-button id="delete-button">DELETE</paper-button>
+ </div>
+ </template>
+
+ </template>
+ <script src="chrome://history/history_toolbar.js"></script>
+</dom-module>
« no previous file with comments | « chrome/browser/resources/md_history/history.js ('k') | chrome/browser/resources/md_history/history_toolbar.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698