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 // See third_party/WebKit/Source/platform/graphics/ImageAnimationPolicy.h | 47 // See third_party/WebKit/Source/platform/graphics/ImageAnimationPolicy.h |
48 // for information on the options. | 48 // for information on the options. |
49 enum ImageAnimationPolicy { | 49 enum ImageAnimationPolicy { |
50 IMAGE_ANIMATION_POLICY_ALLOWED, | 50 IMAGE_ANIMATION_POLICY_ALLOWED, |
51 IMAGE_ANIMATION_POLICY_ANIMATION_ONCE, | 51 IMAGE_ANIMATION_POLICY_ANIMATION_ONCE, |
52 IMAGE_ANIMATION_POLICY_NO_ANIMATION | 52 IMAGE_ANIMATION_POLICY_NO_ANIMATION |
53 }; | 53 }; |
54 | 54 |
55 enum class ViewportStyle { DEFAULT, MOBILE, TELEVISION, LAST = TELEVISION }; | 55 enum class ViewportStyle { DEFAULT, MOBILE, TELEVISION, LAST = TELEVISION }; |
56 | 56 |
| 57 enum class ProgressBarCompletionOptions { |
| 58 LOAD_EVENT, |
| 59 RESOURCES_BEFORE_DCL, |
| 60 DOM_CONTENT_LOADED, |
| 61 RESOURCES_BEFORE_DCL_AND_SAME_ORIGIN_IFRAMES, |
| 62 LAST = RESOURCES_BEFORE_DCL_AND_SAME_ORIGIN_IFRAMES |
| 63 }; |
| 64 |
57 // The ISO 15924 script code for undetermined script aka Common. It's the | 65 // 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 | 66 // default used on WebKit's side to get/set a font setting when no script is |
59 // specified. | 67 // specified. |
60 CONTENT_EXPORT extern const char kCommonScript[]; | 68 CONTENT_EXPORT extern const char kCommonScript[]; |
61 | 69 |
62 // A struct for managing blink's settings. | 70 // A struct for managing blink's settings. |
63 // | 71 // |
64 // Adding new values to this class probably involves updating | 72 // Adding new values to this class probably involves updating |
65 // blink::WebSettings, content/common/view_messages.h, browser/tab_contents/ | 73 // blink::WebSettings, content/common/view_messages.h, browser/tab_contents/ |
66 // render_view_host_delegate_helper.cc, browser/profiles/profile.cc, | 74 // render_view_host_delegate_helper.cc, browser/profiles/profile.cc, |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
217 bool viewport_meta_layout_size_quirk; | 225 bool viewport_meta_layout_size_quirk; |
218 bool viewport_meta_merge_content_quirk; | 226 bool viewport_meta_merge_content_quirk; |
219 bool viewport_meta_non_user_scalable_quirk; | 227 bool viewport_meta_non_user_scalable_quirk; |
220 bool viewport_meta_zero_values_quirk; | 228 bool viewport_meta_zero_values_quirk; |
221 bool clobber_user_agent_initial_scale_quirk; | 229 bool clobber_user_agent_initial_scale_quirk; |
222 bool ignore_main_frame_overflow_hidden_quirk; | 230 bool ignore_main_frame_overflow_hidden_quirk; |
223 bool report_screen_size_in_physical_pixels_quirk; | 231 bool report_screen_size_in_physical_pixels_quirk; |
224 // Used by Android_WebView only to support legacy apps that inject script into | 232 // Used by Android_WebView only to support legacy apps that inject script into |
225 // a top-level initial empty document and expect it to persist on navigation. | 233 // a top-level initial empty document and expect it to persist on navigation. |
226 bool resue_global_for_unowned_main_frame; | 234 bool resue_global_for_unowned_main_frame; |
| 235 ProgressBarCompletionOptions progress_bar_completion; |
227 #endif | 236 #endif |
228 | 237 |
229 // String that describes how media element autoplay behavior should be | 238 // String that describes how media element autoplay behavior should be |
230 // affected by experiment. | 239 // affected by experiment. |
231 std::string autoplay_experiment_mode; | 240 std::string autoplay_experiment_mode; |
232 | 241 |
233 // Default (used if the page or UA doesn't override these) values for page | 242 // Default (used if the page or UA doesn't override these) values for page |
234 // scale limits. These are set directly on the WebView so there's no analogue | 243 // scale limits. These are set directly on the WebView so there's no analogue |
235 // in WebSettings. | 244 // in WebSettings. |
236 float default_minimum_page_scale_factor; | 245 float default_minimum_page_scale_factor; |
237 float default_maximum_page_scale_factor; | 246 float default_maximum_page_scale_factor; |
238 | 247 |
239 // We try to keep the default values the same as the default values in | 248 // We try to keep the default values the same as the default values in |
240 // chrome, except for the cases where it would require lots of extra work for | 249 // chrome, except for the cases where it would require lots of extra work for |
241 // the embedder to use the same default value. | 250 // the embedder to use the same default value. |
242 WebPreferences(); | 251 WebPreferences(); |
243 WebPreferences(const WebPreferences& other); | 252 WebPreferences(const WebPreferences& other); |
244 ~WebPreferences(); | 253 ~WebPreferences(); |
245 }; | 254 }; |
246 | 255 |
247 } // namespace content | 256 } // namespace content |
248 | 257 |
249 #endif // CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_ | 258 #endif // CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_ |
OLD | NEW |