Chromium Code Reviews| Index: ui/webui/resources/cr_elements/cr_toolbar/cr_toolbar_search_field.html |
| diff --git a/ui/webui/resources/cr_elements/cr_toolbar/cr_toolbar_search_field.html b/ui/webui/resources/cr_elements/cr_toolbar/cr_toolbar_search_field.html |
| index d64c02609bf2bec3a2c714a5e966973258c85fab..4956eb2b8c21539dd9380a56c5fe6244d6273966 100644 |
| --- a/ui/webui/resources/cr_elements/cr_toolbar/cr_toolbar_search_field.html |
| +++ b/ui/webui/resources/cr_elements/cr_toolbar/cr_toolbar_search_field.html |
| @@ -2,6 +2,7 @@ |
| <link rel="import" href="chrome://resources/polymer/v1_0/iron-input/iron-input.html"> |
| <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper-icon-button.html"> |
| <link rel="import" href="chrome://resources/polymer/v1_0/paper-input/paper-input-container.html"> |
| +<link rel="import" href="chrome://resources/polymer/v1_0/paper-spinner/paper-spinner-lite.html"> |
|
calamity
2016/06/07 04:46:04
Wew.
|
| <link rel="import" href="chrome://resources/cr_elements/cr_search_field/cr_search_field_behavior.html"> |
| <link rel="import" href="chrome://resources/cr_elements/icons.html"> |
| @@ -30,12 +31,22 @@ |
| #icon { |
| --paper-icon-button-ink-color: white; |
| + transition: opacity 150ms; |
| } |
| #prompt { |
| visibility: hidden; |
| } |
| + paper-spinner-lite { |
| + --paper-spinner-color: white; |
| + height: 20px; |
| + margin: 0 6px; |
| + padding: 6px; |
| + position: absolute; |
| + width: 20px; |
| + } |
| + |
| paper-input-container { |
| --paper-input-container-input-color: white; |
| --paper-input-container-underline: { |
| @@ -70,6 +81,9 @@ |
| :host(:not([narrow]):not([showing-search])) #icon, |
| :host(:not([narrow]):not([showing-search])) #prompt { |
| opacity: 0.6; |
| + } |
| + |
| + :host(:not([narrow]):not([showing-search])) #prompt { |
| visibility: visible; |
| } |
| @@ -78,10 +92,17 @@ |
| width: 100%; |
| } |
| + :host([showing-search][processing]) #icon { |
| + opacity: 0; |
| + } |
| + |
| :host([narrow][showing-search]) #icon { |
| -webkit-margin-start: 18px; |
| } |
| </style> |
| + <paper-spinner-lite |
| + active="[[isSpinnerActive_(processing, showingSearch)]]"> |
| + </paper-spinner-lite> |
| <paper-icon-button id="icon" icon="cr:search" title="[[label]]" |
| tabindex$="[[computeIconTabIndex_(narrow)]]"> |
| </paper-icon-button> |