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

Side by Side Diff: content/browser/renderer_host/render_widget_host_impl.h

Issue 501703002: Hook up loading signal to ResourceScheduler. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@zhen_visibility
Patch Set: Nit. Created 6 years, 3 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <list> 9 #include <list>
10 #include <map> 10 #include <map>
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 197
198 // Tells the renderer to die and then calls Destroy(). 198 // Tells the renderer to die and then calls Destroy().
199 virtual void Shutdown(); 199 virtual void Shutdown();
200 200
201 // IPC::Listener 201 // IPC::Listener
202 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; 202 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE;
203 203
204 // Sends a message to the corresponding object in the renderer. 204 // Sends a message to the corresponding object in the renderer.
205 virtual bool Send(IPC::Message* msg) OVERRIDE; 205 virtual bool Send(IPC::Message* msg) OVERRIDE;
206 206
207 // Indicates if the page has finished loading.
208 virtual void SetIsLoading(bool is_loading);
209
207 // Called to notify the RenderWidget that it has been hidden or restored from 210 // Called to notify the RenderWidget that it has been hidden or restored from
208 // having been hidden. 211 // having been hidden.
209 virtual void WasHidden(); 212 virtual void WasHidden();
210 virtual void WasShown(const ui::LatencyInfo& latency_info); 213 virtual void WasShown(const ui::LatencyInfo& latency_info);
211 214
212 // Returns true if the RenderWidget is hidden. 215 // Returns true if the RenderWidget is hidden.
213 bool is_hidden() const { return is_hidden_; } 216 bool is_hidden() const { return is_hidden_; }
214 217
215 // Called to notify the RenderWidget that its associated native window 218 // Called to notify the RenderWidget that its associated native window
216 // got/lost focused. 219 // got/lost focused.
217 virtual void GotFocus(); 220 virtual void GotFocus();
218 virtual void LostCapture(); 221 virtual void LostCapture();
219 222
220 // Called to notify the RenderWidget that it has lost the mouse lock. 223 // Called to notify the RenderWidget that it has lost the mouse lock.
221 virtual void LostMouseLock(); 224 virtual void LostMouseLock();
222 225
223 // Noifies the RenderWidget of the current mouse cursor visibility state. 226 // Noifies the RenderWidget of the current mouse cursor visibility state.
224 void SendCursorVisibilityState(bool is_visible); 227 void SendCursorVisibilityState(bool is_visible);
225 228
226 // Notifies the RenderWidgetHost that the View was destroyed. 229 // Notifies the RenderWidgetHost that the View was destroyed.
227 void ViewDestroyed(); 230 void ViewDestroyed();
228 231
229 // Indicates if the page has finished loading.
230 void SetIsLoading(bool is_loading);
231
232 #if defined(OS_MACOSX) 232 #if defined(OS_MACOSX)
233 // Pause for a moment to wait for pending repaint or resize messages sent to 233 // Pause for a moment to wait for pending repaint or resize messages sent to
234 // the renderer to arrive. If pending resize messages are for an old window 234 // the renderer to arrive. If pending resize messages are for an old window
235 // size, then also pump through a new resize message if there is time. 235 // size, then also pump through a new resize message if there is time.
236 void PauseForPendingResizeOrRepaints(); 236 void PauseForPendingResizeOrRepaints();
237 237
238 // Whether pausing may be useful. 238 // Whether pausing may be useful.
239 bool CanPauseForPendingResizeOrRepaints(); 239 bool CanPauseForPendingResizeOrRepaints();
240 240
241 // Wait for a surface matching the size of the widget's view, possibly 241 // Wait for a surface matching the size of the widget's view, possibly
(...skipping 601 matching lines...) Expand 10 before | Expand all | Expand 10 after
843 typedef std::map<int, 843 typedef std::map<int,
844 base::Callback<void(const unsigned char*, size_t)> > PendingSnapshotMap; 844 base::Callback<void(const unsigned char*, size_t)> > PendingSnapshotMap;
845 PendingSnapshotMap pending_browser_snapshots_; 845 PendingSnapshotMap pending_browser_snapshots_;
846 846
847 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); 847 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl);
848 }; 848 };
849 849
850 } // namespace content 850 } // namespace content
851 851
852 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 852 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_view_host_impl.cc ('k') | content/browser/renderer_host/render_widget_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698