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 21 matching lines...) Expand all Loading... |
32 EDITING_BEHAVIOR_LAST = EDITING_BEHAVIOR_ANDROID | 32 EDITING_BEHAVIOR_LAST = EDITING_BEHAVIOR_ANDROID |
33 }; | 33 }; |
34 | 34 |
35 enum V8CacheOptions { | 35 enum V8CacheOptions { |
36 V8_CACHE_OPTIONS_OFF, | 36 V8_CACHE_OPTIONS_OFF, |
37 V8_CACHE_OPTIONS_PARSE, | 37 V8_CACHE_OPTIONS_PARSE, |
38 V8_CACHE_OPTIONS_CODE, | 38 V8_CACHE_OPTIONS_CODE, |
39 V8_CACHE_OPTIONS_LAST = V8_CACHE_OPTIONS_CODE | 39 V8_CACHE_OPTIONS_LAST = V8_CACHE_OPTIONS_CODE |
40 }; | 40 }; |
41 | 41 |
| 42 enum V8ScriptStreamingMode { |
| 43 V8_SCRIPT_STREAMING_MODE_ALL, |
| 44 V8_SCRIPT_STREAMING_MODE_ONLY_ASYNC_AND_DEFER, |
| 45 V8_SCRIPT_STREAMING_MODE_ALL_PLUS_BLOCK_PARSER_BLOCKING, |
| 46 V8_SCRIPT_STREAMING_MODE_LAST = |
| 47 V8_SCRIPT_STREAMING_MODE_ALL_PLUS_BLOCK_PARSER_BLOCKING |
| 48 }; |
| 49 |
42 // The ISO 15924 script code for undetermined script aka Common. It's the | 50 // The ISO 15924 script code for undetermined script aka Common. It's the |
43 // default used on WebKit's side to get/set a font setting when no script is | 51 // default used on WebKit's side to get/set a font setting when no script is |
44 // specified. | 52 // specified. |
45 CONTENT_EXPORT extern const char kCommonScript[]; | 53 CONTENT_EXPORT extern const char kCommonScript[]; |
46 | 54 |
47 // A struct for managing blink's settings. | 55 // A struct for managing blink's settings. |
48 // | 56 // |
49 // Adding new values to this class probably involves updating | 57 // Adding new values to this class probably involves updating |
50 // blink::WebSettings, content/common/view_messages.h, browser/tab_contents/ | 58 // blink::WebSettings, content/common/view_messages.h, browser/tab_contents/ |
51 // render_view_host_delegate_helper.cc, and browser/profiles/profile.cc. | 59 // render_view_host_delegate_helper.cc, and browser/profiles/profile.cc. |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 bool main_frame_resizes_are_orientation_changes; | 146 bool main_frame_resizes_are_orientation_changes; |
139 bool initialize_at_minimum_page_scale; | 147 bool initialize_at_minimum_page_scale; |
140 bool smart_insert_delete_enabled; | 148 bool smart_insert_delete_enabled; |
141 bool spatial_navigation_enabled; | 149 bool spatial_navigation_enabled; |
142 bool pinch_virtual_viewport_enabled; | 150 bool pinch_virtual_viewport_enabled; |
143 int pinch_overlay_scrollbar_thickness; | 151 int pinch_overlay_scrollbar_thickness; |
144 bool use_solid_color_scrollbars; | 152 bool use_solid_color_scrollbars; |
145 bool navigate_on_drag_drop; | 153 bool navigate_on_drag_drop; |
146 V8CacheOptions v8_cache_options; | 154 V8CacheOptions v8_cache_options; |
147 bool v8_script_streaming_enabled; | 155 bool v8_script_streaming_enabled; |
| 156 V8ScriptStreamingMode v8_script_streaming_mode; |
148 bool slimming_paint_enabled; | 157 bool slimming_paint_enabled; |
149 | 158 |
150 // This flags corresponds to a Page's Settings' setCookieEnabled state. It | 159 // This flags corresponds to a Page's Settings' setCookieEnabled state. It |
151 // only controls whether or not the "document.cookie" field is properly | 160 // only controls whether or not the "document.cookie" field is properly |
152 // connected to the backing store, for instance if you wanted to be able to | 161 // connected to the backing store, for instance if you wanted to be able to |
153 // define custom getters and setters from within a unique security content | 162 // define custom getters and setters from within a unique security content |
154 // without raising a DOM security exception. | 163 // without raising a DOM security exception. |
155 bool cookie_enabled; | 164 bool cookie_enabled; |
156 | 165 |
157 // This flag indicates whether H/W accelerated video decode is enabled for | 166 // This flag indicates whether H/W accelerated video decode is enabled for |
(...skipping 26 matching lines...) Expand all Loading... |
184 // We try to keep the default values the same as the default values in | 193 // We try to keep the default values the same as the default values in |
185 // chrome, except for the cases where it would require lots of extra work for | 194 // chrome, except for the cases where it would require lots of extra work for |
186 // the embedder to use the same default value. | 195 // the embedder to use the same default value. |
187 WebPreferences(); | 196 WebPreferences(); |
188 ~WebPreferences(); | 197 ~WebPreferences(); |
189 }; | 198 }; |
190 | 199 |
191 } // namespace content | 200 } // namespace content |
192 | 201 |
193 #endif // CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_ | 202 #endif // CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_ |
OLD | NEW |