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

Side by Side Diff: content/browser/frame_host/frame_tree.h

Issue 1307013004: Propagate scrolling/marginwidth/marginheight property values to child frame. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: consolidate render->browser ipcs into one Created 5 years, 3 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_H_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_H_
6 #define CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_H_ 6 #define CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 // if |on_node| is just doing a search over the tree. The iteration proceeds 70 // if |on_node| is just doing a search over the tree. The iteration proceeds
71 // top-down and visits a node before adding its children to the queue, making 71 // top-down and visits a node before adding its children to the queue, making
72 // it safe to remove children during the callback. 72 // it safe to remove children during the callback.
73 void ForEach(const base::Callback<bool(FrameTreeNode*)>& on_node) const; 73 void ForEach(const base::Callback<bool(FrameTreeNode*)>& on_node) const;
74 74
75 // Frame tree manipulation routines. 75 // Frame tree manipulation routines.
76 // |process_id| is required to disambiguate |new_routing_id|, and it must 76 // |process_id| is required to disambiguate |new_routing_id|, and it must
77 // match the process of the |parent| node. Otherwise this method returns 77 // match the process of the |parent| node. Otherwise this method returns
78 // nullptr. Passing MSG_ROUTING_NONE for |new_routing_id| will allocate a new 78 // nullptr. Passing MSG_ROUTING_NONE for |new_routing_id| will allocate a new
79 // routing ID for the new frame. 79 // routing ID for the new frame.
80 RenderFrameHostImpl* AddFrame(FrameTreeNode* parent, 80 RenderFrameHostImpl* AddFrame(
81 int process_id, 81 FrameTreeNode* parent,
82 int new_routing_id, 82 int process_id,
83 blink::WebTreeScopeType scope, 83 int new_routing_id,
84 const std::string& frame_name, 84 blink::WebTreeScopeType scope,
85 blink::WebSandboxFlags sandbox_flags); 85 const std::string& frame_name,
86 blink::WebSandboxFlags sandbox_flags,
87 const blink::WebFrameOwnerProperties& frame_owner_properties);
86 void RemoveFrame(FrameTreeNode* child); 88 void RemoveFrame(FrameTreeNode* child);
87 89
88 // This method walks the entire frame tree and creates a RenderFrameProxyHost 90 // This method walks the entire frame tree and creates a RenderFrameProxyHost
89 // for the given |site_instance| in each node except the |source| one -- 91 // for the given |site_instance| in each node except the |source| one --
90 // the source will have a RenderFrameHost. |source| may be null if there is 92 // the source will have a RenderFrameHost. |source| may be null if there is
91 // no node navigating in this frame tree (such as when this is called 93 // no node navigating in this frame tree (such as when this is called
92 // for an opener's frame tree), in which case no nodes are skipped for 94 // for an opener's frame tree), in which case no nodes are skipped for
93 // RenderFrameProxyHost creation. 95 // RenderFrameProxyHost creation.
94 void CreateProxiesForSiteInstance(FrameTreeNode* source, 96 void CreateProxiesForSiteInstance(FrameTreeNode* source,
95 SiteInstance* site_instance); 97 SiteInstance* site_instance);
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 189
188 // Overall load progress. 190 // Overall load progress.
189 double load_progress_; 191 double load_progress_;
190 192
191 DISALLOW_COPY_AND_ASSIGN(FrameTree); 193 DISALLOW_COPY_AND_ASSIGN(FrameTree);
192 }; 194 };
193 195
194 } // namespace content 196 } // namespace content
195 197
196 #endif // CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_H_ 198 #endif // CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698