OLD | NEW |
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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 | 139 |
140 // Returns this FrameTree's total load progress. | 140 // Returns this FrameTree's total load progress. |
141 double load_progress() { return load_progress_; } | 141 double load_progress() { return load_progress_; } |
142 | 142 |
143 // Resets the load progress on all nodes in this FrameTree. | 143 // Resets the load progress on all nodes in this FrameTree. |
144 void ResetLoadProgress(); | 144 void ResetLoadProgress(); |
145 | 145 |
146 // Returns true if at least one of the nodes in this FrameTree is loading. | 146 // Returns true if at least one of the nodes in this FrameTree is loading. |
147 bool IsLoading(); | 147 bool IsLoading(); |
148 | 148 |
| 149 // Set page-level focus in all SiteInstances involved in rendering |
| 150 // this FrameTree, not including the current main frame's |
| 151 // SiteInstance. The focus update will be sent via the main frame's proxies |
| 152 // in those SiteInstances. |
| 153 void ReplicatePageFocus(bool is_focused); |
| 154 |
149 private: | 155 private: |
150 FRIEND_TEST_ALL_PREFIXES(RenderFrameHostImplBrowserTest, RemoveFocusedFrame); | 156 FRIEND_TEST_ALL_PREFIXES(RenderFrameHostImplBrowserTest, RemoveFocusedFrame); |
151 typedef base::hash_map<int, RenderViewHostImpl*> RenderViewHostMap; | 157 typedef base::hash_map<int, RenderViewHostImpl*> RenderViewHostMap; |
152 typedef std::multimap<int, RenderViewHostImpl*> RenderViewHostMultiMap; | 158 typedef std::multimap<int, RenderViewHostImpl*> RenderViewHostMultiMap; |
153 | 159 |
154 // A variation to the public ForEach method with a difference that the subtree | 160 // A variation to the public ForEach method with a difference that the subtree |
155 // starting at |skip_this_subtree| will not be recursed into. | 161 // starting at |skip_this_subtree| will not be recursed into. |
156 void ForEach(const base::Callback<bool(FrameTreeNode*)>& on_node, | 162 void ForEach(const base::Callback<bool(FrameTreeNode*)>& on_node, |
157 FrameTreeNode* skip_this_subtree) const; | 163 FrameTreeNode* skip_this_subtree) const; |
158 | 164 |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 | 198 |
193 // Overall load progress. | 199 // Overall load progress. |
194 double load_progress_; | 200 double load_progress_; |
195 | 201 |
196 DISALLOW_COPY_AND_ASSIGN(FrameTree); | 202 DISALLOW_COPY_AND_ASSIGN(FrameTree); |
197 }; | 203 }; |
198 | 204 |
199 } // namespace content | 205 } // namespace content |
200 | 206 |
201 #endif // CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_H_ | 207 #endif // CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_H_ |
OLD | NEW |