OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 // | 4 // |
5 // A struct for managing webkit's settings. | 5 // A struct for managing webkit's settings. |
6 // | 6 // |
7 // Adding new values to this class probably involves updating | 7 // Adding new values to this class probably involves updating |
8 // WebKit::WebSettings, common/render_messages.h, and | 8 // WebKit::WebSettings, common/render_messages.h, and |
9 // browser/profile.cc. | 9 // browser/profile.cc. |
10 | 10 |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 bool application_cache_enabled; | 50 bool application_cache_enabled; |
51 bool tabs_to_links; | 51 bool tabs_to_links; |
52 | 52 |
53 // TODO(tc): User style sheets will not work in chrome because it tries to | 53 // TODO(tc): User style sheets will not work in chrome because it tries to |
54 // load the style sheet using a request without a frame. | 54 // load the style sheet using a request without a frame. |
55 bool user_style_sheet_enabled; | 55 bool user_style_sheet_enabled; |
56 GURL user_style_sheet_location; | 56 GURL user_style_sheet_location; |
57 | 57 |
58 bool allow_universal_access_from_file_urls; | 58 bool allow_universal_access_from_file_urls; |
59 | 59 |
| 60 bool experimental_webgl_enabled; |
| 61 |
60 // We try to keep the default values the same as the default values in | 62 // We try to keep the default values the same as the default values in |
61 // chrome, except for the cases where it would require lots of extra work for | 63 // chrome, except for the cases where it would require lots of extra work for |
62 // the embedder to use the same default value. | 64 // the embedder to use the same default value. |
63 WebPreferences() | 65 WebPreferences() |
64 : standard_font_family(L"Times New Roman"), | 66 : standard_font_family(L"Times New Roman"), |
65 fixed_font_family(L"Courier New"), | 67 fixed_font_family(L"Courier New"), |
66 serif_font_family(L"Times New Roman"), | 68 serif_font_family(L"Times New Roman"), |
67 sans_serif_font_family(L"Arial"), | 69 sans_serif_font_family(L"Arial"), |
68 cursive_font_family(L"Script"), | 70 cursive_font_family(L"Script"), |
69 fantasy_font_family(), // Not sure what to use on Windows. | 71 fantasy_font_family(), // Not sure what to use on Windows. |
(...skipping 17 matching lines...) Expand all Loading... |
87 allow_scripts_to_close_windows(false), | 89 allow_scripts_to_close_windows(false), |
88 uses_page_cache(false), | 90 uses_page_cache(false), |
89 remote_fonts_enabled(false), | 91 remote_fonts_enabled(false), |
90 xss_auditor_enabled(false), | 92 xss_auditor_enabled(false), |
91 local_storage_enabled(false), | 93 local_storage_enabled(false), |
92 databases_enabled(false), | 94 databases_enabled(false), |
93 session_storage_enabled(false), | 95 session_storage_enabled(false), |
94 application_cache_enabled(false), | 96 application_cache_enabled(false), |
95 tabs_to_links(true), | 97 tabs_to_links(true), |
96 user_style_sheet_enabled(false), | 98 user_style_sheet_enabled(false), |
97 allow_universal_access_from_file_urls(false) { | 99 allow_universal_access_from_file_urls(false), |
| 100 experimental_webgl_enabled(false) { |
98 } | 101 } |
99 | 102 |
100 void Apply(WebView* web_view) const; | 103 void Apply(WebView* web_view) const; |
101 }; | 104 }; |
102 | 105 |
103 #endif // WEBKIT_GLUE_WEBPREFERENCES_H__ | 106 #endif // WEBKIT_GLUE_WEBPREFERENCES_H__ |
OLD | NEW |