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

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

Issue 860393004: Expose whether a frame is focused to the browser process (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: kenrb review comment Created 5 years, 11 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
« no previous file with comments | « no previous file | content/browser/frame_host/frame_tree_node.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_NODE_H_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_NODE_H_
6 #define CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_NODE_H_ 6 #define CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_NODE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 is_loading_ = is_loading; 105 is_loading_ = is_loading;
106 } 106 }
107 bool is_loading() const { 107 bool is_loading() const {
108 return is_loading_; 108 return is_loading_;
109 } 109 }
110 110
111 RenderFrameHostImpl* current_frame_host() const { 111 RenderFrameHostImpl* current_frame_host() const {
112 return render_manager_.current_frame_host(); 112 return render_manager_.current_frame_host();
113 } 113 }
114 114
115 bool IsDescendantOf(FrameTreeNode* other) const;
116
115 private: 117 private:
116 void set_parent(FrameTreeNode* parent) { parent_ = parent; } 118 void set_parent(FrameTreeNode* parent) { parent_ = parent; }
117 119
118 // The next available browser-global FrameTreeNode ID. 120 // The next available browser-global FrameTreeNode ID.
119 static int64 next_frame_tree_node_id_; 121 static int64 next_frame_tree_node_id_;
120 122
121 // The FrameTree that owns us. 123 // The FrameTree that owns us.
122 FrameTree* frame_tree_; // not owned. 124 FrameTree* frame_tree_; // not owned.
123 125
124 // The Navigator object responsible for managing navigations at this node 126 // The Navigator object responsible for managing navigations at this node
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 // to the FrameTreeNode, it is better to ask it about the loading status than 162 // to the FrameTreeNode, it is better to ask it about the loading status than
161 // RenderFrameHost or using a counter to balance the events out. 163 // RenderFrameHost or using a counter to balance the events out.
162 bool is_loading_; 164 bool is_loading_;
163 165
164 DISALLOW_COPY_AND_ASSIGN(FrameTreeNode); 166 DISALLOW_COPY_AND_ASSIGN(FrameTreeNode);
165 }; 167 };
166 168
167 } // namespace content 169 } // namespace content
168 170
169 #endif // CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_NODE_H_ 171 #endif // CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_NODE_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/frame_host/frame_tree_node.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698