summaryrefslogtreecommitdiffstats
path: root/chromium/chrome/browser/resources/settings/multidevice_page/multidevice_feature_toggle.html
blob: 79ac7d51fc05644ffc51b08283aa812944d7e4f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<link rel="import" href="chrome://resources/html/polymer.html">

<link rel="import" href="chrome://resources/cr_elements/cr_toggle/cr_toggle.html">
<link rel="import" href="multidevice_browser_proxy.html">
<link rel="import" href="multidevice_constants.html">
<link rel="import" href="multidevice_feature_behavior.html">

<dom-module id="settings-multidevice-feature-toggle">
  <template>
    <cr-toggle id="toggle"
        aria-label$="[[getFeatureName(feature)]]"
        checked="{{checked_}}"
        disabled="[[!isFeatureStateEditable(feature, pageContentData)]]"
        on-change="onChange_">
    </cr-toggle>
  </template>
  <script src="multidevice_feature_toggle.js"></script>
</dom-module>