| 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 bottom: 0; | 68 bottom: 0; |
| 69 cursor: text; | 69 cursor: text; |
| 70 left: 0; | 70 left: 0; |
| 71 overflow: hidden; | 71 overflow: hidden; |
| 72 position: absolute; | 72 position: absolute; |
| 73 right: 0; | 73 right: 0; |
| 74 top: 0; | 74 top: 0; |
| 75 white-space: nowrap; | 75 white-space: nowrap; |
| 76 } | 76 } |
| 77 | 77 |
| 78 :host([has-search-text_]) label { | 78 :host([has-search-text]) label { |
| 79 visibility: hidden; | 79 visibility: hidden; |
| 80 } | 80 } |
| 81 | 81 |
| 82 input { | 82 input { |
| 83 -webkit-appearance: none; | 83 -webkit-appearance: none; |
| 84 background: transparent; | 84 background: transparent; |
| 85 border: none; | 85 border: none; |
| 86 color: white; | 86 color: white; |
| 87 font: inherit; | 87 font: inherit; |
| 88 outline: none; | 88 outline: none; |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 <paper-spinner-lite active> | 133 <paper-spinner-lite active> |
| 134 </paper-spinner-lite> | 134 </paper-spinner-lite> |
| 135 </template> | 135 </template> |
| 136 <paper-icon-button id="icon" icon="cr:search" title="[[label]]" | 136 <paper-icon-button id="icon" icon="cr:search" title="[[label]]" |
| 137 tabindex$="[[computeIconTabIndex_(narrow)]]"> | 137 tabindex$="[[computeIconTabIndex_(narrow)]]"> |
| 138 </paper-icon-button> | 138 </paper-icon-button> |
| 139 <div id="searchTerm"> | 139 <div id="searchTerm"> |
| 140 <label id="prompt" for="searchInput">[[label]]</label> | 140 <label id="prompt" for="searchInput">[[label]]</label> |
| 141 <input id="searchInput" | 141 <input id="searchInput" |
| 142 type="search" | 142 type="search" |
| 143 on-input="onSearchInput_" | 143 on-input="onSearchTermInput" |
| 144 on-search="onSearchTermSearch" | 144 on-search="onSearchTermSearch" |
| 145 on-keydown="onSearchTermKeydown_" | 145 on-keydown="onSearchTermKeydown_" |
| 146 on-focus="onInputFocus_" | 146 on-focus="onInputFocus_" |
| 147 on-blur="onInputBlur_" | 147 on-blur="onInputBlur_" |
| 148 incremental | 148 incremental |
| 149 autofocus> | 149 autofocus> |
| 150 </input> | 150 </input> |
| 151 </div> | 151 </div> |
| 152 <template is="dom-if" if="[[hasSearchText_]]"> | 152 <template is="dom-if" if="[[hasSearchText]]"> |
| 153 <paper-icon-button icon="cr:cancel" id="clearSearch" | 153 <paper-icon-button icon="cr:cancel" id="clearSearch" |
| 154 title="[[clearLabel]]" on-tap="clearSearch_"> | 154 title="[[clearLabel]]" on-tap="clearSearch_"> |
| 155 </paper-icon-button> | 155 </paper-icon-button> |
| 156 </template> | 156 </template> |
| 157 </template> | 157 </template> |
| 158 <script src="cr_toolbar_search_field.js"></script> | 158 <script src="cr_toolbar_search_field.js"></script> |
| 159 </dom-module> | 159 </dom-module> |
| OLD | NEW |