| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #ifndef CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_ | 5 #ifndef CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_ |
| 6 #define CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_ | 6 #define CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 WebInspectorPreferences; | 28 WebInspectorPreferences; |
| 29 | 29 |
| 30 enum EditingBehavior { | 30 enum EditingBehavior { |
| 31 EDITING_BEHAVIOR_MAC, | 31 EDITING_BEHAVIOR_MAC, |
| 32 EDITING_BEHAVIOR_WIN, | 32 EDITING_BEHAVIOR_WIN, |
| 33 EDITING_BEHAVIOR_UNIX, | 33 EDITING_BEHAVIOR_UNIX, |
| 34 EDITING_BEHAVIOR_ANDROID, | 34 EDITING_BEHAVIOR_ANDROID, |
| 35 EDITING_BEHAVIOR_LAST = EDITING_BEHAVIOR_ANDROID | 35 EDITING_BEHAVIOR_LAST = EDITING_BEHAVIOR_ANDROID |
| 36 }; | 36 }; |
| 37 | 37 |
| 38 enum V8CacheOptions { |
| 39 V8_CACHE_OPTIONS_OFF, |
| 40 V8_CACHE_OPTIONS_PARSE, |
| 41 V8_CACHE_OPTIONS_CODE, |
| 42 V8_CACHE_OPTIONS_LAST = V8_CACHE_OPTIONS_CODE |
| 43 }; |
| 44 |
| 38 // The ISO 15924 script code for undetermined script aka Common. It's the | 45 // The ISO 15924 script code for undetermined script aka Common. It's the |
| 39 // default used on WebKit's side to get/set a font setting when no script is | 46 // default used on WebKit's side to get/set a font setting when no script is |
| 40 // specified. | 47 // specified. |
| 41 CONTENT_EXPORT extern const char kCommonScript[]; | 48 CONTENT_EXPORT extern const char kCommonScript[]; |
| 42 | 49 |
| 43 // A struct for managing blink's settings. | 50 // A struct for managing blink's settings. |
| 44 // | 51 // |
| 45 // Adding new values to this class probably involves updating | 52 // Adding new values to this class probably involves updating |
| 46 // blink::WebSettings, content/common/view_messages.h, browser/tab_contents/ | 53 // blink::WebSettings, content/common/view_messages.h, browser/tab_contents/ |
| 47 // render_view_host_delegate_helper.cc, and browser/profiles/profile.cc. | 54 // render_view_host_delegate_helper.cc, and browser/profiles/profile.cc. |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 bool viewport_enabled; | 140 bool viewport_enabled; |
| 134 bool viewport_meta_enabled; | 141 bool viewport_meta_enabled; |
| 135 bool main_frame_resizes_are_orientation_changes; | 142 bool main_frame_resizes_are_orientation_changes; |
| 136 bool initialize_at_minimum_page_scale; | 143 bool initialize_at_minimum_page_scale; |
| 137 bool smart_insert_delete_enabled; | 144 bool smart_insert_delete_enabled; |
| 138 bool spatial_navigation_enabled; | 145 bool spatial_navigation_enabled; |
| 139 bool pinch_virtual_viewport_enabled; | 146 bool pinch_virtual_viewport_enabled; |
| 140 int pinch_overlay_scrollbar_thickness; | 147 int pinch_overlay_scrollbar_thickness; |
| 141 bool use_solid_color_scrollbars; | 148 bool use_solid_color_scrollbars; |
| 142 bool navigate_on_drag_drop; | 149 bool navigate_on_drag_drop; |
| 150 V8CacheOptions v8_cache_options; |
| 143 | 151 |
| 144 // This flags corresponds to a Page's Settings' setCookieEnabled state. It | 152 // This flags corresponds to a Page's Settings' setCookieEnabled state. It |
| 145 // only controls whether or not the "document.cookie" field is properly | 153 // only controls whether or not the "document.cookie" field is properly |
| 146 // connected to the backing store, for instance if you wanted to be able to | 154 // connected to the backing store, for instance if you wanted to be able to |
| 147 // define custom getters and setters from within a unique security content | 155 // define custom getters and setters from within a unique security content |
| 148 // without raising a DOM security exception. | 156 // without raising a DOM security exception. |
| 149 bool cookie_enabled; | 157 bool cookie_enabled; |
| 150 | 158 |
| 151 // This flag indicates whether H/W accelerated video decode is enabled for | 159 // This flag indicates whether H/W accelerated video decode is enabled for |
| 152 // pepper plugins. Defaults to false. | 160 // pepper plugins. Defaults to false. |
| (...skipping 24 matching lines...) Expand all Loading... |
| 177 // We try to keep the default values the same as the default values in | 185 // We try to keep the default values the same as the default values in |
| 178 // chrome, except for the cases where it would require lots of extra work for | 186 // chrome, except for the cases where it would require lots of extra work for |
| 179 // the embedder to use the same default value. | 187 // the embedder to use the same default value. |
| 180 WebPreferences(); | 188 WebPreferences(); |
| 181 ~WebPreferences(); | 189 ~WebPreferences(); |
| 182 }; | 190 }; |
| 183 | 191 |
| 184 } // namespace content | 192 } // namespace content |
| 185 | 193 |
| 186 #endif // CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_ | 194 #endif // CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_ |
| OLD | NEW |