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

Unified Diff: chrome/browser/resources/md_downloads/toolbar.html

Issue 1240853002: Slice MD downloads into more components (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: compile Created 5 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_downloads/toolbar.html
diff --git a/chrome/browser/resources/md_downloads/toolbar.html b/chrome/browser/resources/md_downloads/toolbar.html
new file mode 100644
index 0000000000000000000000000000000000000000..12a264d0753aa0a27034eadd77fd74f5937f8a23
--- /dev/null
+++ b/chrome/browser/resources/md_downloads/toolbar.html
@@ -0,0 +1,30 @@
+<dom-module is="downloads-toolbar">
+ <template>
+ <paper-toolbar>
+ <h1 i18n-content="title" id="title"></h1>
+ <div id="actions">
+ <paper-button id="clear-all" i18n-content="clearAll"
Jeremy Klein 2015/07/16 18:54:54 y u no cr-elements
Dan Beam 2015/07/18 01:02:20 Done.
+ on-click="onClearAllClick_"
+ hidden$="{{!canClearAll}}"></paper-button>
Jeremy Klein 2015/07/16 18:54:54 nit: [[]] here and other hidden attributes.
Dan Beam 2015/07/18 01:02:20 Done.
+ <paper-button id="open-downloads-folder"
+ i18n-content="openDownloadsFolder"
+ on-click="onOpenDownloadsFolderClick_"></paper-button>
+ </div>
+ <div id="search">
+ <paper-icon-button icon="search" id="search-button"
+ on-click="toggleShowingSearch_"></paper-icon-button>
+ <paper-input id="search-term"
+ i18n-values="label:searchButton" hidden$="{{!showingSearch_}}"
+ no-label-float></paper-input>
+ <paper-icon-button icon="clear" id="clear-search"
+ on-click="toggleShowingSearch_"
+ hidden$="{{!showingSearch_}}"></paper-icon-button>
+ </div>
+ </paper-toolbar>
+ </template>
+ <link rel="import" href="chrome://resources/polymer/v1_0/polymer/polymer.html">
Jeremy Klein 2015/07/16 18:54:54 same comment about imports being at the top outsid
Dan Beam 2015/07/18 01:02:20 Acknowledged.
+ <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-button.html">
+ <link rel="import" href="chrome://resources/html/cr.html">
+ <link rel="import" type="css" href="chrome://downloads/toolbar.css">
+ <script src="chrome://downloads/toolbar.js"></script>
+</dom-module>

Powered by Google App Engine
This is Rietveld 408576698