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

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: content_unittests compile fix Created 5 years, 1 month 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
« no previous file with comments | « content/browser/bad_message.h ('k') | content/browser/frame_host/frame_tree.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 // if |on_node| is just doing a search over the tree. The iteration proceeds 71 // if |on_node| is just doing a search over the tree. The iteration proceeds
72 // top-down and visits a node before adding its children to the queue, making 72 // top-down and visits a node before adding its children to the queue, making
73 // it safe to remove children during the callback. 73 // it safe to remove children during the callback.
74 void ForEach(const base::Callback<bool(FrameTreeNode*)>& on_node) const; 74 void ForEach(const base::Callback<bool(FrameTreeNode*)>& on_node) const;
75 75
76 // Frame tree manipulation routines. 76 // Frame tree manipulation routines.
77 // |process_id| is required to disambiguate |new_routing_id|, and it must 77 // |process_id| is required to disambiguate |new_routing_id|, and it must
78 // match the process of the |parent| node. Otherwise this method returns 78 // match the process of the |parent| node. Otherwise this method returns
79 // nullptr. Passing MSG_ROUTING_NONE for |new_routing_id| will allocate a new 79 // nullptr. Passing MSG_ROUTING_NONE for |new_routing_id| will allocate a new
80 // routing ID for the new frame. 80 // routing ID for the new frame.
81 RenderFrameHostImpl* AddFrame(FrameTreeNode* parent, 81 RenderFrameHostImpl* AddFrame(
82 int process_id, 82 FrameTreeNode* parent,
83 int new_routing_id, 83 int process_id,
84 blink::WebTreeScopeType scope, 84 int new_routing_id,
85 const std::string& frame_name, 85 blink::WebTreeScopeType scope,
86 blink::WebSandboxFlags sandbox_flags); 86 const std::string& frame_name,
87 blink::WebSandboxFlags sandbox_flags,
88 const blink::WebFrameOwnerProperties& frame_owner_properties);
87 void RemoveFrame(FrameTreeNode* child); 89 void RemoveFrame(FrameTreeNode* child);
88 90
89 // This method walks the entire frame tree and creates a RenderFrameProxyHost 91 // This method walks the entire frame tree and creates a RenderFrameProxyHost
90 // for the given |site_instance| in each node except the |source| one -- 92 // for the given |site_instance| in each node except the |source| one --
91 // the source will have a RenderFrameHost. |source| may be null if there is 93 // the source will have a RenderFrameHost. |source| may be null if there is
92 // no node navigating in this frame tree (such as when this is called 94 // no node navigating in this frame tree (such as when this is called
93 // for an opener's frame tree), in which case no nodes are skipped for 95 // for an opener's frame tree), in which case no nodes are skipped for
94 // RenderFrameProxyHost creation. 96 // RenderFrameProxyHost creation.
95 void CreateProxiesForSiteInstance(FrameTreeNode* source, 97 void CreateProxiesForSiteInstance(FrameTreeNode* source,
96 SiteInstance* site_instance); 98 SiteInstance* site_instance);
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 204
203 // Overall load progress. 205 // Overall load progress.
204 double load_progress_; 206 double load_progress_;
205 207
206 DISALLOW_COPY_AND_ASSIGN(FrameTree); 208 DISALLOW_COPY_AND_ASSIGN(FrameTree);
207 }; 209 };
208 210
209 } // namespace content 211 } // namespace content
210 212
211 #endif // CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_H_ 213 #endif // CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_H_
OLDNEW
« no previous file with comments | « content/browser/bad_message.h ('k') | content/browser/frame_host/frame_tree.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698