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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 }; | 47 }; |
48 | 48 |
49 enum V8ScriptStreamingMode { | 49 enum V8ScriptStreamingMode { |
50 V8_SCRIPT_STREAMING_MODE_ALL, | 50 V8_SCRIPT_STREAMING_MODE_ALL, |
51 V8_SCRIPT_STREAMING_MODE_ONLY_ASYNC_AND_DEFER, | 51 V8_SCRIPT_STREAMING_MODE_ONLY_ASYNC_AND_DEFER, |
52 V8_SCRIPT_STREAMING_MODE_ALL_PLUS_BLOCK_PARSER_BLOCKING, | 52 V8_SCRIPT_STREAMING_MODE_ALL_PLUS_BLOCK_PARSER_BLOCKING, |
53 V8_SCRIPT_STREAMING_MODE_LAST = | 53 V8_SCRIPT_STREAMING_MODE_LAST = |
54 V8_SCRIPT_STREAMING_MODE_ALL_PLUS_BLOCK_PARSER_BLOCKING | 54 V8_SCRIPT_STREAMING_MODE_ALL_PLUS_BLOCK_PARSER_BLOCKING |
55 }; | 55 }; |
56 | 56 |
| 57 enum ImageAnimationPolicy { |
| 58 IMAGE_ANIMATION_POLICY_ALLOWED, |
| 59 IMAGE_ANIMATION_POLICY_ANIMATION_ONCE, |
| 60 IMAGE_ANIMATION_POLICY_NO_ANIMATION |
| 61 }; |
| 62 |
57 // The ISO 15924 script code for undetermined script aka Common. It's the | 63 // The ISO 15924 script code for undetermined script aka Common. It's the |
58 // default used on WebKit's side to get/set a font setting when no script is | 64 // default used on WebKit's side to get/set a font setting when no script is |
59 // specified. | 65 // specified. |
60 CONTENT_EXPORT extern const char kCommonScript[]; | 66 CONTENT_EXPORT extern const char kCommonScript[]; |
61 | 67 |
62 // A struct for managing blink's settings. | 68 // A struct for managing blink's settings. |
63 // | 69 // |
64 // Adding new values to this class probably involves updating | 70 // Adding new values to this class probably involves updating |
65 // blink::WebSettings, content/common/view_messages.h, browser/tab_contents/ | 71 // blink::WebSettings, content/common/view_messages.h, browser/tab_contents/ |
66 // render_view_host_delegate_helper.cc, and browser/profiles/profile.cc. | 72 // render_view_host_delegate_helper.cc, and browser/profiles/profile.cc. |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 // only controls whether or not the "document.cookie" field is properly | 181 // only controls whether or not the "document.cookie" field is properly |
176 // connected to the backing store, for instance if you wanted to be able to | 182 // connected to the backing store, for instance if you wanted to be able to |
177 // define custom getters and setters from within a unique security content | 183 // define custom getters and setters from within a unique security content |
178 // without raising a DOM security exception. | 184 // without raising a DOM security exception. |
179 bool cookie_enabled; | 185 bool cookie_enabled; |
180 | 186 |
181 // This flag indicates whether H/W accelerated video decode is enabled for | 187 // This flag indicates whether H/W accelerated video decode is enabled for |
182 // pepper plugins. Defaults to false. | 188 // pepper plugins. Defaults to false. |
183 bool pepper_accelerated_video_decode_enabled; | 189 bool pepper_accelerated_video_decode_enabled; |
184 | 190 |
| 191 ImageAnimationPolicy animation_policy; |
| 192 |
185 #if defined(OS_ANDROID) | 193 #if defined(OS_ANDROID) |
186 bool text_autosizing_enabled; | 194 bool text_autosizing_enabled; |
187 float font_scale_factor; | 195 float font_scale_factor; |
188 float device_scale_adjustment; | 196 float device_scale_adjustment; |
189 bool force_enable_zoom; | 197 bool force_enable_zoom; |
190 bool fullscreen_supported; | 198 bool fullscreen_supported; |
191 bool double_tap_to_zoom_enabled; | 199 bool double_tap_to_zoom_enabled; |
192 bool user_gesture_required_for_media_playback; | 200 bool user_gesture_required_for_media_playback; |
193 GURL default_video_poster_url; | 201 GURL default_video_poster_url; |
194 bool support_deprecated_target_density_dpi; | 202 bool support_deprecated_target_density_dpi; |
(...skipping 13 matching lines...) Expand all Loading... |
208 // We try to keep the default values the same as the default values in | 216 // We try to keep the default values the same as the default values in |
209 // chrome, except for the cases where it would require lots of extra work for | 217 // chrome, except for the cases where it would require lots of extra work for |
210 // the embedder to use the same default value. | 218 // the embedder to use the same default value. |
211 WebPreferences(); | 219 WebPreferences(); |
212 ~WebPreferences(); | 220 ~WebPreferences(); |
213 }; | 221 }; |
214 | 222 |
215 } // namespace content | 223 } // namespace content |
216 | 224 |
217 #endif // CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_ | 225 #endif // CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_ |
OLD | NEW |