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

Unified Diff: webkit/glue/webframe_impl.cc

Issue 125280: Send port-closed notification when a frame with ports unloads.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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 | « webkit/glue/webframe_impl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/webframe_impl.cc
===================================================================
--- webkit/glue/webframe_impl.cc (revision 18701)
+++ webkit/glue/webframe_impl.cc (working copy)
@@ -687,6 +687,20 @@
return NULL;
}
+WebFrame* WebFrameImpl::GetFirstChild() const {
+ if (frame_ && frame_->tree()->firstChild())
+ return FromFrame(frame_->tree()->firstChild());
+
+ return NULL;
+}
+
+WebFrame* WebFrameImpl::GetNextSibling() const {
+ if (frame_ && frame_->tree()->nextSibling())
+ return FromFrame(frame_->tree()->nextSibling());
+
+ return NULL;
+}
+
WebFrame* WebFrameImpl::GetChildFrame(const std::wstring& xpath) const {
// xpath string can represent a frame deep down the tree (across multiple
// frame DOMs).
« no previous file with comments | « webkit/glue/webframe_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698