OLD | NEW |
1 <!DOCTYPE HTML> | 1 <!DOCTYPE HTML> |
2 <html i18n-values="dir:textdirection;" id="t"> | 2 <html i18n-values="dir:textdirection;" id="t"> |
3 <head> | 3 <head> |
4 <meta charset="utf-8"> | 4 <meta charset="utf-8"> |
5 <title i18n-content="title"></title> | 5 <title i18n-content="title"></title> |
6 | 6 |
7 <!-- TODO(zelidrag) need a better icon here --> | 7 <!-- TODO(zelidrag) need a better icon here --> |
8 <link rel="icon" href="../../app/theme/history_favicon.png"> | 8 <link rel="icon" href="../../app/theme/history_favicon.png"> |
9 | 9 |
10 <script src="chrome://resources/js/class_list.js"></script> | 10 <script src="chrome://resources/js/class_list.js"></script> |
(...skipping 18 matching lines...) Expand all Loading... |
29 /////////////////////////////////////////////////////////////////////////////// | 29 /////////////////////////////////////////////////////////////////////////////// |
30 // Document Functions: | 30 // Document Functions: |
31 /** | 31 /** |
32 * Window onload handler, sets up the page. | 32 * Window onload handler, sets up the page. |
33 */ | 33 */ |
34 function load() { | 34 function load() { |
35 localStrings = new LocalStrings(); | 35 localStrings = new LocalStrings(); |
36 if (cr.isChromeOS) { | 36 if (cr.isChromeOS) { |
37 OptionsPage.register(SystemOptions.getInstance()); | 37 OptionsPage.register(SystemOptions.getInstance()); |
38 } | 38 } |
| 39 |
39 OptionsPage.register(BrowserOptions.getInstance()); | 40 OptionsPage.register(BrowserOptions.getInstance()); |
40 OptionsPage.register(PersonalOptions.getInstance()); | 41 OptionsPage.register(PersonalOptions.getInstance()); |
41 OptionsPage.register(AdvancedOptions.getInstance()); | 42 OptionsPage.register(AdvancedOptions.getInstance()); |
42 OptionsPage.register(ContentSettings.getInstance()); | 43 OptionsPage.registerSubPage(ContentSettings.getInstance()); |
| 44 |
43 if (cr.isChromeOS) { | 45 if (cr.isChromeOS) { |
44 var labsOptions = new OptionsPage('labs', | 46 var labsOptions = new OptionsPage('labs', |
45 localStrings.getString('labsPage'), | 47 localStrings.getString('labsPage'), |
46 'labsPage'); | 48 'labsPage'); |
47 OptionsPage.register(labsOptions); | 49 OptionsPage.register(labsOptions); |
48 } | 50 } |
49 | 51 |
50 var syncSettings = new OptionsPage('sync', | 52 var syncSettings = new OptionsPage('sync', |
51 localStrings.getString('syncPage'), | 53 localStrings.getString('syncPage'), |
52 'syncPage'); | 54 'syncPage'); |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 <script> | 112 <script> |
111 // Decorate the existing elements in the document. | 113 // Decorate the existing elements in the document. |
112 cr.ui.decorate('input[pref][type=checkbox]', PrefCheckbox); | 114 cr.ui.decorate('input[pref][type=checkbox]', PrefCheckbox); |
113 cr.ui.decorate('input[pref][type=range]', PrefRange); | 115 cr.ui.decorate('input[pref][type=range]', PrefRange); |
114 cr.ui.decorate('select[pref]', PrefSelect); | 116 cr.ui.decorate('select[pref]', PrefSelect); |
115 cr.ui.decorate('#contentSettingsPage input[type=radio]', ContentSettingsRadio); | 117 cr.ui.decorate('#contentSettingsPage input[type=radio]', ContentSettingsRadio); |
116 // TODO(zelidrag) add other elements here when we implement them | 118 // TODO(zelidrag) add other elements here when we implement them |
117 </script> | 119 </script> |
118 </body> | 120 </body> |
119 </html> | 121 </html> |
OLD | NEW |