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

Unified Diff: ios/web/web_state/web_state_observer_bridge.mm

Issue 1107083002: Upstream more leaf files in ios/web/web_state (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@web-resync
Patch Set: Created 5 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/web_state/js/resources/core.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/web_state/web_state_observer_bridge.mm
diff --git a/ios/web/web_state/web_state_observer_bridge.mm b/ios/web/web_state/web_state_observer_bridge.mm
index c2028fe80c45220934c64826ceeb01fae0bd7e39..fe1f6dbf258c95de3b0640ab87f5e0c45e90a6fd 100644
--- a/ios/web/web_state/web_state_observer_bridge.mm
+++ b/ios/web/web_state/web_state_observer_bridge.mm
@@ -30,6 +30,20 @@ void WebStateObserverBridge::NavigationItemCommitted(
}
}
+void WebStateObserverBridge::DidStartLoading() {
+ SEL selector = @selector(webStateDidStartLoading:);
+ if ([observer_ respondsToSelector:selector]) {
+ [observer_ webStateDidStartLoading:web_state()];
+ }
+}
+
+void WebStateObserverBridge::DidStopLoading() {
+ SEL selector = @selector(webStateDidStopLoading:);
+ if ([observer_ respondsToSelector:selector]) {
+ [observer_ webStateDidStopLoading:web_state()];
+ }
+}
+
void WebStateObserverBridge::PageLoaded(
web::PageLoadCompletionStatus load_completion_status) {
SEL selector = @selector(webStateDidLoadPage:);
« no previous file with comments | « ios/web/web_state/js/resources/core.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698