Chromium Code Reviews| 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/iron-input/iron-input.h tml"> | 2 <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/paper-icon-button/paper -icon-button.html"> | 3 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper -icon-button.html"> |
| 4 <link rel="import" href="chrome://resources/polymer/v1_0/paper-input/paper-input -container.html"> | 4 <link rel="import" href="chrome://resources/polymer/v1_0/paper-input/paper-input -container.html"> |
| 5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-spinner/paper-spi nner-lite.html"> | 5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-spinner/paper-spi nner-lite.html"> |
| 6 <link rel="import" href="chrome://resources/cr_elements/cr_search_field/cr_searc h_field_behavior.html"> | 6 <link rel="import" href="chrome://resources/cr_elements/cr_search_field/cr_searc h_field_behavior.html"> |
| 7 <link rel="import" href="chrome://resources/cr_elements/icons.html"> | 7 <link rel="import" href="chrome://resources/cr_elements/icons.html"> |
| 8 | 8 |
| 9 <dom-module id="cr-toolbar-search-field"> | 9 <dom-module id="cr-toolbar-search-field"> |
| 10 <template> | 10 <template> |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 105 | 105 |
| 106 :host([narrow][showing-search]) { | 106 :host([narrow][showing-search]) { |
| 107 width: 100%; | 107 width: 100%; |
| 108 } | 108 } |
| 109 | 109 |
| 110 /* | 110 /* |
| 111 * Margin needs to be animated to prevent jumping around during | 111 * Margin needs to be animated to prevent jumping around during |
| 112 * opening/closing. -webkit-margin-start is not animatable, so we have to | 112 * opening/closing. -webkit-margin-start is not animatable, so we have to |
| 113 * use regular margin-left/right instead. | 113 * use regular margin-left/right instead. |
| 114 */ | 114 */ |
| 115 :host-context([dir=ltr]):host([narrow][showing-search]) #icon { | 115 :host-context([dir=ltr]):host([narrow][showing-search]) #icon, |
| 116 :host-context([dir=ltr]):host([narrow][showing-search]) paper-spinner-lite | |
| 117 { | |
|
Dan Beam
2016/08/23 23:16:05
wrap it
tsergeant
2016/08/23 23:22:19
Do you mean like:
:host-context([dir=ltr]):host([
Dan Beam
2016/08/23 23:36:43
quit horsin' around[1], and just use -webkit-margi
tsergeant
2016/08/23 23:51:32
[grasping at straws]
is that Character Actress Ma
| |
| 116 margin-left: 18px; | 118 margin-left: 18px; |
| 117 } | 119 } |
| 118 | 120 |
| 119 :host-context([dir=rtl]):host([narrow][showing-search]) #icon { | 121 :host-context([dir=rtl]):host([narrow][showing-search]) #icon, |
| 122 :host-context([dir=rtl]):host([narrow][showing-search]) paper-spinner-lite | |
| 123 { | |
| 120 margin-right: 18px; | 124 margin-right: 18px; |
| 121 } | 125 } |
| 122 </style> | 126 </style> |
| 123 <paper-spinner-lite | 127 <paper-spinner-lite |
| 124 active="[[isSpinnerShown_(spinnerActive, showingSearch)]]"> | 128 active="[[isSpinnerShown_(spinnerActive, showingSearch)]]"> |
| 125 </paper-spinner-lite> | 129 </paper-spinner-lite> |
| 126 <paper-icon-button id="icon" icon="cr:search" title="[[label]]" | 130 <paper-icon-button id="icon" icon="cr:search" title="[[label]]" |
| 127 tabindex$="[[computeIconTabIndex_(narrow)]]"> | 131 tabindex$="[[computeIconTabIndex_(narrow)]]"> |
| 128 </paper-icon-button> | 132 </paper-icon-button> |
| 129 <paper-input-container id="searchTerm" on-search="onSearchTermSearch" | 133 <paper-input-container id="searchTerm" on-search="onSearchTermSearch" |
| 130 on-keydown="onSearchTermKeydown" no-label-float> | 134 on-keydown="onSearchTermKeydown" no-label-float> |
| 131 <label id="prompt" for="searchInput">[[label]]</label> | 135 <label id="prompt" for="searchInput">[[label]]</label> |
| 132 <input is="iron-input" id="searchInput" type="search" | 136 <input is="iron-input" id="searchInput" type="search" |
| 133 on-blur="onInputBlur_" incremental></input> | 137 on-blur="onInputBlur_" incremental></input> |
| 134 </paper-input-container> | 138 </paper-input-container> |
| 135 <paper-icon-button icon="cr:cancel" id="clearSearch" | 139 <paper-icon-button icon="cr:cancel" id="clearSearch" |
| 136 title="[[clearLabel]]" hidden$="[[!hasSearchText_]]" | 140 title="[[clearLabel]]" hidden$="[[!hasSearchText_]]" |
| 137 on-tap="hideSearch_"> | 141 on-tap="hideSearch_"> |
| 138 </paper-icon-button> | 142 </paper-icon-button> |
| 139 </template> | 143 </template> |
| 140 <script src="cr_toolbar_search_field.js"></script> | 144 <script src="cr_toolbar_search_field.js"></script> |
| 141 </dom-module> | 145 </dom-module> |
| OLD | NEW |