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

Unified Diff: webkit/glue/webview_delegate.h

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/webview_delegate.h
diff --git a/webkit/glue/webview_delegate.h b/webkit/glue/webview_delegate.h
index 2fe23512fed258bf13d6b8f8d3e5527a6cccc2b1..892c25e7d18e39fc652f932839ac1803d6e4570f 100644
--- a/webkit/glue/webview_delegate.h
+++ b/webkit/glue/webview_delegate.h
@@ -198,6 +198,12 @@ class WebViewDelegate : virtual public WebWidgetDelegate {
virtual void WindowObjectCleared(WebFrame* webframe) {
}
+ // Notifies that the documentElement for the document in a webframe has been
+ // created. This is called before anything else is parsed or executed for the
+ // document.
+ virtual void DocumentElementAvailable(WebFrame* webframe) {
+ }
+
// PolicyDelegate ----------------------------------------------------------
// This method is called to notify the delegate, and let it modify a
« chrome/common/extensions/user_script_unittest.cc ('K') | « webkit/glue/webframeloaderclient_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698