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

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: Created 5 years 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: 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 d678c9a53903e24403b6dbbf84c81ab9a125aa8a..0595dd624e0036ebaca3781691641aadf9f3c78d 100644
--- a/content/browser/frame_host/frame_tree_node.h
+++ b/content/browser/frame_host/frame_tree_node.h
@@ -177,6 +177,10 @@ class CONTENT_EXPORT FrameTreeNode {
// |children_|, or nullptr if there is no such node.
FrameTreeNode* PreviousSibling() const;
+ // Return the node immediately after 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;
@@ -233,6 +237,8 @@ class CONTENT_EXPORT FrameTreeNode {
private:
class OpenerDestroyedObserver;
+ FrameTreeNode* GetSibling(int relative_offset) const;
+
void set_parent(FrameTreeNode* parent) { parent_ = parent; }
// The next available browser-global FrameTreeNode ID.
« no previous file with comments | « no previous file | content/browser/frame_host/frame_tree_node.cc » ('j') | content/browser/frame_host/frame_tree_node.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698