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

Side by Side Diff: chrome/browser/resources/options.html

Issue 5594006: DOMUI Prefs: Add a subpage for startup page management. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed empty handler methods Created 10 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 | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE HTML> 1 <!DOCTYPE HTML>
2 <html 2 <html
3 i18n-values="dir:textdirection; 3 i18n-values="dir:textdirection;
4 enable-cloud-print-proxy:enable-cloud-print-proxy" 4 enable-cloud-print-proxy:enable-cloud-print-proxy"
5 id="t"> 5 id="t">
6 <head> 6 <head>
7 <meta charset="utf-8"> 7 <meta charset="utf-8">
8 <title i18n-content="title"></title> 8 <title i18n-content="title"></title>
9 9
10 <link rel="icon" href="../../app/theme/settings_favicon.png"> 10 <link rel="icon" href="../../app/theme/settings_favicon.png">
(...skipping 11 matching lines...) Expand all
22 <link rel="stylesheet" href="options/clear_browser_data_overlay.css"> 22 <link rel="stylesheet" href="options/clear_browser_data_overlay.css">
23 <link rel="stylesheet" href="options/content_settings.css"> 23 <link rel="stylesheet" href="options/content_settings.css">
24 <link rel="stylesheet" href="options/content_settings_exceptions_area.css"> 24 <link rel="stylesheet" href="options/content_settings_exceptions_area.css">
25 <link rel="stylesheet" href="options/cookies_view.css"> 25 <link rel="stylesheet" href="options/cookies_view.css">
26 <link rel="stylesheet" href="options/edit_search_engine_overlay.css"> 26 <link rel="stylesheet" href="options/edit_search_engine_overlay.css">
27 <link rel="stylesheet" href="options/passwords_exceptions_list.css"> 27 <link rel="stylesheet" href="options/passwords_exceptions_list.css">
28 <link rel="stylesheet" href="options/personal_options.css"> 28 <link rel="stylesheet" href="options/personal_options.css">
29 <link rel="stylesheet" href="options/import_data_overlay.css"> 29 <link rel="stylesheet" href="options/import_data_overlay.css">
30 <link rel="stylesheet" href="options/search_engine_manager.css"> 30 <link rel="stylesheet" href="options/search_engine_manager.css">
31 <link rel="stylesheet" href="options/search_page.css"> 31 <link rel="stylesheet" href="options/search_page.css">
32 <link rel="stylesheet" href="options/startup_page_manager.css">
32 <link rel="stylesheet" href="options/subpages_tab_controls.css"> 33 <link rel="stylesheet" href="options/subpages_tab_controls.css">
33 <if expr="pp_ifdef('chromeos')"> 34 <if expr="pp_ifdef('chromeos')">
34 <link rel="stylesheet" href="options/about_page.css"> 35 <link rel="stylesheet" href="options/about_page.css">
35 <link rel="stylesheet" href="options/chromeos_accounts_options_page.css"> 36 <link rel="stylesheet" href="options/chromeos_accounts_options_page.css">
36 <link rel="stylesheet" href="options/chromeos_internet_options_page.css"> 37 <link rel="stylesheet" href="options/chromeos_internet_options_page.css">
37 <link rel="stylesheet" href="options/chromeos_language_options.css"> 38 <link rel="stylesheet" href="options/chromeos_language_options.css">
38 <link rel="stylesheet" href="options/chromeos_proxy.css"> 39 <link rel="stylesheet" href="options/chromeos_proxy.css">
39 </if> 40 </if>
40 41
41 <if expr="not pp_ifdef('win32') and not pp_ifdef('darwin')"> 42 <if expr="not pp_ifdef('win32') and not pp_ifdef('darwin')">
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 <script src="options/font_settings.js"></script> 119 <script src="options/font_settings.js"></script>
119 <script src="options/font_settings_ui.js"></script> 120 <script src="options/font_settings_ui.js"></script>
120 <script src="options/import_data_overlay.js"></script> 121 <script src="options/import_data_overlay.js"></script>
121 <script src="options/instant_confirm_overlay.js"></script> 122 <script src="options/instant_confirm_overlay.js"></script>
122 <script src="options/passwords_exceptions.js"></script> 123 <script src="options/passwords_exceptions.js"></script>
123 <script src="options/passwords_exceptions_list.js"></script> 124 <script src="options/passwords_exceptions_list.js"></script>
124 <script src="options/personal_options.js"></script> 125 <script src="options/personal_options.js"></script>
125 <script src="options/search_engine_manager.js"></script> 126 <script src="options/search_engine_manager.js"></script>
126 <script src="options/search_engine_manager_engine_list.js"></script> 127 <script src="options/search_engine_manager_engine_list.js"></script>
127 <script src="options/search_page.js"></script> 128 <script src="options/search_page.js"></script>
129 <script src="options/startup_page_manager.js"></script>
128 <script src="options/sync_options.js"></script> 130 <script src="options/sync_options.js"></script>
129 <script> 131 <script>
130 132
131 var AddStartupPageOverlay = options.AddStartupPageOverlay; 133 var AddStartupPageOverlay = options.AddStartupPageOverlay;
132 var AdvancedOptions = options.AdvancedOptions; 134 var AdvancedOptions = options.AdvancedOptions;
133 var AlertOverlay = options.AlertOverlay; 135 var AlertOverlay = options.AlertOverlay;
134 var AutoFillEditAddressOverlay = options.AutoFillEditAddressOverlay; 136 var AutoFillEditAddressOverlay = options.AutoFillEditAddressOverlay;
135 var AutoFillEditCreditCardOverlay = options.AutoFillEditCreditCardOverlay; 137 var AutoFillEditCreditCardOverlay = options.AutoFillEditCreditCardOverlay;
136 var AutoFillOptions = options.AutoFillOptions; 138 var AutoFillOptions = options.AutoFillOptions;
137 var BrowserOptions = options.BrowserOptions; 139 var BrowserOptions = options.BrowserOptions;
138 var ClearBrowserDataOverlay = options.ClearBrowserDataOverlay; 140 var ClearBrowserDataOverlay = options.ClearBrowserDataOverlay;
139 var ContentSettings = options.ContentSettings; 141 var ContentSettings = options.ContentSettings;
140 var CookiesView = options.CookiesView; 142 var CookiesView = options.CookiesView;
141 var EditSearchEngineOverlay = options.EditSearchEngineOverlay; 143 var EditSearchEngineOverlay = options.EditSearchEngineOverlay;
142 var FontSettings = options.FontSettings; 144 var FontSettings = options.FontSettings;
143 var ImportDataOverlay = options.ImportDataOverlay; 145 var ImportDataOverlay = options.ImportDataOverlay;
144 var InstantConfirmOverlay = options.InstantConfirmOverlay; 146 var InstantConfirmOverlay = options.InstantConfirmOverlay;
145 var OptionsPage = options.OptionsPage; 147 var OptionsPage = options.OptionsPage;
146 var PasswordsExceptions = options.PasswordsExceptions; 148 var PasswordsExceptions = options.PasswordsExceptions;
147 var PersonalOptions = options.PersonalOptions; 149 var PersonalOptions = options.PersonalOptions;
148 var Preferences = options.Preferences; 150 var Preferences = options.Preferences;
149 var SearchEngineManager = options.SearchEngineManager; 151 var SearchEngineManager = options.SearchEngineManager;
150 var SearchPage = options.SearchPage; 152 var SearchPage = options.SearchPage;
153 var StartupPageManager = options.StartupPageManager;
151 var ProxyOptions = options.ProxyOptions; 154 var ProxyOptions = options.ProxyOptions;
152 var SyncOptions = options.SyncOptions; 155 var SyncOptions = options.SyncOptions;
153 156
154 /** 157 /**
155 * Window onload handler, sets up the page. 158 * Window onload handler, sets up the page.
156 */ 159 */
157 function load() { 160 function load() {
158 var start = new Date(); 161 var start = new Date();
159 162
160 var menuOffPattern = /(^\?|&)menu=off($|&)/; 163 var menuOffPattern = /(^\?|&)menu=off($|&)/;
161 var menuDisabled = menuOffPattern.test(window.location.search); 164 var menuDisabled = menuOffPattern.test(window.location.search);
162 document.documentElement.setAttribute('hide-menu', menuDisabled); 165 document.documentElement.setAttribute('hide-menu', menuDisabled);
163 166
164 localStrings = new LocalStrings(); 167 localStrings = new LocalStrings();
165 168
166 OptionsPage.register(SearchPage.getInstance()); 169 OptionsPage.register(SearchPage.getInstance());
167 170
168 OptionsPage.register(BrowserOptions.getInstance()); 171 OptionsPage.register(BrowserOptions.getInstance());
169 OptionsPage.registerSubPage(SearchEngineManager.getInstance(), 172 OptionsPage.registerSubPage(SearchEngineManager.getInstance(),
170 BrowserOptions.getInstance()); 173 BrowserOptions.getInstance());
174 OptionsPage.registerSubPage(StartupPageManager.getInstance(),
175 BrowserOptions.getInstance());
171 OptionsPage.register(PersonalOptions.getInstance()); 176 OptionsPage.register(PersonalOptions.getInstance());
172 OptionsPage.registerSubPage(AutoFillOptions.getInstance(), 177 OptionsPage.registerSubPage(AutoFillOptions.getInstance(),
173 PersonalOptions.getInstance()); 178 PersonalOptions.getInstance());
174 OptionsPage.registerSubPage(PasswordsExceptions.getInstance(), 179 OptionsPage.registerSubPage(PasswordsExceptions.getInstance(),
175 PersonalOptions.getInstance()); 180 PersonalOptions.getInstance());
176 OptionsPage.registerSubPage(SyncOptions.getInstance(), 181 OptionsPage.registerSubPage(SyncOptions.getInstance(),
177 PersonalOptions.getInstance()); 182 PersonalOptions.getInstance());
178 if (cr.isChromeOS) { 183 if (cr.isChromeOS) {
179 OptionsPage.register(SystemOptions.getInstance()); 184 OptionsPage.register(SystemOptions.getInstance());
180 OptionsPage.registerSubPage(AboutPage.getInstance(), 185 OptionsPage.registerSubPage(AboutPage.getInstance(),
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
351 </if> 356 </if>
352 <if expr="not pp_ifdef('win32') and not pp_ifdef('darwin')"> 357 <if expr="not pp_ifdef('win32') and not pp_ifdef('darwin')">
353 <include src="options/certificate_manager.html"> 358 <include src="options/certificate_manager.html">
354 </if> 359 </if>
355 <include src="options/autofill_options.html"> 360 <include src="options/autofill_options.html">
356 <include src="options/content_settings.html"> 361 <include src="options/content_settings.html">
357 <include src="options/cookies_view.html"> 362 <include src="options/cookies_view.html">
358 <include src="options/font_settings.html"> 363 <include src="options/font_settings.html">
359 <include src="options/passwords_exceptions.html"> 364 <include src="options/passwords_exceptions.html">
360 <include src="options/search_engine_manager.html"> 365 <include src="options/search_engine_manager.html">
366 <include src="options/startup_page_manager.html">
361 <include src="options/sync_options.html"> 367 <include src="options/sync_options.html">
362 </div> 368 </div>
363 </div> 369 </div>
364 </div> 370 </div>
365 </div> 371 </div>
366 </div> 372 </div>
367 373
368 <script> 374 <script>
369 // Decorate the existing elements in the document. 375 // Decorate the existing elements in the document.
370 cr.ui.decorate('input[pref][type=checkbox]', options.PrefCheckbox); 376 cr.ui.decorate('input[pref][type=checkbox]', options.PrefCheckbox);
371 cr.ui.decorate('input[pref][type=number]', options.PrefNumber); 377 cr.ui.decorate('input[pref][type=number]', options.PrefNumber);
372 cr.ui.decorate('input[pref][type=radio]', options.PrefRadio); 378 cr.ui.decorate('input[pref][type=radio]', options.PrefRadio);
373 cr.ui.decorate('input[pref][type=range]', options.PrefRange); 379 cr.ui.decorate('input[pref][type=range]', options.PrefRange);
374 cr.ui.decorate('select[pref]', options.PrefSelect); 380 cr.ui.decorate('select[pref]', options.PrefSelect);
375 cr.ui.decorate('input[pref][type=text]', options.PrefTextField); 381 cr.ui.decorate('input[pref][type=text]', options.PrefTextField);
376 cr.ui.decorate('input[pref][type=url]', options.PrefTextField); 382 cr.ui.decorate('input[pref][type=url]', options.PrefTextField);
377 cr.ui.decorate('#contentSettingsPage input[type=radio]', 383 cr.ui.decorate('#contentSettingsPage input[type=radio]',
378 options.ContentSettingsRadio); 384 options.ContentSettingsRadio);
379 cr.ui.decorate('#fontSettingsMinimumSizeSelector', 385 cr.ui.decorate('#fontSettingsMinimumSizeSelector',
380 options.MinimumFontSizeSelect); 386 options.MinimumFontSizeSelect);
381 console.log('in bottom script'); 387 console.log('in bottom script');
382 </script> 388 </script>
383 </body> 389 </body>
384 </html> 390 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698