Index: content/browser/frame_host/frame_tree.h |
=================================================================== |
--- content/browser/frame_host/frame_tree.h (revision 255719) |
+++ content/browser/frame_host/frame_tree.h (working copy) |
@@ -88,6 +88,12 @@ |
// Convenience accessor for the main frame's RenderFrameHostImpl. |
RenderFrameHostImpl* GetMainFrame() const; |
+ // Returns the focused frame. |
+ FrameTreeNode* GetFocusedFrame(); |
+ |
+ // Sets the focused frame. |
+ void SetFocusedFrame(FrameTreeNode* node); |
+ |
// Allows a client to listen for frame removal. The listener should expect |
// to receive the RenderViewHostImpl containing the frame and the renderer- |
// specific frame routing ID of the removed frame. |
@@ -145,6 +151,8 @@ |
scoped_ptr<FrameTreeNode> root_; |
+ int64 focused_frame_tree_node_id_; |
+ |
base::Callback<void(RenderViewHostImpl*, int)> on_frame_removed_; |
DISALLOW_COPY_AND_ASSIGN(FrameTree); |