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

Unified Diff: public/web/WebFrame.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 style 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
Index: public/web/WebFrame.h
diff --git a/public/web/WebFrame.h b/public/web/WebFrame.h
index 211def68aed06bc968232765d3d6b6d4962f7ed1..891328fa563bc14f1dd7c4d4549f407999d26d32 100644
--- a/public/web/WebFrame.h
+++ b/public/web/WebFrame.h
@@ -59,6 +59,7 @@ class WebDataSource;
class WebDocument;
class WebElement;
class WebFormElement;
+class WebFrameClient;
class WebHistoryItem;
class WebInputElement;
class WebPerformance;
@@ -92,6 +93,13 @@ public:
};
typedef unsigned RenderAsTextControls;
+ // Creates a WebView that is NOT yet initialized. You will need to
+ // call initializeFrame to finish the initialization. It is valid
+ // to pass null client pointers.
+ //
+ // TODO(ajwong): Check comment about initialization.
+ WEBKIT_EXPORT static WebFrame* create(WebFrameClient*);
+
// Returns the number of live WebFrame objects, used for leak checking.
WEBKIT_EXPORT static int instanceCount();

Powered by Google App Engine
This is Rietveld 408576698