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 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 virtual void Shutdown(); | 200 virtual void Shutdown(); |
201 | 201 |
202 // IPC::Listener | 202 // IPC::Listener |
203 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; | 203 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; |
204 | 204 |
205 // Sends a message to the corresponding object in the renderer. | 205 // Sends a message to the corresponding object in the renderer. |
206 virtual bool Send(IPC::Message* msg) OVERRIDE; | 206 virtual bool Send(IPC::Message* msg) OVERRIDE; |
207 | 207 |
208 // Called to notify the RenderWidget that it has been hidden or restored from | 208 // Called to notify the RenderWidget that it has been hidden or restored from |
209 // having been hidden. | 209 // having been hidden. |
210 void WasHidden(); | 210 virtual void WasHidden(); |
211 void WasShown(const ui::LatencyInfo& latency_info); | 211 virtual void WasShown(const ui::LatencyInfo& latency_info); |
212 | 212 |
213 // Returns true if the RenderWidget is hidden. | 213 // Returns true if the RenderWidget is hidden. |
214 bool is_hidden() const { return is_hidden_; } | 214 bool is_hidden() const { return is_hidden_; } |
215 | 215 |
216 // Called to notify the RenderWidget that its associated native window | 216 // Called to notify the RenderWidget that its associated native window |
217 // got/lost focused. | 217 // got/lost focused. |
218 virtual void GotFocus(); | 218 virtual void GotFocus(); |
219 virtual void LostCapture(); | 219 virtual void LostCapture(); |
220 | 220 |
221 // Called to notify the RenderWidget that it has lost the mouse lock. | 221 // Called to notify the RenderWidget that it has lost the mouse lock. |
(...skipping 622 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
844 typedef std::map<int, | 844 typedef std::map<int, |
845 base::Callback<void(const unsigned char*, size_t)> > PendingSnapshotMap; | 845 base::Callback<void(const unsigned char*, size_t)> > PendingSnapshotMap; |
846 PendingSnapshotMap pending_browser_snapshots_; | 846 PendingSnapshotMap pending_browser_snapshots_; |
847 | 847 |
848 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 848 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
849 }; | 849 }; |
850 | 850 |
851 } // namespace content | 851 } // namespace content |
852 | 852 |
853 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 853 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
OLD | NEW |