| 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/paper-icon-button/paper
-icon-button.html"> | 2 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper
-icon-button.html"> |
| 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 | 4 |
| 5 <link rel="import" href="../i18n_setup.html"> | 5 <link rel="import" href="../i18n_setup.html"> |
| 6 <link rel="import" href="../settings_shared_css.html"> | 6 <link rel="import" href="../settings_shared_css.html"> |
| 7 <link rel="import" href="site_settings_behavior.html"> | 7 <link rel="import" href="site_settings_behavior.html"> |
| 8 <link rel="import" href="site_settings_prefs_browser_proxy.html"> | 8 <link rel="import" href="site_settings_prefs_browser_proxy.html"> |
| 9 | 9 |
| 10 <dom-module id="usb-devices"> | 10 <dom-module id="usb-devices"> |
| 11 <template> | 11 <template> |
| 12 <style include="settings-shared"> | 12 <style include="settings-shared"> |
| 13 :host { | 13 :host { |
| 14 display: block; | 14 display: block; |
| 15 } | 15 } |
| 16 | 16 |
| 17 .column-header { | 17 .column-header { |
| 18 -webkit-margin-start: 20px; | 18 -webkit-margin-start: 20px; |
| 19 margin-bottom: 15px; | 19 margin-bottom: 15px; |
| 20 margin-top: 15px; | 20 margin-top: 15px; |
| 21 } | 21 } |
| 22 </style> | 22 </style> |
| 23 | 23 |
| 24 <div class="settings-box" hidden$="[[hasDevices_(devices_)]]"> |
| 25 $i18n{noUsbDevicesFound} |
| 26 </div> |
| 24 <template is="dom-repeat" items="[[devices_]]"> | 27 <template is="dom-repeat" items="[[devices_]]"> |
| 25 <div class="column-header">[[item.objectName]]</div> | 28 <div class="column-header">[[item.objectName]]</div> |
| 26 | 29 |
| 27 <div class="list-frame menu-content vertical-list"> | 30 <div class="list-frame menu-content vertical-list"> |
| 28 <div class="list-item"> | 31 <div class="list-item"> |
| 29 <div class="favicon-image" | 32 <div class="favicon-image" |
| 30 style$="[[computeSiteIcon(item.origin)]]"></div> | 33 style$="[[computeSiteIcon(item.origin)]]"></div> |
| 31 <div class="middle">[[item.origin]]</div> | 34 <div class="middle">[[item.origin]]</div> |
| 32 | 35 |
| 33 <paper-icon-button icon="cr:more-vert" on-tap="showMenu_" | 36 <paper-icon-button icon="cr:more-vert" on-tap="showMenu_" |
| 34 class="dropdown-trigger" title="$i18n{moreActions}"> | 37 class="dropdown-trigger" title="$i18n{moreActions}"> |
| 35 </paper-icon-button> | 38 </paper-icon-button> |
| 36 </div> | 39 </div> |
| 37 </div> | 40 </div> |
| 38 </template> | 41 </template> |
| 39 | 42 |
| 40 <dialog is="cr-action-menu"> | 43 <dialog is="cr-action-menu"> |
| 41 <button class="dropdown-item" role="option" on-tap="onRemoveTap_" id="remo
veButton"> | 44 <button class="dropdown-item" role="option" on-tap="onRemoveTap_" id="remo
veButton"> |
| 42 $i18n{handlerRemove} | 45 $i18n{handlerRemove} |
| 43 </button> | 46 </button> |
| 44 </dialog> | 47 </dialog> |
| 45 | 48 |
| 46 </template> | 49 </template> |
| 47 <script src="usb_devices.js"></script> | 50 <script src="usb_devices.js"></script> |
| 48 </dom-module> | 51 </dom-module> |
| OLD | NEW |