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

Side by Side Diff: chrome/browser/resources/options2/browser_options.html

Issue 9464053: Hide/Disable several (meaningless) options in Settings uber-page for Guest. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Declarative way Created 8 years, 9 months 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
OLDNEW
1 <div id="settings" class="page" hidden> 1 <div id="settings" class="page" hidden>
2 <header> 2 <header>
3 <h1 i18n-content="settingsTitle"></h1> 3 <h1 i18n-content="settingsTitle"></h1>
4 <span id="browser-options-search-field-container" 4 <span id="browser-options-search-field-container"
5 class="search-field-container"> 5 class="search-field-container">
6 <input id="search-field" type="search" 6 <input id="search-field" type="search"
7 i18n-values="placeholder:searchPlaceholder; 7 i18n-values="placeholder:searchPlaceholder;
8 aria-label:searchPlaceholder" incremental> 8 aria-label:searchPlaceholder" incremental>
9 </span> 9 </span>
10 </header> 10 </header>
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 <button id="themes-reset" 97 <button id="themes-reset"
98 i18n-content="themesSetClassic"></button> 98 i18n-content="themesSetClassic"></button>
99 </div> 99 </div>
100 </if> 100 </if>
101 <if expr="pp_ifdef('toolkit_views') or is_win or is_macosx"> 101 <if expr="pp_ifdef('toolkit_views') or is_win or is_macosx">
102 <div> 102 <div>
103 <button id="themes-gallery" i18n-content="themesGallery"></button> 103 <button id="themes-gallery" i18n-content="themesGallery"></button>
104 <button id="themes-reset" i18n-content="themesReset"></button> 104 <button id="themes-reset" i18n-content="themesReset"></button>
105 </div> 105 </div>
106 </if> 106 </if>
107 <div class="settings-row"> 107 <div class="settings-row" guest-visibility="disabled">
108 <span i18n-content="homePage"></span> 108 <span i18n-content="homePage"></span>
109 <select id="home-page-select"> 109 <select id="home-page-select">
110 <option value="none" i18n-content="homePageNone"></option> 110 <option value="none" i18n-content="homePageNone"></option>
111 <option value="ntp" i18n-content="homePageNtp"></option> 111 <option value="ntp" i18n-content="homePageNtp"></option>
112 <option dir="ltr" value="url"></option> 112 <option dir="ltr" value="url"></option>
113 <option value="choose" i18n-content="homePageChoose"></option> 113 <option value="choose" i18n-content="homePageChoose"></option>
114 </select> 114 </select>
115 </div> 115 </div>
116 <div class="checkbox"><label> 116 <div class="checkbox" guest-visibility="disabled"><label>
117 <input type="checkbox" pref="bookmark_bar.show_on_all_tabs" 117 <input type="checkbox" pref="bookmark_bar.show_on_all_tabs"
118 metric="Options_ShowBookmarksBar"> 118 metric="Options_ShowBookmarksBar">
119 <span i18n-content="toolbarShowBookmarksBar"></span> 119 <span i18n-content="toolbarShowBookmarksBar"></span>
120 </label></div> 120 </label></div>
121 <if expr="not pp_ifdef('toolkit_views') and is_posix and not is_macosx"> 121 <if expr="not pp_ifdef('toolkit_views') and is_posix and not is_macosx">
122 <div class="checkbox"><label> 122 <div class="checkbox"><label>
123 <input id="show-window-decorations" type="checkbox" 123 <input id="show-window-decorations" type="checkbox"
124 pref="browser.custom_chrome_frame" metric="Options_CustomFrame" 124 pref="browser.custom_chrome_frame" metric="Options_CustomFrame"
125 inverted_pref> 125 inverted_pref>
126 <span i18n-content="showWindowDecorations"></span> 126 <span i18n-content="showWindowDecorations"></span>
(...skipping 26 matching lines...) Expand all
153 <div> 153 <div>
154 <span class="settings-row" 154 <span class="settings-row"
155 i18n-values=".innerHTML:defaultSearchGroupLabel"> 155 i18n-values=".innerHTML:defaultSearchGroupLabel">
156 </span> 156 </span>
157 <div class="settings-row"> 157 <div class="settings-row">
158 <select id="default-search-engine" class="weakrtl"></select> 158 <select id="default-search-engine" class="weakrtl"></select>
159 <button id="manage-default-search-engines" 159 <button id="manage-default-search-engines"
160 i18n-content="defaultSearchManageEngines"> 160 i18n-content="defaultSearchManageEngines">
161 </button> 161 </button>
162 </div> 162 </div>
163 <div class="checkbox"> 163 <div class="checkbox" guest-visibility="disabled">
164 <label id="instant-label"> 164 <label id="instant-label">
165 <!-- TODO(estade): metric? --> 165 <!-- TODO(estade): metric? -->
166 <input id="instant-field-trial-control" type="checkbox" 166 <input id="instant-field-trial-control" type="checkbox"
167 checked="checked" hidden> 167 checked="checked" hidden>
168 <input id="instant-enabled-control" type="checkbox" 168 <input id="instant-enabled-control" type="checkbox"
169 pref="instant.enabled"> 169 pref="instant.enabled">
170 <!-- TODO(estade) There's a link in here which should not be inside 170 <!-- TODO(estade) There's a link in here which should not be inside
171 a <label>. --> 171 a <label>. -->
172 <span i18n-values=".innerHTML:instantPrefAndWarning"></span> 172 <span i18n-values=".innerHTML:instantPrefAndWarning"></span>
173 </label> 173 </label>
174 </div> 174 </div>
175 </div> 175 </div>
176 </section> 176 </section>
177 <section> 177 <section guest-visibility="hidden">
178 <h3 i18n-content="sectionTitleUsers"></h3> 178 <h3 i18n-content="sectionTitleUsers"></h3>
179 <if expr="pp_ifdef('chromeos')"> 179 <if expr="pp_ifdef('chromeos')">
180 <div id="sync-section"> 180 <div id="sync-section">
181 <div id="sync-overview" class="settings-row" hidden> 181 <div id="sync-overview" class="settings-row" hidden>
182 <p i18n-content="syncOverview"></p> 182 <p i18n-content="syncOverview"></p>
183 <a i18n-values="href:syncLearnMoreURL" i18n-content="learnMore"></a> 183 <a i18n-values="href:syncLearnMoreURL" i18n-content="learnMore"></a>
184 </div> 184 </div>
185 <div id="account-picture-wrapper"> 185 <div id="account-picture-wrapper">
186 <img id="account-picture" 186 <img id="account-picture"
187 src="chrome://theme/IDR_PROFILE_PICTURE_LOADING"> 187 src="chrome://theme/IDR_PROFILE_PICTURE_LOADING">
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 </div> 249 </div>
250 </div> 250 </div>
251 </section> 251 </section>
252 </if> 252 </if>
253 <div id="advanced-settings" hidden> 253 <div id="advanced-settings" hidden>
254 <div id="advanced-settings-container"> 254 <div id="advanced-settings-container">
255 <if expr="pp_ifdef('chromeos')"> 255 <if expr="pp_ifdef('chromeos')">
256 <section> 256 <section>
257 <h3 i18n-content="datetimeTitle"></h3> 257 <h3 i18n-content="datetimeTitle"></h3>
258 <div class="option-control-table"> 258 <div class="option-control-table">
259 <span class="option-name" i18n-content="timezone"></span> 259 <div guest-visibility="disabled">
260 <div id="timezone-value"> 260 <span class="option-name" i18n-content="timezone"></span>
261 <select id="timezone-select" class="control" i18n-options="timezoneList" 261 <div id="timezone-value">
262 data-type="string" pref="cros.system.timezone"></select> 262 <select id="timezone-select" class="control"
263 i18n-options="timezoneList" data-type="string"
264 pref="cros.system.timezone">
265 </select>
266 </div>
263 </div> 267 </div>
264 <div class="checkbox"> 268 <div class="checkbox">
265 <label> 269 <label>
266 <input id="use-24hour-clock" pref="settings.clock.use_24hour_clock" 270 <input id="use-24hour-clock" pref="settings.clock.use_24hour_clock"
267 type="checkbox"> 271 type="checkbox">
268 <span i18n-content="use24HourClock"></span> 272 <span i18n-content="use24HourClock"></span>
269 </label> 273 </label>
270 </div> 274 </div>
271 </div> 275 </div>
272 </section> 276 </section>
(...skipping 18 matching lines...) Expand all
291 i18n-values="href:privacyLearnMoreURL"></a> 295 i18n-values="href:privacyLearnMoreURL"></a>
292 </div> 296 </div>
293 <div class="checkbox"> 297 <div class="checkbox">
294 <label> 298 <label>
295 <input id="alternateErrorPagesEnabled" 299 <input id="alternateErrorPagesEnabled"
296 pref="alternate_error_pages.enabled" 300 pref="alternate_error_pages.enabled"
297 metric="Options_LinkDoctorCheckbox" type="checkbox"> 301 metric="Options_LinkDoctorCheckbox" type="checkbox">
298 <span i18n-content="linkDoctorPref"></span> 302 <span i18n-content="linkDoctorPref"></span>
299 </label> 303 </label>
300 </div> 304 </div>
301 <div class="checkbox"> 305 <div class="checkbox" guest-visibility="disabled">
302 <label> 306 <label>
303 <input id="searchSuggestEnabled" pref="search.suggest_enabled" 307 <input id="searchSuggestEnabled" pref="search.suggest_enabled"
304 metric="Options_UseSuggestCheckbox" type="checkbox"> 308 metric="Options_UseSuggestCheckbox" type="checkbox">
305 <span i18n-content="suggestPref"></span> 309 <span i18n-content="suggestPref"></span>
306 </label> 310 </label>
307 </div> 311 </div>
308 <div class="checkbox"> 312 <div class="checkbox" guest-visibility="disabled">
309 <label> 313 <label>
310 <input id="dnsPrefetchingEnabled" pref="dns_prefetching.enabled" 314 <input id="dnsPrefetchingEnabled" pref="dns_prefetching.enabled"
311 metric="Options_DnsPrefetchCheckbox" type="checkbox"> 315 metric="Options_DnsPrefetchCheckbox" type="checkbox">
312 <span i18n-content="networkPredictionEnabledDescription"></span> 316 <span i18n-content="networkPredictionEnabledDescription"></span>
313 </label> 317 </label>
314 </div> 318 </div>
315 <div class="checkbox"> 319 <div class="checkbox">
316 <label> 320 <label>
317 <input id="safeBrowsingEnabled" pref="safebrowsing.enabled" 321 <input id="safeBrowsingEnabled" pref="safebrowsing.enabled"
318 metric="Options_SafeBrowsingCheckbox" type="checkbox"> 322 metric="Options_SafeBrowsingCheckbox" type="checkbox">
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
539 </div> 543 </div>
540 <div class="settings-row"> 544 <div class="settings-row">
541 <button id="cloudPrintManageButton" 545 <button id="cloudPrintManageButton"
542 i18n-content="cloudPrintChromeosOptionButton"></button> 546 i18n-content="cloudPrintChromeosOptionButton"></button>
543 </div> 547 </div>
544 </div> 548 </div>
545 </section> 549 </section>
546 <if expr="pp_ifdef('chromeos')"> 550 <if expr="pp_ifdef('chromeos')">
547 <!-- This section is duplicated here for ChromeOS. This must stay in sync 551 <!-- This section is duplicated here for ChromeOS. This must stay in sync
548 with the section above. --> 552 with the section above. -->
549 <section id="startup-section"> 553 <section id="startup-section" guest-visibility="hidden">
550 <h3 i18n-content="sectionTitleStartup"></h3> 554 <h3 i18n-content="sectionTitleStartup"></h3>
551 <div> 555 <div>
552 <div class="radio"> 556 <div class="radio">
553 <label> 557 <label>
554 <input type="radio" name="startup" value="5" 558 <input type="radio" name="startup" value="5"
555 pref="session.restore_on_startup" 559 pref="session.restore_on_startup"
556 metric="Options_Startup_NewTab"> 560 metric="Options_Startup_NewTab">
557 <span i18n-content="startupShowNewTab"></span> 561 <span i18n-content="startupShowNewTab"></span>
558 </label> 562 </label>
559 </div> 563 </div>
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
611 </section> 615 </section>
612 </if> 616 </if>
613 </div> <!-- advanced-settings-container --> 617 </div> <!-- advanced-settings-container -->
614 </div> <!-- advanced-settings --> 618 </div> <!-- advanced-settings -->
615 <footer> 619 <footer>
616 <button id="advanced-settings-expander" class="link-button" 620 <button id="advanced-settings-expander" class="link-button"
617 i18n-content="showAdvancedSettings"> 621 i18n-content="showAdvancedSettings">
618 </button> 622 </button>
619 </footer> 623 </footer>
620 </div> 624 </div>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698