summaryrefslogtreecommitdiff
path: root/chromium/chrome/browser/resources/settings/device_page/device_page.html
blob: d9a55adb6d6e687563136fe61619bcf848e9f0c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
<link rel="import" href="chrome://resources/html/polymer.html">

<link rel="import" href="chrome://resources/html/i18n_behavior.html">
<link rel="import" href="chrome://resources/html/web_ui_listener_behavior.html">
<link rel="import" href="chrome://resources/polymer/v1_0/neon-animation/neon-animatable.html">
<link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper-icon-button-light.html">
<link rel="import" href="device_page_browser_proxy.html">
<link rel="import" href="display.html">
<link rel="import" href="keyboard.html">
<link rel="import" href="pointers.html">
<link rel="import" href="power.html">
<link rel="import" href="storage.html">
<link rel="import" href="stylus.html">
<link rel="import" href="../prefs/prefs.html">
<link rel="import" href="../route.html">
<link rel="import" href="../settings_page/settings_animated_pages.html">
<link rel="import" href="../settings_page/settings_subpage.html">
<link rel="import" href="../settings_shared_css.html">

<dom-module id="settings-device-page">
  <template>
    <style include="settings-shared"></style>
    <settings-animated-pages id="pages" section="device"
        focus-config="[[focusConfig_]]">
      <neon-animatable id="main" route-path="default">
        <div id="pointersRow" class="settings-box first"
            on-click="onPointersTap_" actionable>
          <div class="start">
            [[getPointersTitle_(hasMouse_, hasTouchpad_)]]
          </div>
          <paper-icon-button-light class="subpage-arrow">
            <button
                aria-label$="[[getPointersTitle_(hasMouse_, hasTouchpad_)]]">
            </button>
          </paper-icon-button-light>
        </div>
        <div id="keyboardRow" class="settings-box" on-click="onKeyboardTap_"
            actionable>
          <div class="start">$i18n{keyboardTitle}</div>
          <paper-icon-button-light class="subpage-arrow">
            <button aria-label="$i18n{keyboardTitle}"></button>
          </paper-icon-button-light>
        </div>
        <template is="dom-if" if="[[hasStylus_]]">
          <div id="stylusRow" class="settings-box" on-click="onStylusTap_"
              actionable>
            <div class="start">$i18n{stylusTitle}</div>
            <paper-icon-button-light class="subpage-arrow">
              <button aria-label="$i18n{stylusTitle}"></button>
            </paper-icon-button-light>
          </div>
        </template>
        <div id="displayRow" class="settings-box" on-click="onDisplayTap_"
            actionable>
          <div class="start">$i18n{displayTitle}</div>
          <paper-icon-button-light class="subpage-arrow">
            <button aria-label="$i18n{displayTitle}"></button>
          </paper-icon-button-light>
        </div>
        <div id="storageRow" hidden="[[hideStorageInfo_]]" class="settings-box"
            on-click="onStorageTap_" actionable>
          <div class="start">$i18n{storageTitle}</div>
          <paper-icon-button-light class="subpage-arrow">
            <button aria-label="$i18n{storageTitle}"></button>
          </paper-icon-button-light>
        </div>
        <template is="dom-if" if="[[enablePowerSettings_]]">
          <div id="powerRow" class="settings-box" on-click="onPowerTap_"
              actionable>
            <div class="start">$i18n{powerTitle}</div>
            <paper-icon-button-light class="subpage-arrow">
              <button aria-label="$i18n{powerTitle}"></button>
            </paper-icon-button-light>
          </div>
        </template>
      </neon-animatable>
      <template is="dom-if" route-path="/pointer-overlay">
        <settings-subpage
            associated-control="[[$$('#pointersRow')]]"
            page-title="[[getPointersTitle_(hasMouse_, hasTouchpad_)]]">
          <settings-pointers prefs="{{prefs}}"
              has-mouse="[[hasMouse_]]" has-touchpad="[[hasTouchpad_]]">
          </settings-pointers>
        </settings-subpage>
      </template>
      <template is="dom-if" route-path="/keyboard-overlay">
        <settings-subpage
            associated-control="[[$$('#keyboardRow')]]"
            page-title="$i18n{keyboardTitle}">
          <settings-keyboard prefs="{{prefs}}"></settings-keyboard>
        </settings-subpage>
      </template>
      <template is="dom-if" route-path="/stylus" no-search="[[!hasStylus_]]">
        <settings-subpage
            associated-control="[[$$('#stylusRow')]]"
            page-title="$i18n{stylusTitle}"
            no-search$="[[!hasStylus_]]">
          <settings-stylus prefs="{{prefs}}"></settings-stylus>
        </settings-subpage>
      </template>
      <template is="dom-if" route-path="/display">
        <settings-subpage
            associated-control="[[$$('#displayRow')]]"
            page-title="$i18n{displayTitle}">
          <settings-display prefs="{{prefs}}"></settings-display>
        </settings-subpage>
      </template>
      <template is="dom-if" route-path="/storage">
        <settings-subpage
            associated-control="[[$$('#storageRow')]]"
            page-title="$i18n{storageTitle}">
          <settings-storage prefs="{{prefs}}"
              show-crostini="[[showCrostini]]">
          </settings-storage>
        </settings-subpage>
      </template>
      <template is="dom-if" route-path="/power"
          no-search="[[!enablePowerSettings_]]">
        <settings-subpage
            associated-control="[[$$('#powerRow')]]"
            page-title="$i18n{powerTitle}"
            no-search$="[[!enablePowerSettings_]]">
          <settings-power enable-power-settings="[[enablePowerSettings_]]">
          </settings-power>
        </settings-subpage>
      </template>
    </settings-animated-pages>
  </template>
  <script src="device_page.js"></script>
</dom-module>