summaryrefslogtreecommitdiffstats
path: root/chrome/browser/resources/settings/advanced_page/advanced_page.html
blob: 91b063fa31bee15a23b6e08d421b2e3e8ce88643 (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
<link rel="import" href="chrome://resources/html/i18n_behavior.html">
<link rel="import" href="chrome://resources/html/polymer.html">
<link rel="import" href="chrome://md-settings/a11y_page/a11y_page.html">
<link rel="import" href="chrome://md-settings/downloads_page/downloads_page.html">
<link rel="import" href="chrome://md-settings/languages_page/languages_page.html">
<link rel="import" href="chrome://md-settings/passwords_and_forms_page/passwords_and_forms_page.html">
<link rel="import" href="chrome://md-settings/privacy_page/privacy_page.html">
<link rel="import" href="chrome://md-settings/reset_page/reset_page.html">
<link rel="import" href="chrome://md-settings/settings_page/main_page_behavior.html">
<link rel="import" href="chrome://md-settings/settings_page/settings_page_visibility.html">
<link rel="import" href="chrome://md-settings/settings_page/settings_section.html">
<link rel="import" href="chrome://md-settings/site_settings/constants.html">
<link rel="import" href="chrome://md-settings/site_settings/site_settings_category.html">

<if expr="chromeos">
<link rel="import" href="chrome://md-settings/bluetooth_page/bluetooth_page.html">
<link rel="import" href="chrome://md-settings/date_time_page/date_time_page.html">
</if>

<if expr="not chromeos">
<link rel="import" href="chrome://md-settings/system_page/system_page.html">
</if>

<dom-module id="settings-advanced-page">
  <link rel="import" type="css" href="chrome://md-settings/settings_page.css">
  <template>
    <style include="main-page-styles"></style>
<if expr="chromeos">
    <template is="dom-if" if="[[showPage(pageVisibility.dateTime)]]" restamp>
      <settings-section page-title="[[i18n('dateTimePageTitle')]]"
          current-route="[[currentRoute]]" section="dateTime">
        <settings-date-time-page prefs="{{prefs}}">
        </settings-date-time-page>
      </settings-section>
    </template>
</if>
    <template is="dom-if" if="[[showPage(pageVisibility.privacy)]]" restamp>
      <settings-section page-title="[[i18n('privacyPageTitle')]]"
          current-route="[[currentRoute]]" section="privacy">
        <settings-privacy-page prefs="{{prefs}}"
          current-route="{{currentRoute}}">
        </settings-privacy-page>
      </settings-section>
    </template>
<if expr="chromeos">
    <template is="dom-if" if="[[showPage(pageVisibility.bluetooth)]]" restamp>
      <settings-section page-title="[[i18n('bluetoothPageTitle')]]"
          current-route="[[currentRoute]]" section="bluetooth">
        <settings-bluetooth-page current-route="{{currentRoute}}">
        </settings-bluetooth-page>
      </settings-section>
    </template>
</if>
    <template is="dom-if" if="[[showPage(pageVisibility.passwordsAndForms)]]"
        restamp>
      <settings-section
          page-title="[[i18n('passwordsAndAutofillPageTitle')]]"
          current-route="[[currentRoute]]" section="passwordsAndForms">
        <settings-passwords-and-forms-page prefs="{{prefs}}"
            current-route="{{currentRoute}}">
        </settings-passwords-and-forms-page>
      </settings-section>
    </template>
    <template is="dom-if" if="[[showPage(pageVisibility.languages)]]" restamp>
      <settings-section page-title="[[i18n('languagesPageTitle')]]"
          current-route="[[currentRoute]]" section="languages">
        <settings-languages-page prefs="{{prefs}}"
            current-route="{{currentRoute}}">
        </settings-languages-page>
      </settings-section>
    </template>
    <template is="dom-if" if="[[showPage(pageVisibility.downloads)]]" restamp>
      <settings-section page-title="[[i18n('downloadsPageTitle')]]"
          current-route="[[currentRoute]]" section="downloads">
        <settings-downloads-page prefs="{{prefs}}">
        </settings-downloads-page>
      </settings-section>
    </template>

    <!-- TODO(dschuyler): Add Google Cloud Print section here. -->

    <template is="dom-if" if="[[showPage(pageVisibility.a11y)]]" restamp>
      <settings-section page-title="[[i18n('a11yPageTitle')]]"
          current-route="[[currentRoute]]" section="a11y">
        <settings-a11y-page prefs="{{prefs}}"></settings-a11y-page>
      </settings-section>
    </template>
<if expr="not chromeos">
    <template is="dom-if" if="[[showPage(pageVisibility.system)]]" restamp>
      <settings-section page-title="[[i18n('systemPageTitle')]]"
          current-route="[[currentRoute]]" section="system">
        <settings-system-page prefs="{{prefs}}"></settings-system-page>
      </settings-section>
    </template>
</if>
    <template is="dom-if" if="[[showPage(pageVisibility.reset)]]" restamp>
      <settings-section page-title="[[i18n('resetPageTitle')]]"
          current-route="[[currentRoute]]" section="reset">
        <settings-reset-page></settings-reset-page>
      </settings-section>
    </template>
  </template>
  <script src="chrome://md-settings/advanced_page/advanced_page.js"></script>
</dom-module>