| OLD | NEW |
| 1 <link rel="import" href="chrome://resources/cr_elements/cr_dialog/cr_dialog.html
"> | 1 <link rel="import" href="chrome://resources/cr_elements/cr_dialog/cr_dialog.html
"> |
| 2 <link rel="import" href="chrome://resources/cr_elements/icons.html"> |
| 2 <link rel="import" href="chrome://resources/html/polymer.html"> | 3 <link rel="import" href="chrome://resources/html/polymer.html"> |
| 4 <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-button/paper-butt
on.html"> | 5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt
on.html"> |
| 6 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper
-icon-button.html"> |
| 7 <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-item/paper-item.h
tml"> | 8 <link rel="import" href="chrome://resources/polymer/v1_0/paper-item/paper-item.h
tml"> |
| 5 <link rel="import" href="/printing_page/cups_printers_browser_proxy.html"> | 9 <link rel="import" href="/printing_page/cups_printers_browser_proxy.html"> |
| 6 <link rel="import" href="/settings_shared_css.html"> | 10 <link rel="import" href="/settings_shared_css.html"> |
| 7 | 11 |
| 8 <dom-module id="add-printer-list"> | 12 <dom-module id="add-printer-list"> |
| 9 <template> | 13 <template> |
| 10 <style include="settings-shared"> | 14 <style include="settings-shared"> |
| 11 .list-frame { | 15 .list-frame { |
| 12 -webkit-padding-end: 0; | 16 -webkit-padding-end: 0; |
| 13 -webkit-padding-start: 0; | 17 -webkit-padding-start: 0; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 24 </array-selector> | 28 </array-selector> |
| 25 <template is="dom-repeat" items="[[printers]]"> | 29 <template is="dom-repeat" items="[[printers]]"> |
| 26 <paper-item class="list-item" on-tap="onSelect_"> | 30 <paper-item class="list-item" on-tap="onSelect_"> |
| 27 [[item.printerName]] [[item.printerModel]] | 31 [[item.printerName]] [[item.printerModel]] |
| 28 </paper-item> | 32 </paper-item> |
| 29 </template> | 33 </template> |
| 30 </div> | 34 </div> |
| 31 </template> | 35 </template> |
| 32 </dom-module> | 36 </dom-module> |
| 33 | 37 |
| 38 <dom-module id="drop-down-search-box"> |
| 39 <template> |
| 40 <style include="settings-shared"> |
| 41 iron-dropdown, |
| 42 paper-input-container { |
| 43 width: 270px; |
| 44 } |
| 45 |
| 46 paper-input-container { |
| 47 --paper-input-container-color: var(--google-grey-500); |
| 48 --paper-input-container-input: { |
| 49 font-size: inherit; |
| 50 }; |
| 51 } |
| 52 |
| 53 iron-dropdown .dropdown-content paper-item { |
| 54 min-height: 40px; |
| 55 } |
| 56 </style> |
| 57 <paper-input-container no-label-float> |
| 58 <input is="iron-input" type="search" on-tap="onTap_" |
| 59 on-search="onInputValueChanged_" on-blur="onBlur_" incremental> |
| 60 <paper-icon-button suffix id="searchIcon" icon="cr:search" hidden> |
| 61 </paper-icon-button> |
| 62 <paper-icon-button suffix id="dropdownIcon" icon="cr:arrow-drop-down"> |
| 63 </paper-icon-button> |
| 64 </paper-input-container> |
| 65 <iron-dropdown horizontal-align="left" vertical-align="top" |
| 66 vertical-offset="47"> |
| 67 <div class="dropdown-content"> |
| 68 <template is="dom-repeat" items="[[items]]" |
| 69 filter="[[filterItems_(searchTerm_)]]"> |
| 70 <paper-item on-tap="onSelect_">[[item]]</paper-item> |
| 71 </template> |
| 72 </div> |
| 73 </iron-dropdown> |
| 74 </template> |
| 75 </dom-module> |
| 76 |
| 34 <dom-module id="add-printer-dialog"> | 77 <dom-module id="add-printer-dialog"> |
| 35 <template> | 78 <template> |
| 36 <style include="settings-shared"> | 79 <style include="settings-shared"> |
| 37 #dialog .body { | 80 #dialog .body { |
| 38 -webkit-padding-end: 0; | 81 -webkit-padding-end: 0; |
| 39 -webkit-padding-start: 0; | 82 -webkit-padding-start: 0; |
| 40 height: 350px; | 83 height: 350px; |
| 41 } | 84 } |
| 42 | 85 |
| 43 #dialog .button-container { | 86 #dialog .button-container { |
| (...skipping 13 matching lines...) Expand all Loading... |
| 57 <div class="body"> | 100 <div class="body"> |
| 58 <content select=".dialog-body"></content> | 101 <content select=".dialog-body"></content> |
| 59 </div> | 102 </div> |
| 60 <div class="button-container"> | 103 <div class="button-container"> |
| 61 <content select=".dialog-buttons"></content> | 104 <content select=".dialog-buttons"></content> |
| 62 </div> | 105 </div> |
| 63 </dialog> | 106 </dialog> |
| 64 </template> | 107 </template> |
| 65 <script src="cups_add_printer_dialog_util.js"></script> | 108 <script src="cups_add_printer_dialog_util.js"></script> |
| 66 </dom-module> | 109 </dom-module> |
| OLD | NEW |