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

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

Issue 183923030: Almost finish moving context_menu_node_ from RenderViewImpl to RenderFrameImpl. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: sync to get android fix Created 6 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
« no previous file with comments | « chrome/browser/ui/views/frame/browser_view.cc ('k') | content/browser/frame_host/frame_tree.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « chrome/browser/ui/views/frame/browser_view.cc ('k') | content/browser/frame_host/frame_tree.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698