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

Side by Side Diff: chrome/browser/resources/md_downloads/toolbar.html

Issue 1308893009: [MD Extensions] Move search field out of downloads, use it in extensions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: License + Nit Created 5 years, 3 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/polymer/v1_0/polymer/polymer.html"> 1 <link rel="import" href="chrome://resources/polymer/v1_0/polymer/polymer.html">
2 <link rel="import" href="chrome://resources/polymer/v1_0/iron-icons/iron-icons.h tml"> 2 <link rel="import" href="chrome://resources/polymer/v1_0/iron-icons/iron-icons.h tml">
3 <link rel="import" href="chrome://resources/polymer/v1_0/iron-input/iron-input.h tml">
4 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt on.html"> 3 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt on.html">
5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-input/paper-input -container.html">
6 <link rel="import" href="chrome://resources/polymer/v1_0/paper-item/paper-item.h tml"> 4 <link rel="import" href="chrome://resources/polymer/v1_0/paper-item/paper-item.h tml">
7 <link rel="import" href="chrome://resources/polymer/v1_0/paper-menu/paper-menu.h tml"> 5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-menu/paper-menu.h tml">
8 <link rel="import" href="chrome://resources/polymer/v1_0/paper-menu-button/paper -menu-button.html"> 6 <link rel="import" href="chrome://resources/polymer/v1_0/paper-menu-button/paper -menu-button.html">
9 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper -icon-button.html"> 7 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper -icon-button.html">
8 <link rel="import" href="chrome://resources/cr_elements/v1_0/cr_search_field/cr_ search_field.html">
10 <link rel="import" href="chrome://resources/html/assert.html"> 9 <link rel="import" href="chrome://resources/html/assert.html">
11 <link rel="import" href="chrome://resources/html/cr.html"> 10 <link rel="import" href="chrome://resources/html/cr.html">
12 11
13 <dom-module id="downloads-toolbar"> 12 <dom-module id="downloads-toolbar">
14 <template> 13 <template>
15 <div id="title"> 14 <div id="title">
16 <h1 i18n-content="title"></h1> 15 <h1 i18n-content="title"></h1>
17 </div> 16 </div>
18 <div id="actions"> 17 <div id="actions">
19 <paper-button class="clear-all" i18n-content="clearAll" 18 <paper-button class="clear-all" i18n-content="clearAll"
20 on-click="onClearAllClick_"></paper-button> 19 on-click="onClearAllClick_"></paper-button>
21 <paper-button i18n-content="openDownloadsFolder" 20 <paper-button i18n-content="openDownloadsFolder"
22 on-click="onOpenDownloadsFolderClick_"></paper-button> 21 on-click="onOpenDownloadsFolderClick_"></paper-button>
23 </div> 22 </div>
24 <div id="search"> 23 <div id="search">
25 <paper-icon-button icon="search" id="search-button" 24 <cr-search-field id="search-input"></cr-search-field>
26 i18n-values="title:search"
27 on-click="toggleShowingSearch_"></paper-icon-button>
28 <paper-input-container id="search-term" on-search="onSearchTermSearch_"
29 on-keydown="onSearchTermKeydown_" hidden$="[[!showingSearch_]]"
30 no-label-float>
31 <input is="iron-input" id="search-input" type="search"
32 i18n-values="placeholder:search" incremental>
33 <paper-icon-button icon="cancel" id="clear-search"
34 on-click="toggleShowingSearch_"
35 hidden$="[[!showingSearch_]]"></paper-icon-button>
36 </paper-input-container>
37 <paper-menu-button id="more" horizontal-align="right"> 25 <paper-menu-button id="more" horizontal-align="right">
38 <paper-icon-button icon="more-vert" i18n-values="title:moreActions" 26 <paper-icon-button icon="more-vert" i18n-values="title:moreActions"
39 class="dropdown-trigger"></paper-icon-button> 27 class="dropdown-trigger"></paper-icon-button>
40 <paper-menu class="dropdown-content"> 28 <paper-menu class="dropdown-content">
41 <paper-item class="clear-all" i18n-content="clearAll" 29 <paper-item class="clear-all" i18n-content="clearAll"
42 on-click="onClearAllClick_"></paper-item> 30 on-click="onClearAllClick_"></paper-item>
43 <paper-item i18n-content="openDownloadsFolder" 31 <paper-item i18n-content="openDownloadsFolder"
44 on-click="onOpenDownloadsFolderClick_"></paper-item> 32 on-click="onOpenDownloadsFolderClick_"></paper-item>
45 </paper-menu> 33 </paper-menu>
46 </paper-menu-button> 34 </paper-menu-button>
47 </div> 35 </div>
48 </template> 36 </template>
49 <link rel="import" type="css" href="chrome://downloads/shared_style.css"> 37 <link rel="import" type="css" href="chrome://downloads/shared_style.css">
50 <link rel="import" type="css" href="chrome://downloads/toolbar.css"> 38 <link rel="import" type="css" href="chrome://downloads/toolbar.css">
51 <script src="chrome://downloads/toolbar.js"></script> 39 <script src="chrome://downloads/toolbar.js"></script>
52 </dom-module> 40 </dom-module>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698