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

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

Issue 1820043002: Update nested OOPIF's screen rects when parent is repositioned in page. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nasko comments addressed Created 4 years, 9 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
Index: content/browser/frame_host/frame_tree.h
diff --git a/content/browser/frame_host/frame_tree.h b/content/browser/frame_host/frame_tree.h
index 3255d3bc093a35545c068df978ba50789cae2bdb..3daf95ad5339b2dd7fa72346bfef16e1e9f33b5f 100644
--- a/content/browser/frame_host/frame_tree.h
+++ b/content/browser/frame_host/frame_tree.h
@@ -75,9 +75,9 @@ class CONTENT_EXPORT FrameTree {
private:
friend class FrameTree;
- NodeRange(FrameTree* tree, FrameTreeNode* node_to_skip);
+ NodeRange(FrameTreeNode* root, FrameTreeNode* node_to_skip);
- FrameTree* const tree_;
+ FrameTreeNode* const root_;
FrameTreeNode* const node_to_skip_;
};
@@ -111,9 +111,9 @@ class CONTENT_EXPORT FrameTree {
private:
friend class FrameTree;
- ConstNodeRange(const FrameTree* tree);
+ ConstNodeRange(const FrameTreeNode* root);
- const FrameTree* const tree_;
+ const FrameTreeNode* const root_;
};
// Each FrameTreeNode will default to using the given |navigator| for
@@ -148,6 +148,10 @@ class CONTENT_EXPORT FrameTree {
// breadth-first traversal order.
NodeRange Nodes();
+ // Returns a range to iterate over all FrameTreeNodes in a subtree of the
+ // frame tree, starting from |subtree_root|.
+ NodeRange SubtreeNodes(FrameTreeNode* subtree_root);
+
// Returns a range to iterate over all FrameTreeNodes in the frame tree in
// breadth-first traversal order. All FrameTreeNodes returned will be const.
ConstNodeRange ConstNodes() const;
« no previous file with comments | « content/browser/frame_host/cross_process_frame_connector.cc ('k') | content/browser/frame_host/frame_tree.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698