OLD | NEW |
1 # What is chrome://settings? | 1 # What is chrome://settings? |
2 | 2 |
3 Chrome (version 10 and above) uses WebUI settings by default for all platforms. | 3 Chrome (version 10 and above) uses WebUI settings by default for all platforms. |
4 Access it via the wrench menu ("Preferences" on Mac and Linux; "Options" on | 4 Access it via the wrench menu ("Preferences" on Mac and Linux; "Options" on |
5 Windows and ChromeOS), or by typing chrome://settings into the address bar. | 5 Windows and Chrome OS), or by typing chrome://settings into the address bar. |
6 | 6 |
7 One advantage of chrome://settings over platform-native dialogs is that it is | 7 One advantage of chrome://settings over platform-native dialogs is that it is |
8 shared by all platforms; therefore, it is easier to add new options UI and to | 8 shared by all platforms; therefore, it is easier to add new options UI and to |
9 keep all platforms in sync. | 9 keep all platforms in sync. |
10 | 10 |
11 Note that at the time of this writing, DOMUI is being renamed to WebUI. The two | 11 Note that at the time of this writing, DOMUI is being renamed to WebUI. The two |
12 terms will be used interchangeably herein. | 12 terms will be used interchangeably herein. |
13 | 13 |
14 ## Moving parts | 14 ## Moving parts |
15 | 15 |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 * the `checkbox` class allows us to style all checkboxes the same via CSS | 98 * the `checkbox` class allows us to style all checkboxes the same via CSS |
99 * the class and ID are in dash-form * the i18n-content value is in camelCase | 99 * the class and ID are in dash-form * the i18n-content value is in camelCase |
100 * the pref attribute matches that which is defined in | 100 * the pref attribute matches that which is defined in |
101 `chrome/common/pref_names.cc` and allows the prefs framework to | 101 `chrome/common/pref_names.cc` and allows the prefs framework to |
102 automatically keep it in sync with the value in C++ | 102 automatically keep it in sync with the value in C++ |
103 * the `i18n-content` value matches the string we defined in the WebUI handler. | 103 * the `i18n-content` value matches the string we defined in the WebUI handler. |
104 The `textContent` of the `span` will automatically be set to the associated | 104 The `textContent` of the `span` will automatically be set to the associated |
105 text. | 105 text. |
106 | 106 |
107 In this example, no additional JS or CSS are needed. | 107 In this example, no additional JS or CSS are needed. |
OLD | NEW |