Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(114)

Side by Side Diff: content/public/common/web_preferences.h

Issue 785723002: Add new extension APIs related to animation policy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update Code Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 }; 51 };
52 52
53 enum V8ScriptStreamingMode { 53 enum V8ScriptStreamingMode {
54 V8_SCRIPT_STREAMING_MODE_ALL, 54 V8_SCRIPT_STREAMING_MODE_ALL,
55 V8_SCRIPT_STREAMING_MODE_ONLY_ASYNC_AND_DEFER, 55 V8_SCRIPT_STREAMING_MODE_ONLY_ASYNC_AND_DEFER,
56 V8_SCRIPT_STREAMING_MODE_ALL_PLUS_BLOCK_PARSER_BLOCKING, 56 V8_SCRIPT_STREAMING_MODE_ALL_PLUS_BLOCK_PARSER_BLOCKING,
57 V8_SCRIPT_STREAMING_MODE_LAST = 57 V8_SCRIPT_STREAMING_MODE_LAST =
58 V8_SCRIPT_STREAMING_MODE_ALL_PLUS_BLOCK_PARSER_BLOCKING 58 V8_SCRIPT_STREAMING_MODE_ALL_PLUS_BLOCK_PARSER_BLOCKING
59 }; 59 };
60 60
61 #if defined(ENABLE_EXTENSIONS)
jam 2015/02/03 16:27:01 extensions is a chrome concept, which content modu
je_julie(Not used) 2015/02/04 02:20:30 Done.
62 // ImageAnimationPolicy is used for controlling image animation
63 // when image frame is rendered for animation.
64 // See third_party/WebKit/Source/platform/graphics/ImageAnimationPolicy.h
65 // for information on the options.
66 enum ImageAnimationPolicy {
67 IMAGE_ANIMATION_POLICY_ALLOWED,
68 IMAGE_ANIMATION_POLICY_ANIMATION_ONCE,
69 IMAGE_ANIMATION_POLICY_NO_ANIMATION
70 };
71 #endif
72
61 // The ISO 15924 script code for undetermined script aka Common. It's the 73 // The ISO 15924 script code for undetermined script aka Common. It's the
62 // default used on WebKit's side to get/set a font setting when no script is 74 // default used on WebKit's side to get/set a font setting when no script is
63 // specified. 75 // specified.
64 CONTENT_EXPORT extern const char kCommonScript[]; 76 CONTENT_EXPORT extern const char kCommonScript[];
65 77
66 // A struct for managing blink's settings. 78 // A struct for managing blink's settings.
67 // 79 //
68 // Adding new values to this class probably involves updating 80 // Adding new values to this class probably involves updating
69 // blink::WebSettings, content/common/view_messages.h, browser/tab_contents/ 81 // blink::WebSettings, content/common/view_messages.h, browser/tab_contents/
70 // render_view_host_delegate_helper.cc, and browser/profiles/profile.cc. 82 // render_view_host_delegate_helper.cc, and browser/profiles/profile.cc.
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 // only controls whether or not the "document.cookie" field is properly 200 // only controls whether or not the "document.cookie" field is properly
189 // connected to the backing store, for instance if you wanted to be able to 201 // connected to the backing store, for instance if you wanted to be able to
190 // define custom getters and setters from within a unique security content 202 // define custom getters and setters from within a unique security content
191 // without raising a DOM security exception. 203 // without raising a DOM security exception.
192 bool cookie_enabled; 204 bool cookie_enabled;
193 205
194 // This flag indicates whether H/W accelerated video decode is enabled for 206 // This flag indicates whether H/W accelerated video decode is enabled for
195 // pepper plugins. Defaults to false. 207 // pepper plugins. Defaults to false.
196 bool pepper_accelerated_video_decode_enabled; 208 bool pepper_accelerated_video_decode_enabled;
197 209
210 #if defined(ENABLE_EXTENSIONS)
211 ImageAnimationPolicy animation_policy;
212 #endif
213
198 #if defined(OS_ANDROID) 214 #if defined(OS_ANDROID)
199 bool text_autosizing_enabled; 215 bool text_autosizing_enabled;
200 float font_scale_factor; 216 float font_scale_factor;
201 float device_scale_adjustment; 217 float device_scale_adjustment;
202 bool force_enable_zoom; 218 bool force_enable_zoom;
203 bool fullscreen_supported; 219 bool fullscreen_supported;
204 bool double_tap_to_zoom_enabled; 220 bool double_tap_to_zoom_enabled;
205 bool user_gesture_required_for_media_playback; 221 bool user_gesture_required_for_media_playback;
206 GURL default_video_poster_url; 222 GURL default_video_poster_url;
207 bool support_deprecated_target_density_dpi; 223 bool support_deprecated_target_density_dpi;
(...skipping 19 matching lines...) Expand all
227 // We try to keep the default values the same as the default values in 243 // We try to keep the default values the same as the default values in
228 // chrome, except for the cases where it would require lots of extra work for 244 // chrome, except for the cases where it would require lots of extra work for
229 // the embedder to use the same default value. 245 // the embedder to use the same default value.
230 WebPreferences(); 246 WebPreferences();
231 ~WebPreferences(); 247 ~WebPreferences();
232 }; 248 };
233 249
234 } // namespace content 250 } // namespace content
235 251
236 #endif // CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_ 252 #endif // CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698