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

Unified Diff: public/web/WebFrameClient.h

Issue 23506013: Make the embedder responsible for creating the WebFrame (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix lifetime on frame detach Created 7 years, 3 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 | « public/web/WebFrame.h ('k') | public/web/WebView.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/web/WebFrameClient.h
diff --git a/public/web/WebFrameClient.h b/public/web/WebFrameClient.h
index 3385145f5d5ff43967e3a65ae72c06d909ef6547..ee789e92a49f6e0ec952b32d5ffbec127b959f3c 100644
--- a/public/web/WebFrameClient.h
+++ b/public/web/WebFrameClient.h
@@ -110,7 +110,11 @@ public:
virtual void didAccessInitialDocument(WebFrame*) { }
// A child frame was created in this frame. This is called when the frame
- // is created and initialized.
+ // is created and initialized. Takes the name of the new frame, the parent
+ // frame and returns a new WebFrame. The WebFrame is considered in-use
+ // until frameDetached() is called on it.
+ virtual WebFrame* createChildFrame(WebFrame* parent, const WebString& frameName) { return 0; }
+ // FIXME: Remove when all embedders use createChildFrame().
virtual void didCreateFrame(WebFrame* parent, WebFrame* child) { }
// This frame set its opener to null, disowning it.
« no previous file with comments | « public/web/WebFrame.h ('k') | public/web/WebView.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698