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

Unified Diff: content/browser/frame_host/frame_tree_node.h

Issue 1500973002: This patch adds NextSibling() to FrameTreeNode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased and addressed comment. Created 4 years, 7 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 | « no previous file | content/browser/frame_host/frame_tree_node.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/frame_host/frame_tree_node.h
diff --git a/content/browser/frame_host/frame_tree_node.h b/content/browser/frame_host/frame_tree_node.h
index a8a9eedb88c3a255ca36b7418eb74607a396239d..e65e142e24bbc8a4716618951ea16abb8a1e8a99 100644
--- a/content/browser/frame_host/frame_tree_node.h
+++ b/content/browser/frame_host/frame_tree_node.h
@@ -206,6 +206,10 @@ class CONTENT_EXPORT FrameTreeNode {
// |children_|, or nullptr if there is no such node.
FrameTreeNode* PreviousSibling() const;
+ // Return the node immediately following this node in its parent's
+ // |children_|, or nullptr if there is no such node.
+ FrameTreeNode* NextSibling() const;
+
// Returns true if this node is in a loading state.
bool IsLoading() const;
@@ -276,6 +280,8 @@ class CONTENT_EXPORT FrameTreeNode {
void TraceSnapshot() const;
+ FrameTreeNode* GetSibling(int relative_offset) const;
+
// The next available browser-global FrameTreeNode ID.
static int next_frame_tree_node_id_;
« no previous file with comments | « no previous file | content/browser/frame_host/frame_tree_node.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698