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

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

Issue 1860743002: Add a flag to change when android's progress bar completes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add missing flag default Created 4 years, 5 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
« no previous file with comments | « content/public/common/content_switches.cc ('k') | content/public/common/web_preferences.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // 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 // Controls when the progress bar reports itself as complete. See
58 // third_party/WebKit/Source/core/loader/ProgressTracker.cpp for most of its
59 // effects.
60 enum class ProgressBarCompletion {
61 LOAD_EVENT,
62 RESOURCES_BEFORE_DCL,
63 DOM_CONTENT_LOADED,
64 RESOURCES_BEFORE_DCL_AND_SAME_ORIGIN_IFRAMES,
65 LAST = RESOURCES_BEFORE_DCL_AND_SAME_ORIGIN_IFRAMES
66 };
67
57 // The ISO 15924 script code for undetermined script aka Common. It's the 68 // 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 69 // default used on WebKit's side to get/set a font setting when no script is
59 // specified. 70 // specified.
60 CONTENT_EXPORT extern const char kCommonScript[]; 71 CONTENT_EXPORT extern const char kCommonScript[];
61 72
62 // A struct for managing blink's settings. 73 // A struct for managing blink's settings.
63 // 74 //
64 // Adding new values to this class probably involves updating 75 // Adding new values to this class probably involves updating
65 // blink::WebSettings, content/common/view_messages.h, browser/tab_contents/ 76 // blink::WebSettings, content/common/view_messages.h, browser/tab_contents/
66 // render_view_host_delegate_helper.cc, browser/profiles/profile.cc, 77 // render_view_host_delegate_helper.cc, browser/profiles/profile.cc,
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 bool viewport_meta_merge_content_quirk; 231 bool viewport_meta_merge_content_quirk;
221 bool viewport_meta_non_user_scalable_quirk; 232 bool viewport_meta_non_user_scalable_quirk;
222 bool viewport_meta_zero_values_quirk; 233 bool viewport_meta_zero_values_quirk;
223 bool clobber_user_agent_initial_scale_quirk; 234 bool clobber_user_agent_initial_scale_quirk;
224 bool ignore_main_frame_overflow_hidden_quirk; 235 bool ignore_main_frame_overflow_hidden_quirk;
225 bool report_screen_size_in_physical_pixels_quirk; 236 bool report_screen_size_in_physical_pixels_quirk;
226 // Used by Android_WebView only to support legacy apps that inject script into 237 // Used by Android_WebView only to support legacy apps that inject script into
227 // a top-level initial empty document and expect it to persist on navigation. 238 // a top-level initial empty document and expect it to persist on navigation.
228 bool resue_global_for_unowned_main_frame; 239 bool resue_global_for_unowned_main_frame;
229 bool autoplay_muted_videos_enabled; 240 bool autoplay_muted_videos_enabled;
241 ProgressBarCompletion progress_bar_completion;
230 #endif 242 #endif
231 243
232 // String that describes how media element autoplay behavior should be 244 // String that describes how media element autoplay behavior should be
233 // affected by experiment. 245 // affected by experiment.
234 std::string autoplay_experiment_mode; 246 std::string autoplay_experiment_mode;
235 247
236 // Default (used if the page or UA doesn't override these) values for page 248 // Default (used if the page or UA doesn't override these) values for page
237 // scale limits. These are set directly on the WebView so there's no analogue 249 // scale limits. These are set directly on the WebView so there's no analogue
238 // in WebSettings. 250 // in WebSettings.
239 float default_minimum_page_scale_factor; 251 float default_minimum_page_scale_factor;
240 float default_maximum_page_scale_factor; 252 float default_maximum_page_scale_factor;
241 253
242 // We try to keep the default values the same as the default values in 254 // We try to keep the default values the same as the default values in
243 // chrome, except for the cases where it would require lots of extra work for 255 // chrome, except for the cases where it would require lots of extra work for
244 // the embedder to use the same default value. 256 // the embedder to use the same default value.
245 WebPreferences(); 257 WebPreferences();
246 WebPreferences(const WebPreferences& other); 258 WebPreferences(const WebPreferences& other);
247 ~WebPreferences(); 259 ~WebPreferences();
248 }; 260 };
249 261
250 } // namespace content 262 } // namespace content
251 263
252 #endif // CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_ 264 #endif // CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_
OLDNEW
« no previous file with comments | « content/public/common/content_switches.cc ('k') | content/public/common/web_preferences.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698