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

Unified Diff: Source/web/WebRemoteFrameImpl.h

Issue 334483002: Add Blink APIs for frame tree mirroring. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Devirtualize initializeAsMainFrame Created 6 years, 6 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 | « Source/web/WebLocalFrameImpl.cpp ('k') | Source/web/WebRemoteFrameImpl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebRemoteFrameImpl.h
diff --git a/Source/web/WebRemoteFrameImpl.h b/Source/web/WebRemoteFrameImpl.h
index ffa739dc372d10270f4e754ac4c2f4115aa3fca5..8edaad7390f2d96f2efe434de517b88428030613 100644
--- a/Source/web/WebRemoteFrameImpl.h
+++ b/Source/web/WebRemoteFrameImpl.h
@@ -7,9 +7,15 @@
#include "public/web/WebRemoteFrame.h"
#include "web/RemoteFrameClient.h"
+#include "wtf/HashMap.h"
+#include "wtf/OwnPtr.h"
#include "wtf/RefCounted.h"
-namespace WebCore { class RemoteFrame; }
+namespace WebCore {
+class FrameOwner;
+class Page;
+class RemoteFrame;
+}
namespace blink {
@@ -43,6 +49,7 @@ public:
virtual bool hasHorizontalScrollbar() const OVERRIDE;
virtual bool hasVerticalScrollbar() const OVERRIDE;
virtual WebView* view() const OVERRIDE;
+ virtual void removeChild(WebFrame*) OVERRIDE;
virtual WebFrame* traversePrevious(bool wrap) const OVERRIDE;
virtual WebFrame* traverseNext(bool wrap) const OVERRIDE;
virtual WebFrame* findChildByName(const WebString&) const OVERRIDE;
@@ -170,16 +177,23 @@ public:
virtual bool selectionStartHasSpellingMarkerFor(int from, int length) const OVERRIDE;
virtual WebString layerTreeAsText(bool showDebugInfo = false) const OVERRIDE;
+ virtual WebLocalFrame* createLocalChild(const WebString& name, WebFrameClient*) OVERRIDE;
+ virtual WebRemoteFrame* createRemoteChild(const WebString& name, WebFrameClient*) OVERRIDE;
+
+ void initializeAsMainFrame(WebCore::Page*);
+
+ void setWebCoreFrame(PassRefPtr<WebCore::RemoteFrame>);
WebCore::RemoteFrame* frame() const { return m_frame.get(); }
private:
RemoteFrameClient m_frameClient;
RefPtr<WebCore::RemoteFrame> m_frame;
+
+ HashMap<WebFrame*, OwnPtr<WebCore::FrameOwner> > m_ownersForChildren;
};
DEFINE_TYPE_CASTS(WebRemoteFrameImpl, WebFrame, frame, frame->isWebRemoteFrame(), frame.isWebRemoteFrame());
-
} // namespace blink
#endif // WebRemoteFrameImpl_h
« no previous file with comments | « Source/web/WebLocalFrameImpl.cpp ('k') | Source/web/WebRemoteFrameImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698