| 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 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 // Sets the View of this RenderWidgetHost. | 195 // Sets the View of this RenderWidgetHost. |
| 196 void SetView(RenderWidgetHostView* view); | 196 void SetView(RenderWidgetHostView* view); |
| 197 | 197 |
| 198 int surface_id() const { return surface_id_; } | 198 int surface_id() const { return surface_id_; } |
| 199 | 199 |
| 200 bool empty() const { return current_size_.IsEmpty(); } | 200 bool empty() const { return current_size_.IsEmpty(); } |
| 201 | 201 |
| 202 // Called when a renderer object already been created for this host, and we | 202 // Called when a renderer object already been created for this host, and we |
| 203 // just need to be attached to it. Used for window.open, <select> dropdown | 203 // just need to be attached to it. Used for window.open, <select> dropdown |
| 204 // menus, and other times when the renderer initiates creating an object. | 204 // menus, and other times when the renderer initiates creating an object. |
| 205 void Init(); | 205 virtual void Init(); |
| 206 | 206 |
| 207 // Tells the renderer to die and then calls Destroy(). | 207 // Tells the renderer to die and then calls Destroy(). |
| 208 virtual void Shutdown(); | 208 virtual void Shutdown(); |
| 209 | 209 |
| 210 // IPC::Listener | 210 // IPC::Listener |
| 211 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; | 211 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; |
| 212 | 212 |
| 213 // Sends a message to the corresponding object in the renderer. | 213 // Sends a message to the corresponding object in the renderer. |
| 214 virtual bool Send(IPC::Message* msg) OVERRIDE; | 214 virtual bool Send(IPC::Message* msg) OVERRIDE; |
| 215 | 215 |
| (...skipping 703 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 919 int64 last_input_number_; | 919 int64 last_input_number_; |
| 920 | 920 |
| 921 BrowserRenderingStats rendering_stats_; | 921 BrowserRenderingStats rendering_stats_; |
| 922 | 922 |
| 923 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 923 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
| 924 }; | 924 }; |
| 925 | 925 |
| 926 } // namespace content | 926 } // namespace content |
| 927 | 927 |
| 928 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 928 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
| OLD | NEW |