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

Unified Diff: webkit/glue/webframeloaderclient_impl.cc

Issue 19624: Add early-injection capability to user scripts. I haven't yet (Closed)
Patch Set: Use new documentElementAvailable() callback Created 11 years, 10 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
Index: webkit/glue/webframeloaderclient_impl.cc
diff --git a/webkit/glue/webframeloaderclient_impl.cc b/webkit/glue/webframeloaderclient_impl.cc
index aaf35006ad3308eba58b990009abfe8a768a4823..f8acc50c50b63a0213cfb2d106b35fa7630a96bc 100644
--- a/webkit/glue/webframeloaderclient_impl.cc
+++ b/webkit/glue/webframeloaderclient_impl.cc
@@ -101,8 +101,10 @@ void WebFrameLoaderClient::windowObjectCleared() {
}
void WebFrameLoaderClient::documentElementAvailable() {
- // TODO(aa): Implement.
- notImplemented();
+ WebViewImpl* webview = webframe_->webview_impl();
+ WebViewDelegate* d = webview->delegate();
+ if (d)
+ d->DocumentElementAvailable(webframe_);
}
void WebFrameLoaderClient::didPerformFirstNavigation() const {

Powered by Google App Engine
This is Rietveld 408576698