Chromium Code Reviews| Index: chrome/browser/resources/settings/site_settings/category_default_setting.html |
| diff --git a/chrome/browser/resources/settings/site_settings/category_default_setting.html b/chrome/browser/resources/settings/site_settings/category_default_setting.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..af670e0183150042f36fa5a49d651d81e2f1e0a7 |
| --- /dev/null |
| +++ b/chrome/browser/resources/settings/site_settings/category_default_setting.html |
| @@ -0,0 +1,32 @@ |
| +<link rel="import" href="chrome://resources/html/polymer.html"> |
| +<link rel="import" href="chrome://resources/polymer/v1_0/paper-toggle-button/paper-toggle-button.html"> |
| +<link rel="import" href="chrome://resources/html/web_ui_listener_behavior.html"> |
| +<link rel="import" href="/settings_shared_css.html"> |
| +<link rel="import" href="/site_settings/constants.html"> |
| +<link rel="import" href="/site_settings/site_settings_behavior.html"> |
| +<link rel="import" href="/site_settings/site_settings_prefs_browser_proxy.html"> |
| + |
| +<dom-module id="category-default-setting"> |
|
tommycli
2016/12/15 21:36:38
This and the corresponding js file are basically s
dschuyler
2016/12/16 20:39:45
That's the intention.
|
| + <template> |
| + <style include="settings-shared"></style> |
|
tommycli
2016/12/15 21:36:38
I see there used to be a rule for paper-toggle-but
dschuyler
2016/12/16 20:39:45
Correct (err, it wasn't needed in the code before
|
| + <div class="settings-box first two-line"> |
| + <div class="start secondary">[[sliderDescription_]]</div> |
| + <paper-toggle-button id="toggle" checked="{{categoryEnabled}}" |
| + on-change="onChangePermissionControl_"></paper-toggle-button> |
| + </div> |
| + |
| + <template is="dom-if" if="[[subOptionLabel]]"> |
| + <div class="settings-box"> |
| + <div class="start"> |
| + [[subOptionLabel]] |
| + <div class="secondary">[[subOptionSecondary]]</div> |
| + </div> |
| + <paper-toggle-button checked="{{subOptionEnabled_}}" |
| + disabled="[[!categoryEnabled]]" id="subOptionToggle" |
| + on-change="onChangePermissionControl_"> |
| + </paper-toggle-button> |
| + </div> |
| + </template> |
| + </template> |
| + <script src="category_default_setting.js"></script> |
| +</dom-module> |