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

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 enum ImageAnimationPolicy {
62 IMAGE_ANIMATION_POLICY_ALLOWED,
63 IMAGE_ANIMATION_POLICY_ANIMATION_ONCE,
64 IMAGE_ANIMATION_POLICY_NO_ANIMATION
jam 2015/01/28 20:29:58 documentation here would be nice
je_julie(Not used) 2015/01/30 15:58:06 Done.
65 };
66
61 // The ISO 15924 script code for undetermined script aka Common. It's the 67 // 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 68 // default used on WebKit's side to get/set a font setting when no script is
63 // specified. 69 // specified.
64 CONTENT_EXPORT extern const char kCommonScript[]; 70 CONTENT_EXPORT extern const char kCommonScript[];
65 71
66 // A struct for managing blink's settings. 72 // A struct for managing blink's settings.
67 // 73 //
68 // Adding new values to this class probably involves updating 74 // Adding new values to this class probably involves updating
69 // blink::WebSettings, content/common/view_messages.h, browser/tab_contents/ 75 // blink::WebSettings, content/common/view_messages.h, browser/tab_contents/
70 // render_view_host_delegate_helper.cc, and browser/profiles/profile.cc. 76 // render_view_host_delegate_helper.cc, and browser/profiles/profile.cc.
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 // This flags corresponds to a Page's Settings' setCookieEnabled state. It 193 // This flags corresponds to a Page's Settings' setCookieEnabled state. It
188 // only controls whether or not the "document.cookie" field is properly 194 // 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 195 // 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 196 // define custom getters and setters from within a unique security content
191 // without raising a DOM security exception. 197 // without raising a DOM security exception.
192 bool cookie_enabled; 198 bool cookie_enabled;
193 199
194 // This flag indicates whether H/W accelerated video decode is enabled for 200 // This flag indicates whether H/W accelerated video decode is enabled for
195 // pepper plugins. Defaults to false. 201 // pepper plugins. Defaults to false.
196 bool pepper_accelerated_video_decode_enabled; 202 bool pepper_accelerated_video_decode_enabled;
203 ImageAnimationPolicy animation_policy;
jam 2015/01/28 20:29:58 nit: separate this from the previous line. or just
197 204
198 #if defined(OS_ANDROID) 205 #if defined(OS_ANDROID)
199 bool text_autosizing_enabled; 206 bool text_autosizing_enabled;
200 float font_scale_factor; 207 float font_scale_factor;
201 float device_scale_adjustment; 208 float device_scale_adjustment;
202 bool force_enable_zoom; 209 bool force_enable_zoom;
203 bool fullscreen_supported; 210 bool fullscreen_supported;
204 bool double_tap_to_zoom_enabled; 211 bool double_tap_to_zoom_enabled;
205 bool user_gesture_required_for_media_playback; 212 bool user_gesture_required_for_media_playback;
206 GURL default_video_poster_url; 213 GURL default_video_poster_url;
(...skipping 20 matching lines...) Expand all
227 // We try to keep the default values the same as the default values in 234 // 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 235 // chrome, except for the cases where it would require lots of extra work for
229 // the embedder to use the same default value. 236 // the embedder to use the same default value.
230 WebPreferences(); 237 WebPreferences();
231 ~WebPreferences(); 238 ~WebPreferences();
232 }; 239 };
233 240
234 } // namespace content 241 } // namespace content
235 242
236 #endif // CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_ 243 #endif // CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698