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

Unified Diff: ios/web/public/web_state/web_state.h

Issue 1905393002: [ios] Added WebState::GetLoadingProgress web// API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added missing method Created 4 years, 8 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 | « ios/web/public/test/test_web_state.mm ('k') | ios/web/web_state/ui/crw_web_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/public/web_state/web_state.h
diff --git a/ios/web/public/web_state/web_state.h b/ios/web/public/web_state/web_state.h
index c8f310927adbaf94c75767293dc74f58a5c74d6c..5b1bb62096e4455c31730c3aa9dafc67426ef2da 100644
--- a/ios/web/public/web_state/web_state.h
+++ b/ios/web/public/web_state/web_state.h
@@ -151,6 +151,10 @@ class WebState : public base::SupportsUserData {
// Returns true if the current page is loading.
virtual bool IsLoading() const = 0;
+ // The fraction of the page load that has completed as a number between 0.0
+ // (nothing loaded) and 1.0 (fully loaded).
+ virtual double GetLoadingProgress() const = 0;
+
// Whether this instance is in the process of being destroyed.
virtual bool IsBeingDestroyed() const = 0;
« no previous file with comments | « ios/web/public/test/test_web_state.mm ('k') | ios/web/web_state/ui/crw_web_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698