Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(29)

Side by Side Diff: chrome/browser/resources/settings/advanced_page/advanced_page.html

Issue 1477773003: Use dom-if to hide settings pages and show explicitly. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/resources/settings/advanced_page/advanced_page.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <link rel="import" href="chrome://resources/polymer/v1_0/polymer/polymer.html"> 1 <link rel="import" href="chrome://resources/polymer/v1_0/polymer/polymer.html">
2 <link rel="import" href="chrome://md-settings/downloads_page/downloads_page.html "> 2 <link rel="import" href="chrome://md-settings/downloads_page/downloads_page.html ">
3 <link rel="import" href="chrome://md-settings/languages_page/languages_page.html "> 3 <link rel="import" href="chrome://md-settings/languages_page/languages_page.html ">
4 <link rel="import" href="chrome://md-settings/passwords_and_forms_page/passwords _and_forms_page.html"> 4 <link rel="import" href="chrome://md-settings/passwords_and_forms_page/passwords _and_forms_page.html">
5 <link rel="import" href="chrome://md-settings/privacy_page/privacy_page.html"> 5 <link rel="import" href="chrome://md-settings/privacy_page/privacy_page.html">
6 <link rel="import" href="chrome://md-settings/reset_page/reset_page.html"> 6 <link rel="import" href="chrome://md-settings/reset_page/reset_page.html">
7 <link rel="import" href="chrome://md-settings/settings_page/settings_page_visibi lity.html">
7 <link rel="import" href="chrome://md-settings/settings_page/settings_section.htm l"> 8 <link rel="import" href="chrome://md-settings/settings_page/settings_section.htm l">
8 <link rel="import" href="chrome://md-settings/site_settings/constants.html"> 9 <link rel="import" href="chrome://md-settings/site_settings/constants.html">
9 <link rel="import" href="chrome://md-settings/site_settings/site_settings_catego ry.html"> 10 <link rel="import" href="chrome://md-settings/site_settings/site_settings_catego ry.html">
10 11
11 <if expr="chromeos"> 12 <if expr="chromeos">
12 <link rel="import" href="chrome://md-settings/a11y_page/a11y_page.html"> 13 <link rel="import" href="chrome://md-settings/a11y_page/a11y_page.html">
13 <link rel="import" href="chrome://md-settings/bluetooth_page/bluetooth_page.html "> 14 <link rel="import" href="chrome://md-settings/bluetooth_page/bluetooth_page.html ">
14 <link rel="import" href="chrome://md-settings/date_time_page/date_time_page.html "> 15 <link rel="import" href="chrome://md-settings/date_time_page/date_time_page.html ">
15 </if> 16 </if>
16 17
17 <dom-module id="settings-advanced-page"> 18 <dom-module id="settings-advanced-page">
18 <link rel="import" type="css" href="advanced_page.css"> 19 <link rel="import" type="css" href="advanced_page.css">
19 <template> 20 <template>
20 <if expr="chromeos"> 21 <if expr="chromeos">
21 <settings-section i18n-values="page-title:dateTimePageTitle" 22 <template is="dom-if" if="[[showPage(pageVisibility.dateTime)]]" restamp>
22 current-route="[[currentRoute]]" section="dateTime"> 23 <settings-section i18n-values="page-title:dateTimePageTitle"
23 <settings-date-time-page prefs="{{prefs}}"> 24 current-route="[[currentRoute]]" section="dateTime">
24 </settings-date-time-page> 25 <settings-date-time-page prefs="{{prefs}}">
25 </settings-section> 26 </settings-date-time-page>
27 </settings-section>
28 </template>
26 </if> 29 </if>
27 <settings-section i18n-values="page-title:siteSettingsLocation" 30 <template is="dom-if" if="[[showPage(pageVisibility.location)]]" restamp>
28 current-route="[[currentRoute]]" section="location"> 31 <settings-section i18n-values="page-title:siteSettingsLocation"
29 <site-settings-category id="locationCategory" prefs="{{prefs}}" 32 current-route="[[currentRoute]]" section="location">
30 current-route="{{currentRoute}}"> 33 <site-settings-category prefs="{{prefs}}"
31 </site-settings-category> 34 current-route="{{currentRoute}}"
32 </settings-section> 35 category="[[locationCategory]]">
33 36 </site-settings-category>
34 <settings-section i18n-values="page-title:privacyPageTitle" 37 </settings-section>
35 current-route="[[currentRoute]]" section="privacy"> 38 </template>
36 <settings-privacy-page prefs="{{prefs}}" 39 <template is="dom-if" if="[[showPage(pageVisibility.privacy)]]" restamp>
37 current-route="{{currentRoute}}"> 40 <settings-section i18n-values="page-title:privacyPageTitle"
38 </settings-privacy-page> 41 current-route="[[currentRoute]]" section="privacy">
39 </settings-section> 42 <settings-privacy-page prefs="{{prefs}}"
40 43 current-route="{{currentRoute}}">
44 </settings-privacy-page>
45 </settings-section>
46 </template>
41 <if expr="chromeos"> 47 <if expr="chromeos">
42 <settings-section i18n-values="page-title:bluetoothPageTitle" 48 <template is="dom-if" if="[[showPage(pageVisibility.bluetooth)]]" restamp>
43 current-route="[[currentRoute]]" section="bluetooth"> 49 <settings-section i18n-values="page-title:bluetoothPageTitle"
44 <settings-bluetooth-page current-route="{{currentRoute}}"> 50 current-route="[[currentRoute]]" section="bluetooth">
45 </settings-bluetooth-page> 51 <settings-bluetooth-page current-route="{{currentRoute}}">
46 </settings-section> 52 </settings-bluetooth-page>
53 </settings-section>
54 </template>
47 </if> 55 </if>
48 56
49 <settings-section 57 <template is="dom-if" if="[[showPage(pageVisibility.passwordsAndForms)]]"
50 i18n-values="page-title:passwordsAndAutofillPageTitle" 58 restamp>
51 current-route="[[currentRoute]]" section="passwordsAndForms"> 59 <settings-section
52 <settings-passwords-and-forms-page prefs="{{prefs}}" 60 i18n-values="page-title:passwordsAndAutofillPageTitle"
53 current-route="{{currentRoute}}"> 61 current-route="[[currentRoute]]" section="passwordsAndForms">
54 </settings-passwords-and-forms-page> 62 <settings-passwords-and-forms-page prefs="{{prefs}}"
55 </settings-section> 63 current-route="{{currentRoute}}">
56 64 </settings-passwords-and-forms-page>
57 <settings-section i18n-values="page-title:languagesPageTitle" 65 </settings-section>
58 current-route="[[currentRoute]]" section="languages"> 66 </template>
59 <settings-languages-page prefs="{{prefs}}" 67 <template is="dom-if" if="[[showPage(pageVisibility.languages)]]" restamp>
60 current-route="{{currentRoute}}"> 68 <settings-section i18n-values="page-title:languagesPageTitle"
61 </settings-languages-page> 69 current-route="[[currentRoute]]" section="languages">
62 </settings-section> 70 <settings-languages-page prefs="{{prefs}}"
63 71 current-route="{{currentRoute}}">
64 <settings-section i18n-values="page-title:downloadsPageTitle" 72 </settings-languages-page>
65 current-route="[[currentRoute]]" section="downloads"> 73 </settings-section>
66 <settings-downloads-page prefs="{{prefs}}"> 74 </template>
67 </settings-downloads-page> 75 <template is="dom-if" if="[[showPage(pageVisibility.downloads)]]" restamp>
68 </settings-section> 76 <settings-section i18n-values="page-title:downloadsPageTitle"
69 77 current-route="[[currentRoute]]" section="downloads">
70 <settings-section i18n-values="page-title:resetPageTitle" 78 <settings-downloads-page prefs="{{prefs}}">
71 current-route="[[currentRoute]]" section="reset"> 79 </settings-downloads-page>
72 <settings-reset-page></settings-reset-page> 80 </settings-section>
73 </settings-section> 81 </template>
74 82 <template is="dom-if" if="[[showPage(pageVisibility.reset)]]" restamp>
83 <settings-section i18n-values="page-title:resetPageTitle"
84 current-route="[[currentRoute]]" section="reset">
85 <settings-reset-page></settings-reset-page>
86 </settings-section>
87 </template>
75 <if expr="chromeos"> 88 <if expr="chromeos">
76 <!-- TODO(dbeam): find somewhere to stuff "Add more accessibility features" 89 <!-- TODO(dbeam): find somewhere to stuff "Add more accessibility features"
77 on desktop. --> 90 on desktop. -->
78 <settings-section i18n-values="page-title:a11yPageTitle" 91 <template is="dom-if" if="[[showPage(pageVisibility.a11y)]]" restamp>
79 current-route="[[currentRoute]]" section="a11y"> 92 <settings-section i18n-values="page-title:a11yPageTitle"
80 <settings-a11y-page prefs="{{prefs}}"></settings-a11y-page> 93 current-route="[[currentRoute]]" section="a11y">
81 </settings-section> 94 <settings-a11y-page prefs="{{prefs}}"></settings-a11y-page>
95 </settings-section>
96 </template>
82 </if> 97 </if>
83 </template> 98 </template>
84 <script src="chrome://md-settings/advanced_page/advanced_page.js"></script> 99 <script src="chrome://md-settings/advanced_page/advanced_page.js"></script>
85 </dom-module> 100 </dom-module>
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/resources/settings/advanced_page/advanced_page.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698