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