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