OLD | NEW |
(Empty) | |
| 1 <link rel="import" href="chrome://resources/html/polymer.html"> |
| 2 <link rel="import" href="chrome://resources/polymer/v1_0/paper-toggle-button/pap
er-toggle-button.html"> |
| 3 <link rel="import" href="chrome://resources/html/web_ui_listener_behavior.html"> |
| 4 <link rel="import" href="/settings_shared_css.html"> |
| 5 <link rel="import" href="/site_settings/constants.html"> |
| 6 <link rel="import" href="/site_settings/site_settings_behavior.html"> |
| 7 <link rel="import" href="/site_settings/site_settings_prefs_browser_proxy.html"> |
| 8 |
| 9 <dom-module id="category-default-setting"> |
| 10 <template> |
| 11 <style include="settings-shared"></style> |
| 12 <div class="settings-box first two-line"> |
| 13 <div class="start secondary">[[sliderDescription_]]</div> |
| 14 <paper-toggle-button id="toggle" checked="{{categoryEnabled}}" |
| 15 on-change="onChangePermissionControl_"></paper-toggle-button> |
| 16 </div> |
| 17 |
| 18 <template is="dom-if" if="[[subOptionLabel]]"> |
| 19 <div class="settings-box"> |
| 20 <div class="start"> |
| 21 [[subOptionLabel]] |
| 22 <div class="secondary">[[subOptionSecondary]]</div> |
| 23 </div> |
| 24 <paper-toggle-button checked="{{subOptionEnabled_}}" |
| 25 disabled="[[!categoryEnabled]]" id="subOptionToggle" |
| 26 on-change="onChangePermissionControl_"> |
| 27 </paper-toggle-button> |
| 28 </div> |
| 29 </template> |
| 30 </template> |
| 31 <script src="category_default_setting.js"></script> |
| 32 </dom-module> |
OLD | NEW |