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

Unified 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, 6 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/common/web_preferences.h
diff --git a/content/public/common/web_preferences.h b/content/public/common/web_preferences.h
index b30f22a945c451d3a6426fac141b758336e2f4f8..3fb1a79406f3f10d2d3f0c9794315c9ddd018197 100644
--- a/content/public/common/web_preferences.h
+++ b/content/public/common/web_preferences.h
@@ -54,6 +54,17 @@ enum ImageAnimationPolicy {
enum class ViewportStyle { DEFAULT, MOBILE, TELEVISION, LAST = TELEVISION };
+// Controls when the progress bar reports itself as complete. See
+// third_party/WebKit/Source/core/loader/ProgressTracker.cpp for most of its
+// effects.
+enum class ProgressBarCompletion {
+ LOAD_EVENT,
+ RESOURCES_BEFORE_DCL,
+ DOM_CONTENT_LOADED,
+ RESOURCES_BEFORE_DCL_AND_SAME_ORIGIN_IFRAMES,
+ LAST = RESOURCES_BEFORE_DCL_AND_SAME_ORIGIN_IFRAMES
+};
+
// The ISO 15924 script code for undetermined script aka Common. It's the
// default used on WebKit's side to get/set a font setting when no script is
// specified.
@@ -227,6 +238,7 @@ struct CONTENT_EXPORT WebPreferences {
// a top-level initial empty document and expect it to persist on navigation.
bool resue_global_for_unowned_main_frame;
bool autoplay_muted_videos_enabled;
+ ProgressBarCompletion progress_bar_completion;
#endif
// String that describes how media element autoplay behavior should be
« 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