OLD | NEW |
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 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 // got/lost focused. | 218 // got/lost focused. |
219 virtual void GotFocus(); | 219 virtual void GotFocus(); |
220 virtual void LostCapture(); | 220 virtual void LostCapture(); |
221 | 221 |
222 // Called to notify the RenderWidget that it has lost the mouse lock. | 222 // Called to notify the RenderWidget that it has lost the mouse lock. |
223 virtual void LostMouseLock(); | 223 virtual void LostMouseLock(); |
224 | 224 |
225 // Noifies the RenderWidget of the current mouse cursor visibility state. | 225 // Noifies the RenderWidget of the current mouse cursor visibility state. |
226 void SendCursorVisibilityState(bool is_visible); | 226 void SendCursorVisibilityState(bool is_visible); |
227 | 227 |
228 // Notifies the RenderWidgetHost that the View was destroyed. | 228 // Notifies the RenderWidgetHost that a given View was destroyed and the |
229 void ViewDestroyed(); | 229 // RenderWidgetHost should not access it. It may be that the RenderWidgetHost |
| 230 // had already severed all references to this view. |
| 231 void ViewDestroyed(RenderWidgetHostViewBase* view); |
230 | 232 |
231 #if defined(OS_MACOSX) | 233 #if defined(OS_MACOSX) |
232 // Pause for a moment to wait for pending repaint or resize messages sent to | 234 // Pause for a moment to wait for pending repaint or resize messages sent to |
233 // the renderer to arrive. If pending resize messages are for an old window | 235 // the renderer to arrive. If pending resize messages are for an old window |
234 // size, then also pump through a new resize message if there is time. | 236 // size, then also pump through a new resize message if there is time. |
235 void PauseForPendingResizeOrRepaints(); | 237 void PauseForPendingResizeOrRepaints(); |
236 | 238 |
237 // Whether pausing may be useful. | 239 // Whether pausing may be useful. |
238 bool CanPauseForPendingResizeOrRepaints(); | 240 bool CanPauseForPendingResizeOrRepaints(); |
239 | 241 |
(...skipping 599 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
839 typedef std::map<int, | 841 typedef std::map<int, |
840 base::Callback<void(const unsigned char*, size_t)> > PendingSnapshotMap; | 842 base::Callback<void(const unsigned char*, size_t)> > PendingSnapshotMap; |
841 PendingSnapshotMap pending_browser_snapshots_; | 843 PendingSnapshotMap pending_browser_snapshots_; |
842 | 844 |
843 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 845 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
844 }; | 846 }; |
845 | 847 |
846 } // namespace content | 848 } // namespace content |
847 | 849 |
848 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 850 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
OLD | NEW |