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

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: AccessibilityNotifier Created 5 years, 11 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 // This flags corresponds to a Page's Settings' setCookieEnabled state. It 187 // This flags corresponds to a Page's Settings' setCookieEnabled state. It
182 // only controls whether or not the "document.cookie" field is properly 188 // only controls whether or not the "document.cookie" field is properly
183 // 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
184 // define custom getters and setters from within a unique security content 190 // define custom getters and setters from within a unique security content
185 // without raising a DOM security exception. 191 // without raising a DOM security exception.
186 bool cookie_enabled; 192 bool cookie_enabled;
187 193
188 // 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
189 // pepper plugins. Defaults to false. 195 // pepper plugins. Defaults to false.
190 bool pepper_accelerated_video_decode_enabled; 196 bool pepper_accelerated_video_decode_enabled;
197 ImageAnimationPolicy animation_policy;
191 198
192 #if defined(OS_ANDROID) 199 #if defined(OS_ANDROID)
193 bool text_autosizing_enabled; 200 bool text_autosizing_enabled;
194 float font_scale_factor; 201 float font_scale_factor;
195 float device_scale_adjustment; 202 float device_scale_adjustment;
196 bool force_enable_zoom; 203 bool force_enable_zoom;
197 bool fullscreen_supported; 204 bool fullscreen_supported;
198 bool double_tap_to_zoom_enabled; 205 bool double_tap_to_zoom_enabled;
199 bool user_gesture_required_for_media_playback; 206 bool user_gesture_required_for_media_playback;
200 GURL default_video_poster_url; 207 GURL default_video_poster_url;
(...skipping 20 matching lines...) Expand all
221 // We try to keep the default values the same as the default values in 228 // We try to keep the default values the same as the default values in
222 // chrome, except for the cases where it would require lots of extra work for 229 // chrome, except for the cases where it would require lots of extra work for
223 // the embedder to use the same default value. 230 // the embedder to use the same default value.
224 WebPreferences(); 231 WebPreferences();
225 ~WebPreferences(); 232 ~WebPreferences();
226 }; 233 };
227 234
228 } // namespace content 235 } // namespace content
229 236
230 #endif // CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_ 237 #endif // CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698