Chromium Code Reviews| Index: chrome/browser/resources/settings/printing_page/cups_add_printer_dialog_util.html |
| diff --git a/chrome/browser/resources/settings/printing_page/cups_add_printer_dialog_util.html b/chrome/browser/resources/settings/printing_page/cups_add_printer_dialog_util.html |
| index 617b00721dc5040d18ba92dcf9d05c46a9f939c6..718b9a407ef8ac0fad9946614e53ed1dc79d6aeb 100644 |
| --- a/chrome/browser/resources/settings/printing_page/cups_add_printer_dialog_util.html |
| +++ b/chrome/browser/resources/settings/printing_page/cups_add_printer_dialog_util.html |
| @@ -1,6 +1,9 @@ |
| <link rel="import" href="chrome://resources/cr_elements/cr_dialog/cr_dialog.html"> |
| +<link rel="import" href="chrome://resources/cr_elements/icons.html"> |
| <link rel="import" href="chrome://resources/html/polymer.html"> |
| <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-button.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.html"> |
| <link rel="import" href="chrome://resources/polymer/v1_0/paper-item/paper-item.html"> |
| <link rel="import" href="/printing_page/cups_printers_browser_proxy.html"> |
| <link rel="import" href="/settings_shared_css.html"> |
| @@ -31,6 +34,44 @@ |
| </template> |
| </dom-module> |
| +<dom-module id="drop-down-search-box"> |
| + <template> |
| + <style include="settings-shared"> |
| + paper-input, |
| + iron-dropdown { |
|
michaelpg
2016/09/02 21:51:55
nit: alphabetize this maybe
xdai1
2016/09/02 23:39:13
Done.
|
| + width: 270px; |
| + } |
| + |
| + paper-input { |
| + --paper-input-container-color: var(--google-grey-500); |
| + --paper-input-container-input: { |
| + font-size: inherit; |
| + }; |
| + } |
| + |
| + iron-dropdown .dropdown-content paper-item { |
| + min-height: 40px; |
| + } |
| + </style> |
| + <paper-input no-label-float on-tap="onTap_" on-input="onInputValueChanged_" |
|
michaelpg
2016/09/02 21:51:55
could be a performance issue with re-running the f
xdai1
2016/09/02 23:39:13
It seems 'paper-input' doesn't have on-search even
michaelpg
2016/09/06 22:24:40
Acknowledged.
Dan Beam
2016/09/06 22:37:12
it does if you do this:
https://cs.chromium.org/ch
michaelpg
2016/09/06 22:58:52
hmm, the difference between that and xdai1's lates
xdai1
2016/09/06 23:13:16
Thanks for the explanation.
|
| + on-blur="onBlur_"> |
| + <paper-icon-button suffix id="searchIcon" icon="cr:search" hidden> |
| + </paper-icon-button> |
| + <paper-icon-button suffix id="dropdownIcon" icon="cr:arrow-drop-down"> |
| + </paper-icon-button> |
| + </paper-input> |
| + <iron-dropdown horizontal-align="left" vertical-align="top" |
| + vertical-offset="47"> |
|
michaelpg
2016/09/02 21:51:55
not a big fan of arbitrary numbers. will this work
xdai1
2016/09/02 23:39:13
It does work with scaling the page. I addressed yo
michaelpg
2016/09/06 22:24:40
yeah, that looks weird. If you couldn't find a pro
xdai1
2016/09/06 23:13:16
I don't find a proper way to dynamically determine
|
| + <div class="dropdown-content"> |
| + <template is="dom-repeat" items="[[items]]" |
| + filter="[[filterItems_(searchTerm_)]]"> |
| + <paper-item on-tap="onSelect_">[[item]]</paper-item> |
| + </template> |
| + </div> |
| + </iron-dropdown> |
| + </template> |
| +</dom-module> |
| + |
| <dom-module id="add-printer-dialog"> |
| <template> |
| <style include="settings-shared"> |