| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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, content/common/view_messages.h, browser/tab_contents/ | 8 // WebKit::WebSettings, content/common/view_messages.h, browser/tab_contents/ |
| 9 // render_view_host_delegate_helper.cc, and browser/profiles/profile.cc. | 9 // render_view_host_delegate_helper.cc, and browser/profiles/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 <map> | 14 #include <map> |
| 15 #include <string> | 15 #include <string> |
| 16 #include <vector> | 16 #include <vector> |
| 17 | 17 |
| 18 #include "base/string16.h" | 18 #include "base/string16.h" |
| 19 #include "googleurl/src/gurl.h" | 19 #include "googleurl/src/gurl.h" |
| 20 #include "webkit/glue/webkit_glue_export.h" | 20 #include "webkit/glue/webkit_glue_export.h" |
| 21 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCompositor.h" | |
| 22 | 21 |
| 23 namespace WebKit { | 22 namespace WebKit { |
| 24 class WebView; | 23 class WebView; |
| 25 } | 24 } |
| 26 | 25 |
| 27 namespace webkit_glue { | 26 namespace webkit_glue { |
| 28 | 27 |
| 29 struct WEBKIT_GLUE_EXPORT WebPreferences { | 28 struct WEBKIT_GLUE_EXPORT WebPreferences { |
| 30 // Map of ISO 15924 four-letter script code to font family. For example, | 29 // Map of ISO 15924 four-letter script code to font family. For example, |
| 31 // "Arab" to "My Arabic Font". | 30 // "Arab" to "My Arabic Font". |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 bool allow_running_insecure_content; | 116 bool allow_running_insecure_content; |
| 118 bool password_echo_enabled; | 117 bool password_echo_enabled; |
| 119 bool should_print_backgrounds; | 118 bool should_print_backgrounds; |
| 120 bool enable_scroll_animator; | 119 bool enable_scroll_animator; |
| 121 bool visual_word_movement_enabled; | 120 bool visual_word_movement_enabled; |
| 122 bool css_regions_enabled; | 121 bool css_regions_enabled; |
| 123 bool css_shaders_enabled; | 122 bool css_shaders_enabled; |
| 124 bool css_variables_enabled; | 123 bool css_variables_enabled; |
| 125 bool device_supports_touch; | 124 bool device_supports_touch; |
| 126 bool device_supports_mouse; | 125 bool device_supports_mouse; |
| 127 #if !defined(WEBCOMPOSITOR_OWNS_SETTINGS) | |
| 128 bool threaded_animation_enabled; | |
| 129 bool per_tile_painting_enabled; | |
| 130 bool partial_swap_enabled; | |
| 131 #endif | |
| 132 int default_tile_width; | 126 int default_tile_width; |
| 133 int default_tile_height; | 127 int default_tile_height; |
| 134 int max_untiled_layer_width; | 128 int max_untiled_layer_width; |
| 135 int max_untiled_layer_height; | 129 int max_untiled_layer_height; |
| 136 bool fixed_position_creates_stacking_context; | 130 bool fixed_position_creates_stacking_context; |
| 137 bool sync_xhr_in_documents_enabled; | 131 bool sync_xhr_in_documents_enabled; |
| 138 int number_of_cpu_cores; | 132 int number_of_cpu_cores; |
| 139 | 133 |
| 140 // This flags corresponds to a Page's Settings' setCookieEnabled state. It | 134 // This flags corresponds to a Page's Settings' setCookieEnabled state. It |
| 141 // only controls whether or not the "document.cookie" field is properly | 135 // only controls whether or not the "document.cookie" field is properly |
| 142 // connected to the backing store, for instance if you wanted to be able to | 136 // connected to the backing store, for instance if you wanted to be able to |
| 143 // define custom getters and setters from within a unique security content | 137 // define custom getters and setters from within a unique security content |
| 144 // without raising a DOM security exception. | 138 // without raising a DOM security exception. |
| 145 bool cookie_enabled; | 139 bool cookie_enabled; |
| 146 | 140 |
| 147 // We try to keep the default values the same as the default values in | 141 // We try to keep the default values the same as the default values in |
| 148 // chrome, except for the cases where it would require lots of extra work for | 142 // chrome, except for the cases where it would require lots of extra work for |
| 149 // the embedder to use the same default value. | 143 // the embedder to use the same default value. |
| 150 WebPreferences(); | 144 WebPreferences(); |
| 151 ~WebPreferences(); | 145 ~WebPreferences(); |
| 152 | 146 |
| 153 void Apply(WebKit::WebView* web_view) const; | 147 void Apply(WebKit::WebView* web_view) const; |
| 154 }; | 148 }; |
| 155 | 149 |
| 156 } // namespace webkit_glue | 150 } // namespace webkit_glue |
| 157 | 151 |
| 158 #endif // WEBKIT_GLUE_WEBPREFERENCES_H__ | 152 #endif // WEBKIT_GLUE_WEBPREFERENCES_H__ |
| OLD | NEW |