| OLD | NEW |
| (Empty) |
| 1 <link rel="import" href="chrome://resources/cr_elements/cr_search_field/cr_searc
h_field_behavior.html"> | |
| 2 <link rel="import" href="chrome://resources/cr_elements/icons.html"> | |
| 3 <link rel="import" href="chrome://resources/html/assert.html"> | |
| 4 <link rel="import" href="chrome://resources/html/polymer.html"> | |
| 5 <link rel="import" href="chrome://resources/polymer/v1_0/iron-input/iron-input.h
tml"> | |
| 6 <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-input/paper-input
-container.html"> | |
| 8 | |
| 9 <dom-module id="cr-search-field"> | |
| 10 <template> | |
| 11 <paper-icon-button icon="cr:search" id="searchButton" | |
| 12 disabled$="[[showingSearch]]" title="[[label]]" | |
| 13 on-tap="toggleShowingSearch_"></paper-icon-button> | |
| 14 <paper-input-container id="searchTerm" on-search="onSearchTermSearch" | |
| 15 on-keydown="onSearchTermKeydown" hidden$="[[!showingSearch]]" | |
| 16 no-label-float> | |
| 17 <input is="iron-input" id="searchInput" type="search" | |
| 18 bind-value="{{value_}}" placeholder="[[label]]" incremental> | |
| 19 <template is="dom-if" if="[[value_]]"> | |
| 20 <paper-icon-button icon="cr:cancel" on-tap="clearSearch_" | |
| 21 title="[[clearLabel]]" hidden$="[[!showingSearch]]"> | |
| 22 </paper-icon-button> | |
| 23 </template> | |
| 24 </paper-input-container> | |
| 25 </template> | |
| 26 <link rel="import" type="css" href="cr_search_field.css"> | |
| 27 <script src="cr_search_field.js"></script> | |
| 28 </dom-module> | |
| OLD | NEW |