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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 // This flags corresponds to a Page's Settings' setCookieEnabled state. It | 179 // This flags corresponds to a Page's Settings' setCookieEnabled state. It |
174 // only controls whether or not the "document.cookie" field is properly | 180 // only controls whether or not the "document.cookie" field is properly |
175 // connected to the backing store, for instance if you wanted to be able to | 181 // connected to the backing store, for instance if you wanted to be able to |
176 // define custom getters and setters from within a unique security content | 182 // define custom getters and setters from within a unique security content |
177 // without raising a DOM security exception. | 183 // without raising a DOM security exception. |
178 bool cookie_enabled; | 184 bool cookie_enabled; |
179 | 185 |
180 // This flag indicates whether H/W accelerated video decode is enabled for | 186 // This flag indicates whether H/W accelerated video decode is enabled for |
181 // pepper plugins. Defaults to false. | 187 // pepper plugins. Defaults to false. |
182 bool pepper_accelerated_video_decode_enabled; | 188 bool pepper_accelerated_video_decode_enabled; |
| 189 ImageAnimationPolicy animation_policy; |
183 | 190 |
184 #if defined(OS_ANDROID) | 191 #if defined(OS_ANDROID) |
185 bool text_autosizing_enabled; | 192 bool text_autosizing_enabled; |
186 float font_scale_factor; | 193 float font_scale_factor; |
187 float device_scale_adjustment; | 194 float device_scale_adjustment; |
188 bool force_enable_zoom; | 195 bool force_enable_zoom; |
189 bool fullscreen_supported; | 196 bool fullscreen_supported; |
190 bool double_tap_to_zoom_enabled; | 197 bool double_tap_to_zoom_enabled; |
191 bool user_gesture_required_for_media_playback; | 198 bool user_gesture_required_for_media_playback; |
192 GURL default_video_poster_url; | 199 GURL default_video_poster_url; |
(...skipping 14 matching lines...) Expand all Loading... |
207 // We try to keep the default values the same as the default values in | 214 // We try to keep the default values the same as the default values in |
208 // chrome, except for the cases where it would require lots of extra work for | 215 // chrome, except for the cases where it would require lots of extra work for |
209 // the embedder to use the same default value. | 216 // the embedder to use the same default value. |
210 WebPreferences(); | 217 WebPreferences(); |
211 ~WebPreferences(); | 218 ~WebPreferences(); |
212 }; | 219 }; |
213 | 220 |
214 } // namespace content | 221 } // namespace content |
215 | 222 |
216 #endif // CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_ | 223 #endif // CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_ |
OLD | NEW |