| OLD | NEW |
| 1 <link rel="import" href="chrome://resources/html/polymer.html"> | 1 <link rel="import" href="chrome://resources/html/polymer.html"> |
| 2 | 2 |
| 3 <link rel="import" href="chrome://resources/cr_elements/cr_action_menu/cr_action
_menu.html"> | 3 <link rel="import" href="chrome://resources/cr_elements/cr_action_menu/cr_action
_menu.html"> |
| 4 <link rel="import" href="chrome://resources/cr_elements/icons.html"> | 4 <link rel="import" href="chrome://resources/cr_elements/icons.html"> |
| 5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper
-icon-button.html"> | 5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper
-icon-button-light.html"> |
| 6 <link rel="import" href="cups_printers_browser_proxy.html"> | 6 <link rel="import" href="cups_printers_browser_proxy.html"> |
| 7 <link rel="import" href="../settings_shared_css.html"> | 7 <link rel="import" href="../settings_shared_css.html"> |
| 8 | 8 |
| 9 <dom-module id="settings-cups-printers-list"> | 9 <dom-module id="settings-cups-printers-list"> |
| 10 <template> | 10 <template> |
| 11 <style include="settings-shared"> | 11 <style include="settings-shared"> |
| 12 .printer-name { | 12 .printer-name { |
| 13 flex: 1; | 13 flex: 1; |
| 14 } | 14 } |
| 15 </style> | 15 </style> |
| 16 | 16 |
| 17 <dialog is="cr-action-menu"> | 17 <dialog is="cr-action-menu"> |
| 18 <button class="dropdown-item" role="option" on-tap="onDetailsTap_"> | 18 <button class="dropdown-item" role="option" on-tap="onDetailsTap_"> |
| 19 $i18n{cupsPrinterDetails} | 19 $i18n{cupsPrinterDetails} |
| 20 </button> | 20 </button> |
| 21 <button class="dropdown-item" role="option" on-tap="onRemoveTap_"> | 21 <button class="dropdown-item" role="option" on-tap="onRemoveTap_"> |
| 22 $i18n{removePrinter} | 22 $i18n{removePrinter} |
| 23 </button> | 23 </button> |
| 24 </dialog> | 24 </dialog> |
| 25 <div class="list-frame vertical-list"> | 25 <div class="list-frame vertical-list"> |
| 26 <template is="dom-repeat" items="[[printers]]" | 26 <template is="dom-repeat" items="[[printers]]" |
| 27 filter="[[filterPrinter_(searchTerm)]]"> | 27 filter="[[filterPrinter_(searchTerm)]]"> |
| 28 <div class="list-item"> | 28 <div class="list-item"> |
| 29 <div class="printer-name text-elide">[[item.printerName]]</div> | 29 <div class="printer-name text-elide">[[item.printerName]]</div> |
| 30 <!--TODO(xdai): Add icon for enterprise CUPS printer. --> | 30 <!--TODO(xdai): Add icon for enterprise CUPS printer. --> |
| 31 <paper-icon-button icon="cr:more-vert" on-tap="onOpenActionMenuTap_" | 31 <button is="paper-icon-button-light" class="icon-more-vert" |
| 32 title="$i18n{moreActions}"> | 32 on-tap="onOpenActionMenuTap_" title="$i18n{moreActions}"> |
| 33 </paper-icon-button> | 33 </button> |
| 34 </div> | 34 </div> |
| 35 </template | 35 </template> |
| 36 </div> | 36 </div> |
| 37 </template> | 37 </template> |
| 38 <script src="cups_printers_list.js"></script> | 38 <script src="cups_printers_list.js"></script> |
| 39 </dom-module> | 39 </dom-module> |
| OLD | NEW |