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 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 int surface_id() const { return surface_id_; } | 197 int surface_id() const { return surface_id_; } |
198 | 198 |
199 bool empty() const { return current_size_.IsEmpty(); } | 199 bool empty() const { return current_size_.IsEmpty(); } |
200 | 200 |
201 // Called when a renderer object already been created for this host, and we | 201 // Called when a renderer object already been created for this host, and we |
202 // just need to be attached to it. Used for window.open, <select> dropdown | 202 // just need to be attached to it. Used for window.open, <select> dropdown |
203 // menus, and other times when the renderer initiates creating an object. | 203 // menus, and other times when the renderer initiates creating an object. |
204 virtual void Init(); | 204 virtual void Init(); |
205 | 205 |
206 // Tells the renderer to die and then calls Destroy(). | 206 // Tells the renderer to die and then calls Destroy(). |
207 void Shutdown(); | 207 virtual void Shutdown(); |
208 | 208 |
209 // IPC::Listener | 209 // IPC::Listener |
210 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; | 210 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; |
211 | 211 |
212 // Sends a message to the corresponding object in the renderer. | 212 // Sends a message to the corresponding object in the renderer. |
213 virtual bool Send(IPC::Message* msg) OVERRIDE; | 213 virtual bool Send(IPC::Message* msg) OVERRIDE; |
214 | 214 |
215 // Called to notify the RenderWidget that it has been hidden or restored from | 215 // Called to notify the RenderWidget that it has been hidden or restored from |
216 // having been hidden. | 216 // having been hidden. |
217 void WasHidden(); | 217 void WasHidden(); |
(...skipping 723 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
941 std::queue<base::Callback<void(bool, const SkBitmap&)> > pending_snapshots_; | 941 std::queue<base::Callback<void(bool, const SkBitmap&)> > pending_snapshots_; |
942 | 942 |
943 int64 last_input_number_; | 943 int64 last_input_number_; |
944 | 944 |
945 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 945 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
946 }; | 946 }; |
947 | 947 |
948 } // namespace content | 948 } // namespace content |
949 | 949 |
950 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 950 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
OLD | NEW |