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: Source/web/FrameLoaderClientImpl.cpp

Issue 156123004: Move the frame tree into the embedder. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: T -> t Created 6 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
« no previous file with comments | « Source/web/FrameLoaderClientImpl.h ('k') | Source/web/WebFrameImpl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/FrameLoaderClientImpl.cpp
diff --git a/Source/web/FrameLoaderClientImpl.cpp b/Source/web/FrameLoaderClientImpl.cpp
index 4a787c608af060e3e188bc76e6bbdd3cd407a8d1..26bddc947efb1ebec2c4eea451e452f34bc9ede9 100644
--- a/Source/web/FrameLoaderClientImpl.cpp
+++ b/Source/web/FrameLoaderClientImpl.cpp
@@ -234,6 +234,42 @@ bool FrameLoaderClientImpl::hasWebView() const
return m_webFrame->viewImpl();
}
+Frame* FrameLoaderClientImpl::parent() const
+{
+ WebFrameImpl* frame = toWebFrameImpl(m_webFrame->parent());
+ return frame ? frame->frame() : 0;
+}
+
+Frame* FrameLoaderClientImpl::top() const
+{
+ WebFrameImpl* frame = toWebFrameImpl(m_webFrame->top());
+ return frame ? frame->frame() : 0;
+}
+
+Frame* FrameLoaderClientImpl::previousSibling() const
+{
+ WebFrameImpl* frame = toWebFrameImpl(m_webFrame->previousSibling());
+ return frame ? frame->frame() : 0;
+}
+
+Frame* FrameLoaderClientImpl::nextSibling() const
+{
+ WebFrameImpl* frame = toWebFrameImpl(m_webFrame->nextSibling());
+ return frame ? frame->frame() : 0;
+}
+
+Frame* FrameLoaderClientImpl::firstChild() const
+{
+ WebFrameImpl* frame = toWebFrameImpl(m_webFrame->firstChild());
+ return frame ? frame->frame() : 0;
+}
+
+Frame* FrameLoaderClientImpl::lastChild() const
+{
+ WebFrameImpl* frame = toWebFrameImpl(m_webFrame->lastChild());
+ return frame ? frame->frame() : 0;
+}
+
void FrameLoaderClientImpl::detachedFromParent()
{
// Alert the client that the frame is being detached. This is the last
« no previous file with comments | « Source/web/FrameLoaderClientImpl.h ('k') | Source/web/WebFrameImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698