OLD | NEW |
---|---|
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"> | 3 <link rel="import" href="chrome://resources/polymer/v1_0/iron-input/iron-input.h tml"> |
Dan Beam
2015/09/14 23:16:06
iron-input is no longer used
Devlin
2015/09/15 17:24:06
Done.
| |
4 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt on.html"> | 4 <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"> | 5 <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"> | 6 <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"> | 7 <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"> | 8 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper -icon-button.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"> |
11 <link rel="import" href="chrome://resources/cr_elements/v1_0/cr_search_field/cr_ search_field.html"> | |
12 | 12 |
13 <dom-module id="downloads-toolbar"> | 13 <dom-module id="downloads-toolbar"> |
14 <template> | 14 <template> |
15 <div id="title"> | 15 <div id="title"> |
16 <h1 i18n-content="title"></h1> | 16 <h1 i18n-content="title"></h1> |
17 </div> | 17 </div> |
18 <div id="actions"> | 18 <div id="actions"> |
19 <paper-button class="clear-all" i18n-content="clearAll" | 19 <paper-button class="clear-all" i18n-content="clearAll" |
20 on-click="onClearAllClick_"></paper-button> | 20 on-click="onClearAllClick_"></paper-button> |
21 <paper-button i18n-content="openDownloadsFolder" | 21 <paper-button i18n-content="openDownloadsFolder" |
22 on-click="onOpenDownloadsFolderClick_"></paper-button> | 22 on-click="onOpenDownloadsFolderClick_"></paper-button> |
23 </div> | 23 </div> |
24 <div id="search"> | 24 <div id="search"> |
25 <paper-icon-button icon="search" id="search-button" | 25 <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"> | 26 <paper-menu-button id="more" horizontal-align="right"> |
38 <paper-icon-button icon="more-vert" i18n-values="title:moreActions" | 27 <paper-icon-button icon="more-vert" i18n-values="title:moreActions" |
39 class="dropdown-trigger"></paper-icon-button> | 28 class="dropdown-trigger"></paper-icon-button> |
40 <paper-menu class="dropdown-content"> | 29 <paper-menu class="dropdown-content"> |
41 <paper-item class="clear-all" i18n-content="clearAll" | 30 <paper-item class="clear-all" i18n-content="clearAll" |
42 on-click="onClearAllClick_"></paper-item> | 31 on-click="onClearAllClick_"></paper-item> |
43 <paper-item i18n-content="openDownloadsFolder" | 32 <paper-item i18n-content="openDownloadsFolder" |
44 on-click="onOpenDownloadsFolderClick_"></paper-item> | 33 on-click="onOpenDownloadsFolderClick_"></paper-item> |
45 </paper-menu> | 34 </paper-menu> |
46 </paper-menu-button> | 35 </paper-menu-button> |
47 </div> | 36 </div> |
48 </template> | 37 </template> |
49 <link rel="import" type="css" href="chrome://downloads/shared_style.css"> | 38 <link rel="import" type="css" href="chrome://downloads/shared_style.css"> |
50 <link rel="import" type="css" href="chrome://downloads/toolbar.css"> | 39 <link rel="import" type="css" href="chrome://downloads/toolbar.css"> |
51 <script src="chrome://downloads/toolbar.js"></script> | 40 <script src="chrome://downloads/toolbar.js"></script> |
52 </dom-module> | 41 </dom-module> |
OLD | NEW |