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

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

Issue 1545973002: Remove the is_loading_ field from WebContentsImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 // Updates the overall load progress and notifies the WebContents. 147 // Updates the overall load progress and notifies the WebContents.
148 void UpdateLoadProgress(); 148 void UpdateLoadProgress();
149 149
150 // Returns this FrameTree's total load progress. 150 // Returns this FrameTree's total load progress.
151 double load_progress() { return load_progress_; } 151 double load_progress() { return load_progress_; }
152 152
153 // Resets the load progress on all nodes in this FrameTree. 153 // Resets the load progress on all nodes in this FrameTree.
154 void ResetLoadProgress(); 154 void ResetLoadProgress();
155 155
156 // Returns true if at least one of the nodes in this FrameTree is loading. 156 // Returns true if at least one of the nodes in this FrameTree is loading.
157 bool IsLoading(); 157 bool IsLoading() const;
158 158
159 // Set page-level focus in all SiteInstances involved in rendering 159 // Set page-level focus in all SiteInstances involved in rendering
160 // this FrameTree, not including the current main frame's 160 // this FrameTree, not including the current main frame's
161 // SiteInstance. The focus update will be sent via the main frame's proxies 161 // SiteInstance. The focus update will be sent via the main frame's proxies
162 // in those SiteInstances. 162 // in those SiteInstances.
163 void ReplicatePageFocus(bool is_focused); 163 void ReplicatePageFocus(bool is_focused);
164 164
165 // Updates page-level focus for this FrameTree in the subframe renderer 165 // Updates page-level focus for this FrameTree in the subframe renderer
166 // identified by |instance|. 166 // identified by |instance|.
167 void SetPageFocus(SiteInstance* instance, bool is_focused); 167 void SetPageFocus(SiteInstance* instance, bool is_focused);
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 212
213 // Overall load progress. 213 // Overall load progress.
214 double load_progress_; 214 double load_progress_;
215 215
216 DISALLOW_COPY_AND_ASSIGN(FrameTree); 216 DISALLOW_COPY_AND_ASSIGN(FrameTree);
217 }; 217 };
218 218
219 } // namespace content 219 } // namespace content
220 220
221 #endif // CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_H_ 221 #endif // CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698