| 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"> | 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"> | 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"> | 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"> | 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"> | 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"> | 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"> | 8 <link rel="import" href="chrome://resources/html/web_ui_listener_behavior.html"> |
| 9 <link rel="import" href="/i18n_setup.html"> | 9 <link rel="import" href="/i18n_setup.html"> |
| 10 <link rel="import" href="/settings_shared_css.html"> | 10 <link rel="import" href="/settings_shared_css.html"> |
| 11 <link rel="import" href="/site_settings/site_settings_behavior.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"> | 12 <link rel="import" href="/site_settings/site_settings_prefs_browser_proxy.html"> |
| 13 | 13 |
| 14 <dom-module id="protocol-handlers"> | 14 <dom-module id="protocol-handlers"> |
| 15 <template> | 15 <template> |
| 16 <style include="settings-shared"> | 16 <style include="settings-shared"> |
| 17 :host { | 17 :host { |
| 18 display: block; | 18 display: block; |
| 19 } | 19 } |
| 20 | 20 |
| 21 .protocol { | 21 .site-settings-header { |
| 22 -webkit-margin-start: 20px; | 22 -webkit-margin-start: 20px; |
| 23 margin-bottom: 15px; | 23 margin-bottom: 15px; |
| 24 margin-top: 15px; | 24 margin-top: 15px; |
| 25 } | 25 } |
| 26 </style> | 26 </style> |
| 27 <div class="settings-box first two-line"> | 27 <div class="settings-box first two-line"> |
| 28 <div class="start secondary"> | 28 <div class="start secondary"> |
| 29 [[computeHandlersDescription_(categoryEnabled)]] | 29 [[computeHandlersDescription_(categoryEnabled)]] |
| 30 </div> | 30 </div> |
| 31 <paper-toggle-button id="toggle" checked="{{categoryEnabled}}" | 31 <paper-toggle-button id="toggle" checked="{{categoryEnabled}}" |
| 32 on-change="onToggleChange_"></paper-toggle-button> | 32 on-change="onToggleChange_"></paper-toggle-button> |
| 33 </div> | 33 </div> |
| 34 | 34 |
| 35 <template is="dom-repeat" items="[[protocols]]" as="protocol"> | 35 <template is="dom-repeat" items="[[protocols]]" as="protocol"> |
| 36 <div class="protocol">[[protocol.protocol]]</div> | 36 <div class="site-settings-header">[[protocol.protocol]]</div> |
| 37 | 37 |
| 38 <div class="list-frame menu-content vertical-list"> | 38 <div class="list-frame menu-content vertical-list"> |
| 39 <template is="dom-repeat" items="[[protocol.handlers]]"> | 39 <template is="dom-repeat" items="[[protocol.handlers]]"> |
| 40 | 40 |
| 41 <div class="list-item"> | 41 <div class="list-item"> |
| 42 <div class="favicon-image" style$="[[computeSiteIcon(item.host)]]"> |
| 43 </div> |
| 42 <div class="middle" > | 44 <div class="middle" > |
| 43 <div>[[item.host]]</div> | 45 <div>[[item.host]]</div> |
| 44 <div class="secondary" | 46 <div class="secondary" |
| 45 hidden$="[[!isDefault_(index, protocol.default_handler)]]"> | 47 hidden$="[[!isDefault_(index, protocol.default_handler)]]"> |
| 46 $i18n{handlerIsDefault} | 48 $i18n{handlerIsDefault} |
| 47 </div> | 49 </div> |
| 48 </div> | 50 </div> |
| 49 | 51 |
| 50 <paper-menu-button> | 52 <paper-menu-button> |
| 51 <paper-icon-button icon="cr:more-vert" | 53 <paper-icon-button icon="cr:more-vert" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 64 </paper-menu> | 66 </paper-menu> |
| 65 </paper-menu-button> | 67 </paper-menu-button> |
| 66 </div> | 68 </div> |
| 67 | 69 |
| 68 </template> | 70 </template> |
| 69 </div> | 71 </div> |
| 70 </template> | 72 </template> |
| 71 </template> | 73 </template> |
| 72 <script src="protocol_handlers.js"></script> | 74 <script src="protocol_handlers.js"></script> |
| 73 </dom-module> | 75 </dom-module> |
| OLD | NEW |