| 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 | 54 |
| 55 // TODO(tc): User style sheets will not work in chrome because it tries to | 55 // TODO(tc): User style sheets will not work in chrome because it tries to |
| 56 // load the style sheet using a request without a frame. | 56 // load the style sheet using a request without a frame. |
| 57 bool user_style_sheet_enabled; | 57 bool user_style_sheet_enabled; |
| 58 GURL user_style_sheet_location; | 58 GURL user_style_sheet_location; |
| 59 | 59 |
| 60 bool allow_universal_access_from_file_urls; | 60 bool allow_universal_access_from_file_urls; |
| 61 | 61 |
| 62 bool experimental_webgl_enabled; | 62 bool experimental_webgl_enabled; |
| 63 | 63 |
| 64 bool geolocation_enabled; |
| 65 |
| 64 // We try to keep the default values the same as the default values in | 66 // We try to keep the default values the same as the default values in |
| 65 // chrome, except for the cases where it would require lots of extra work for | 67 // chrome, except for the cases where it would require lots of extra work for |
| 66 // the embedder to use the same default value. | 68 // the embedder to use the same default value. |
| 67 WebPreferences() | 69 WebPreferences() |
| 68 : standard_font_family(L"Times New Roman"), | 70 : standard_font_family(L"Times New Roman"), |
| 69 fixed_font_family(L"Courier New"), | 71 fixed_font_family(L"Courier New"), |
| 70 serif_font_family(L"Times New Roman"), | 72 serif_font_family(L"Times New Roman"), |
| 71 sans_serif_font_family(L"Arial"), | 73 sans_serif_font_family(L"Arial"), |
| 72 cursive_font_family(L"Script"), | 74 cursive_font_family(L"Script"), |
| 73 fantasy_font_family(), // Not sure what to use on Windows. | 75 fantasy_font_family(), // Not sure what to use on Windows. |
| (...skipping 17 matching lines...) Expand all Loading... |
| 91 allow_scripts_to_close_windows(false), | 93 allow_scripts_to_close_windows(false), |
| 92 uses_page_cache(false), | 94 uses_page_cache(false), |
| 93 remote_fonts_enabled(true), | 95 remote_fonts_enabled(true), |
| 94 xss_auditor_enabled(false), | 96 xss_auditor_enabled(false), |
| 95 local_storage_enabled(false), | 97 local_storage_enabled(false), |
| 96 databases_enabled(false), | 98 databases_enabled(false), |
| 97 application_cache_enabled(false), | 99 application_cache_enabled(false), |
| 98 tabs_to_links(true), | 100 tabs_to_links(true), |
| 99 user_style_sheet_enabled(false), | 101 user_style_sheet_enabled(false), |
| 100 allow_universal_access_from_file_urls(false), | 102 allow_universal_access_from_file_urls(false), |
| 101 experimental_webgl_enabled(false) { | 103 experimental_webgl_enabled(false), |
| 104 geolocation_enabled(false) { |
| 102 } | 105 } |
| 103 | 106 |
| 104 void Apply(WebKit::WebView* web_view) const; | 107 void Apply(WebKit::WebView* web_view) const; |
| 105 }; | 108 }; |
| 106 | 109 |
| 107 #endif // WEBKIT_GLUE_WEBPREFERENCES_H__ | 110 #endif // WEBKIT_GLUE_WEBPREFERENCES_H__ |
| OLD | NEW |