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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 | 58 |
59 bool user_style_sheet_enabled; | 59 bool user_style_sheet_enabled; |
60 GURL user_style_sheet_location; | 60 GURL user_style_sheet_location; |
61 bool author_and_user_styles_enabled; | 61 bool author_and_user_styles_enabled; |
62 bool allow_universal_access_from_file_urls; | 62 bool allow_universal_access_from_file_urls; |
63 bool allow_file_access_from_file_urls; | 63 bool allow_file_access_from_file_urls; |
64 bool experimental_webgl_enabled; | 64 bool experimental_webgl_enabled; |
65 bool show_composited_layer_borders; | 65 bool show_composited_layer_borders; |
66 bool accelerated_compositing_enabled; | 66 bool accelerated_compositing_enabled; |
67 bool accelerated_2d_canvas_enabled; | 67 bool accelerated_2d_canvas_enabled; |
68 bool enable_html5_parser; | |
69 bool memory_info_enabled; | 68 bool memory_info_enabled; |
70 | 69 |
71 // We try to keep the default values the same as the default values in | 70 // We try to keep the default values the same as the default values in |
72 // chrome, except for the cases where it would require lots of extra work for | 71 // chrome, except for the cases where it would require lots of extra work for |
73 // the embedder to use the same default value. | 72 // the embedder to use the same default value. |
74 WebPreferences() | 73 WebPreferences() |
75 : standard_font_family(L"Times New Roman"), | 74 : standard_font_family(L"Times New Roman"), |
76 fixed_font_family(L"Courier New"), | 75 fixed_font_family(L"Courier New"), |
77 serif_font_family(L"Times New Roman"), | 76 serif_font_family(L"Times New Roman"), |
78 sans_serif_font_family(L"Arial"), | 77 sans_serif_font_family(L"Arial"), |
(...skipping 26 matching lines...) Expand all Loading... |
105 application_cache_enabled(false), | 104 application_cache_enabled(false), |
106 tabs_to_links(true), | 105 tabs_to_links(true), |
107 user_style_sheet_enabled(false), | 106 user_style_sheet_enabled(false), |
108 author_and_user_styles_enabled(true), | 107 author_and_user_styles_enabled(true), |
109 allow_universal_access_from_file_urls(false), | 108 allow_universal_access_from_file_urls(false), |
110 allow_file_access_from_file_urls(false), | 109 allow_file_access_from_file_urls(false), |
111 experimental_webgl_enabled(false), | 110 experimental_webgl_enabled(false), |
112 show_composited_layer_borders(false), | 111 show_composited_layer_borders(false), |
113 accelerated_compositing_enabled(false), | 112 accelerated_compositing_enabled(false), |
114 accelerated_2d_canvas_enabled(false), | 113 accelerated_2d_canvas_enabled(false), |
115 enable_html5_parser(true), | |
116 memory_info_enabled(false) { | 114 memory_info_enabled(false) { |
117 } | 115 } |
118 | 116 |
119 void Apply(WebKit::WebView* web_view) const; | 117 void Apply(WebKit::WebView* web_view) const; |
120 }; | 118 }; |
121 | 119 |
122 #endif // WEBKIT_GLUE_WEBPREFERENCES_H__ | 120 #endif // WEBKIT_GLUE_WEBPREFERENCES_H__ |
OLD | NEW |