web_view_->SmartCallback<EWebViewCallbacks::LoadCommitted>().call();
}
+
+void WebContentsDelegateEfl::DidNavigateMainFrame(const LoadCommittedDetails& details,
+ const FrameNavigateParams& params) {
+ // The condition checks whether the main frame navigated to a different page,
+ // not scrolled to a fragment inside the current page.
+ if (details.is_navigation_to_different_page())
+ web_view_->SmartCallback<EWebViewCallbacks::LoadStarted>().call();
+}
+
+void WebContentsDelegateEfl::DocumentOnLoadCompletedInMainFrame() {
+ web_view_->SmartCallback<EWebViewCallbacks::LoadFinished>().call();
+}
+
void WebContentsDelegateEfl::DidNavigateAnyFrame(RenderFrameHost* render_frame_host, const LoadCommittedDetails& details, const FrameNavigateParams& params) {
web_view_->SmartCallback<EWebViewCallbacks::ProvisionalLoadRedirect>().call();
static_cast<BrowserContextEfl*>(web_contents_.GetBrowserContext())->AddVisitedURLs(params.redirects);
}
web_view_->HandleFocusIn();
- web_view_->SmartCallback<EWebViewCallbacks::LoadFinished>().call();
}
-void WebContentsDelegateEfl::DidStartLoading(RenderViewHost* render_view_host) {
- web_view_->SmartCallback<EWebViewCallbacks::LoadStarted>().call();
-}
void WebContentsDelegateEfl::DidUpdateFaviconURL(const std::vector<FaviconURL>& candidates) {
// select and set proper favicon
const GURL& url,
ui::PageTransition transition_type) override;
+ virtual void DidNavigateMainFrame(const LoadCommittedDetails& details,
+ const FrameNavigateParams& params) override;
+ virtual void DocumentOnLoadCompletedInMainFrame() override;
+
virtual void DidNavigateAnyFrame(RenderFrameHost* render_frame_host,
const LoadCommittedDetails& details,
const FrameNavigateParams& params) override;
virtual void DidFinishLoad(RenderFrameHost* render_frame_host,
const GURL& validated_url) override;
- virtual void DidStartLoading(RenderViewHost* render_view_host) override;
virtual void DidUpdateFaviconURL(const std::vector<FaviconURL>& candidates) override;
virtual void DidDownloadFavicon(bool success, const GURL& icon_url, const SkBitmap& bitmap);