| OLD | NEW |
| 1 <link rel="import" href="chrome://resources/html/polymer.html"> | 1 <link rel="import" href="chrome://resources/html/polymer.html"> |
| 2 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper
-icon-button.html"> | 2 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper
-icon-button.html"> |
| 3 <link rel="import" href="chrome://resources/polymer/v1_0/paper-spinner/paper-spi
nner-lite.html"> | 3 <link rel="import" href="chrome://resources/polymer/v1_0/paper-spinner/paper-spi
nner-lite.html"> |
| 4 <link rel="import" href="chrome://resources/cr_elements/cr_search_field/cr_searc
h_field_behavior.html"> | 4 <link rel="import" href="chrome://resources/cr_elements/cr_search_field/cr_searc
h_field_behavior.html"> |
| 5 <link rel="import" href="chrome://resources/cr_elements/icons.html"> | 5 <link rel="import" href="chrome://resources/cr_elements/icons.html"> |
| 6 | 6 |
| 7 <dom-module id="cr-toolbar-search-field"> | 7 <dom-module id="cr-toolbar-search-field"> |
| 8 <template> | 8 <template> |
| 9 <style> | 9 <style> |
| 10 :host { | 10 :host { |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 </template> | 136 </template> |
| 137 <paper-icon-button id="icon" icon="cr:search" title="[[label]]" | 137 <paper-icon-button id="icon" icon="cr:search" title="[[label]]" |
| 138 tabindex$="[[computeIconTabIndex_(narrow)]]"> | 138 tabindex$="[[computeIconTabIndex_(narrow)]]"> |
| 139 </paper-icon-button> | 139 </paper-icon-button> |
| 140 <div id="searchTerm"> | 140 <div id="searchTerm"> |
| 141 <label id="prompt" for="searchInput">[[label]]</label> | 141 <label id="prompt" for="searchInput">[[label]]</label> |
| 142 <input id="searchInput" | 142 <input id="searchInput" |
| 143 type="search" | 143 type="search" |
| 144 on-input="onSearchInput_" | 144 on-input="onSearchInput_" |
| 145 on-search="onSearchTermSearch" | 145 on-search="onSearchTermSearch" |
| 146 on-keydown="onSearchTermKeydown" | 146 on-keydown="onSearchTermKeydown_" |
| 147 on-focus="onInputFocus_" | 147 on-focus="onInputFocus_" |
| 148 on-blur="onInputBlur_" | 148 on-blur="onInputBlur_" |
| 149 incremental | 149 incremental |
| 150 autofocus> | 150 autofocus> |
| 151 </input> | 151 </input> |
| 152 </div> | 152 </div> |
| 153 <template is="dom-if" if="[[hasSearchText_]]"> | 153 <template is="dom-if" if="[[hasSearchText_]]"> |
| 154 <paper-icon-button icon="cr:cancel" id="clearSearch" | 154 <paper-icon-button icon="cr:cancel" id="clearSearch" |
| 155 title="[[clearLabel]]" on-tap="clearSearch_"> | 155 title="[[clearLabel]]" on-tap="clearSearch_"> |
| 156 </paper-icon-button> | 156 </paper-icon-button> |
| 157 </template> | 157 </template> |
| 158 </template> | 158 </template> |
| 159 <script src="cr_toolbar_search_field.js"></script> | 159 <script src="cr_toolbar_search_field.js"></script> |
| 160 </dom-module> | 160 </dom-module> |
| OLD | NEW |