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