| OLD | NEW |
| (Empty) | |
| 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"> |
| 4 <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"> |
| 6 <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"> |
| 10 <link rel="import" href="/settings_shared_css.html"> |
| 11 <link rel="import" href="/site_settings/site_settings_behavior.html"> |
| 12 <link rel="import" href="/site_settings/site_settings_prefs_browser_proxy.html"> |
| 13 |
| 14 <dom-module id="protocol-handlers"> |
| 15 <template> |
| 16 <style include="settings-shared"> |
| 17 :host { |
| 18 display: block; |
| 19 } |
| 20 |
| 21 .protocol { |
| 22 -webkit-margin-start: 20px; |
| 23 margin-bottom: 15px; |
| 24 margin-top: 15px; |
| 25 } |
| 26 </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 |
| 35 <template is="dom-repeat" items="[[protocols]]" as="protocol"> |
| 36 <div class="protocol">[[protocol.protocol]]</div> |
| 37 |
| 38 <div class="list-frame menu-content vertical-list"> |
| 39 <template is="dom-repeat" items="[[protocol.handlers]]"> |
| 40 |
| 41 <div class="list-item underscore"> |
| 42 <div class="middle" > |
| 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> |
| 51 <paper-icon-button icon="cr:more-vert" |
| 52 class="dropdown-trigger"> |
| 53 </paper-icon-button> |
| 54 <paper-menu id="actionMenu" class="dropdown-content" |
| 55 on-iron-activate="onActionMenuIronActivate_" |
| 56 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]]"> |
| 62 $i18n{handlerRemove} |
| 63 </paper-item> |
| 64 </paper-menu> |
| 65 </paper-menu-button> |
| 66 </div> |
| 67 |
| 68 </template> |
| 69 </div> |
| 70 </template> |
| 71 </template> |
| 72 <script src="protocol_handlers.js"></script> |
| 73 </dom-module> |
| OLD | NEW |