Chromium Code Reviews| 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/cr_elements/icons.html"> | |
| 3 <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"> |
| 4 <link rel="import" href="chrome://resources/polymer/v1_0/paper-item/paper-item.h tml"> | 3 <link rel="import" href="chrome://resources/polymer/v1_0/paper-item/paper-item.h tml"> |
| 5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-menu/paper-menu.h tml"> | 4 <link rel="import" href="chrome://resources/polymer/v1_0/paper-menu/paper-menu.h tml"> |
| 6 <link rel="import" href="chrome://resources/polymer/v1_0/paper-menu-button/paper -menu-button.html"> | 5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-menu-button/paper -menu-button.html"> |
| 7 <link rel="import" href="chrome://resources/polymer/v1_0/paper-toggle-button/pap er-toggle-button.html"> | |
| 8 <link rel="import" href="chrome://resources/html/web_ui_listener_behavior.html"> | |
| 9 <link rel="import" href="/i18n_setup.html"> | 6 <link rel="import" href="/i18n_setup.html"> |
| 10 <link rel="import" href="/settings_shared_css.html"> | 7 <link rel="import" href="/settings_shared_css.html"> |
| 11 <link rel="import" href="/site_settings/site_settings_behavior.html"> | 8 <link rel="import" href="/site_settings/site_settings_behavior.html"> |
| 12 <link rel="import" href="/site_settings/site_settings_prefs_browser_proxy.html"> | 9 <link rel="import" href="/site_settings/site_settings_prefs_browser_proxy.html"> |
| 13 | 10 |
| 14 <dom-module id="protocol-handlers"> | 11 <dom-module id="usb-devices"> |
| 15 <template> | 12 <template> |
| 16 <style include="settings-shared"> | 13 <style include="settings-shared"> |
| 17 :host { | 14 :host { |
| 18 display: block; | 15 display: block; |
| 19 } | 16 } |
| 20 | 17 |
| 21 .protocol { | 18 .site-settings-header { |
| 22 -webkit-margin-start: 20px; | 19 -webkit-margin-start: 20px; |
| 23 margin-bottom: 15px; | 20 margin-bottom: 15px; |
| 24 margin-top: 15px; | 21 margin-top: 15px; |
| 25 } | 22 } |
| 26 </style> | 23 </style> |
| 27 <div class="settings-box first two-line"> | |
| 28 <div class="start secondary"> | |
| 29 [[computeHandlersDescription_(categoryEnabled)]] | |
| 30 </div> | |
| 31 <paper-toggle-button id="toggle" checked="{{categoryEnabled}}" | |
| 32 on-change="onToggleChange_"></paper-toggle-button> | |
| 33 </div> | |
| 34 | 24 |
| 35 <template is="dom-repeat" items="[[protocols]]" as="protocol"> | 25 <template is="dom-repeat" items="[[devices]]"> |
| 36 <div class="protocol">[[protocol.protocol]]</div> | 26 <div class="site-settings-header">[[item.objectName]]</div> |
| 37 | 27 |
| 38 <div class="list-frame menu-content vertical-list"> | 28 <div class="list-frame menu-content vertical-list"> |
| 39 <template is="dom-repeat" items="[[protocol.handlers]]"> | 29 <div class="list-item"> |
| 40 | 30 <div class="favicon-image" |
| 41 <div class="list-item"> | 31 style$="[[computeSiteIcon(item.origin)]]"></div> |
| 42 <div class="middle" > | 32 <div class="middle">[[item.origin]]</div> |
| 43 <div>[[item.host]]</div> | |
| 44 <div class="secondary" | |
| 45 hidden$="[[!isDefault_(index, protocol.default_handler)]]"> | |
| 46 $i18n{handlerIsDefault} | |
| 47 </div> | |
| 48 </div> | |
| 49 | |
| 50 <paper-menu-button> | 33 <paper-menu-button> |
|
Finnur
2016/08/12 13:11:26
I forgot to ask... do you know why the dropdown me
dschuyler
2016/08/12 20:58:48
Not right off. I just tried it and that doesn't ha
| |
| 51 <paper-icon-button icon="cr:more-vert" | 34 <paper-icon-button icon="cr:more-vert" |
| 52 class="dropdown-trigger"> | 35 class="dropdown-trigger"> |
| 53 </paper-icon-button> | 36 </paper-icon-button> |
| 54 <paper-menu id="actionMenu" class="dropdown-content" | 37 <paper-menu id="actionMenu" class="dropdown-content" |
| 55 on-iron-activate="onActionMenuIronActivate_" | 38 on-iron-activate="onActionMenuIronActivate_" |
| 56 attr-for-selected="menu-value"> | 39 attr-for-selected="menu-value"> |
| 57 <paper-item menu-value$="[[menuActions_.SET_DEFAULT]]" | |
| 58 hidden$="[[isDefault_(index, protocol.default_handler)]]"> | |
| 59 $i18n{handlerSetDefault} | |
| 60 </paper-item> | |
| 61 <paper-item menu-value$="[[menuActions_.REMOVE]]"> | 40 <paper-item menu-value$="[[menuActions_.REMOVE]]"> |
| 62 $i18n{handlerRemove} | 41 $i18n{handlerRemove} |
| 63 </paper-item> | 42 </paper-item> |
| 64 </paper-menu> | 43 </paper-menu> |
| 65 </paper-menu-button> | 44 </paper-menu-button> |
| 66 </div> | 45 </div> |
| 67 | |
| 68 </template> | |
| 69 </div> | 46 </div> |
| 70 </template> | 47 </template> |
| 48 | |
| 71 </template> | 49 </template> |
| 72 <script src="protocol_handlers.js"></script> | 50 <script src="usb_devices.js"></script> |
| 73 </dom-module> | 51 </dom-module> |
| OLD | NEW |