| 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 |
| 11 #ifndef WEBKIT_GLUE_WEBPREFERENCES_H__ | 11 #ifndef WEBKIT_GLUE_WEBPREFERENCES_H__ |
| 12 #define WEBKIT_GLUE_WEBPREFERENCES_H__ | 12 #define WEBKIT_GLUE_WEBPREFERENCES_H__ |
| 13 | 13 |
| 14 #include <string> | 14 #include <string> |
| 15 #include "googleurl/src/gurl.h" | 15 #include "googleurl/src/gurl.h" |
| 16 | 16 |
| 17 namespace WebKit { |
| 17 class WebView; | 18 class WebView; |
| 19 } |
| 18 | 20 |
| 19 struct WebPreferences { | 21 struct WebPreferences { |
| 20 std::wstring standard_font_family; | 22 std::wstring standard_font_family; |
| 21 std::wstring fixed_font_family; | 23 std::wstring fixed_font_family; |
| 22 std::wstring serif_font_family; | 24 std::wstring serif_font_family; |
| 23 std::wstring sans_serif_font_family; | 25 std::wstring sans_serif_font_family; |
| 24 std::wstring cursive_font_family; | 26 std::wstring cursive_font_family; |
| 25 std::wstring fantasy_font_family; | 27 std::wstring fantasy_font_family; |
| 26 int default_font_size; | 28 int default_font_size; |
| 27 int default_fixed_font_size; | 29 int default_fixed_font_size; |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 session_storage_enabled(false), | 98 session_storage_enabled(false), |
| 97 application_cache_enabled(false), | 99 application_cache_enabled(false), |
| 98 tabs_to_links(true), | 100 tabs_to_links(true), |
| 99 web_sockets_enabled(false), | 101 web_sockets_enabled(false), |
| 100 user_style_sheet_enabled(false), | 102 user_style_sheet_enabled(false), |
| 101 allow_universal_access_from_file_urls(false), | 103 allow_universal_access_from_file_urls(false), |
| 102 experimental_webgl_enabled(false), | 104 experimental_webgl_enabled(false), |
| 103 experimental_notifications_enabled(false) { | 105 experimental_notifications_enabled(false) { |
| 104 } | 106 } |
| 105 | 107 |
| 106 void Apply(WebView* web_view) const; | 108 void Apply(WebKit::WebView* web_view) const; |
| 107 }; | 109 }; |
| 108 | 110 |
| 109 #endif // WEBKIT_GLUE_WEBPREFERENCES_H__ | 111 #endif // WEBKIT_GLUE_WEBPREFERENCES_H__ |
| OLD | NEW |