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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 V8_CACHE_OPTIONS_PARSE_MEMORY, | 43 V8_CACHE_OPTIONS_PARSE_MEMORY, |
44 V8_CACHE_OPTIONS_HEURISTICS, | 44 V8_CACHE_OPTIONS_HEURISTICS, |
45 V8_CACHE_OPTIONS_HEURISTICS_MOBILE, | 45 V8_CACHE_OPTIONS_HEURISTICS_MOBILE, |
46 V8_CACHE_OPTIONS_HEURISTICS_DEFAULT, | 46 V8_CACHE_OPTIONS_HEURISTICS_DEFAULT, |
47 V8_CACHE_OPTIONS_HEURISTICS_DEFAULT_MOBILE, | 47 V8_CACHE_OPTIONS_HEURISTICS_DEFAULT_MOBILE, |
48 V8_CACHE_OPTIONS_RECENT, | 48 V8_CACHE_OPTIONS_RECENT, |
49 V8_CACHE_OPTIONS_RECENT_SMALL, | 49 V8_CACHE_OPTIONS_RECENT_SMALL, |
50 V8_CACHE_OPTIONS_LAST = V8_CACHE_OPTIONS_RECENT_SMALL | 50 V8_CACHE_OPTIONS_LAST = V8_CACHE_OPTIONS_RECENT_SMALL |
51 }; | 51 }; |
52 | 52 |
| 53 // ImageAnimationPolicy is used for controlling image animation |
| 54 // when image frame is rendered for animation. |
| 55 // See third_party/WebKit/Source/platform/graphics/ImageAnimationPolicy.h |
| 56 // for information on the options. |
| 57 enum ImageAnimationPolicy { |
| 58 IMAGE_ANIMATION_POLICY_ALLOWED, |
| 59 IMAGE_ANIMATION_POLICY_ANIMATION_ONCE, |
| 60 IMAGE_ANIMATION_POLICY_NO_ANIMATION |
| 61 }; |
| 62 |
53 // 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 |
54 // 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 |
55 // specified. | 65 // specified. |
56 CONTENT_EXPORT extern const char kCommonScript[]; | 66 CONTENT_EXPORT extern const char kCommonScript[]; |
57 | 67 |
58 // A struct for managing blink's settings. | 68 // A struct for managing blink's settings. |
59 // | 69 // |
60 // Adding new values to this class probably involves updating | 70 // Adding new values to this class probably involves updating |
61 // blink::WebSettings, content/common/view_messages.h, browser/tab_contents/ | 71 // blink::WebSettings, content/common/view_messages.h, browser/tab_contents/ |
62 // render_view_host_delegate_helper.cc, and browser/profiles/profile.cc. | 72 // render_view_host_delegate_helper.cc, and browser/profiles/profile.cc. |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 // only controls whether or not the "document.cookie" field is properly | 188 // only controls whether or not the "document.cookie" field is properly |
179 // connected to the backing store, for instance if you wanted to be able to | 189 // connected to the backing store, for instance if you wanted to be able to |
180 // define custom getters and setters from within a unique security content | 190 // define custom getters and setters from within a unique security content |
181 // without raising a DOM security exception. | 191 // without raising a DOM security exception. |
182 bool cookie_enabled; | 192 bool cookie_enabled; |
183 | 193 |
184 // This flag indicates whether H/W accelerated video decode is enabled for | 194 // This flag indicates whether H/W accelerated video decode is enabled for |
185 // pepper plugins. Defaults to false. | 195 // pepper plugins. Defaults to false. |
186 bool pepper_accelerated_video_decode_enabled; | 196 bool pepper_accelerated_video_decode_enabled; |
187 | 197 |
| 198 ImageAnimationPolicy animation_policy; |
| 199 |
188 #if defined(OS_ANDROID) | 200 #if defined(OS_ANDROID) |
189 bool text_autosizing_enabled; | 201 bool text_autosizing_enabled; |
190 float font_scale_factor; | 202 float font_scale_factor; |
191 float device_scale_adjustment; | 203 float device_scale_adjustment; |
192 bool force_enable_zoom; | 204 bool force_enable_zoom; |
193 bool fullscreen_supported; | 205 bool fullscreen_supported; |
194 bool double_tap_to_zoom_enabled; | 206 bool double_tap_to_zoom_enabled; |
195 bool user_gesture_required_for_media_playback; | 207 bool user_gesture_required_for_media_playback; |
196 GURL default_video_poster_url; | 208 GURL default_video_poster_url; |
197 bool support_deprecated_target_density_dpi; | 209 bool support_deprecated_target_density_dpi; |
(...skipping 19 matching lines...) Expand all Loading... |
217 // We try to keep the default values the same as the default values in | 229 // We try to keep the default values the same as the default values in |
218 // chrome, except for the cases where it would require lots of extra work for | 230 // chrome, except for the cases where it would require lots of extra work for |
219 // the embedder to use the same default value. | 231 // the embedder to use the same default value. |
220 WebPreferences(); | 232 WebPreferences(); |
221 ~WebPreferences(); | 233 ~WebPreferences(); |
222 }; | 234 }; |
223 | 235 |
224 } // namespace content | 236 } // namespace content |
225 | 237 |
226 #endif // CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_ | 238 #endif // CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_ |
OLD | NEW |