| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <deque> | 9 #include <deque> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 // menus, and other times when the renderer initiates creating an object. | 171 // menus, and other times when the renderer initiates creating an object. |
| 172 void Init(); | 172 void Init(); |
| 173 | 173 |
| 174 // Tells the renderer to die and then calls Destroy(). | 174 // Tells the renderer to die and then calls Destroy(). |
| 175 virtual void Shutdown(); | 175 virtual void Shutdown(); |
| 176 | 176 |
| 177 // Manual RTTI FTW. We are not hosting a web page. | 177 // Manual RTTI FTW. We are not hosting a web page. |
| 178 virtual bool IsRenderView() const; | 178 virtual bool IsRenderView() const; |
| 179 | 179 |
| 180 // IPC::Channel::Listener | 180 // IPC::Channel::Listener |
| 181 virtual bool OnMessageReceived(const IPC::Message& msg); | 181 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; |
| 182 | 182 |
| 183 // Sends a message to the corresponding object in the renderer. | 183 // Sends a message to the corresponding object in the renderer. |
| 184 virtual bool Send(IPC::Message* msg); | 184 virtual bool Send(IPC::Message* msg) OVERRIDE; |
| 185 | 185 |
| 186 // Called to notify the RenderWidget that it has been hidden or restored from | 186 // Called to notify the RenderWidget that it has been hidden or restored from |
| 187 // having been hidden. | 187 // having been hidden. |
| 188 void WasHidden(); | 188 void WasHidden(); |
| 189 void WasRestored(); | 189 void WasRestored(); |
| 190 | 190 |
| 191 // Called to notify the RenderWidget that it has been resized. | 191 // Called to notify the RenderWidget that it has been resized. |
| 192 void WasResized(); | 192 void WasResized(); |
| 193 | 193 |
| 194 // Called to notify the RenderWidget that its associated native window got | 194 // Called to notify the RenderWidget that its associated native window got |
| (...skipping 574 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 769 gfx::Point last_scroll_offset_; | 769 gfx::Point last_scroll_offset_; |
| 770 | 770 |
| 771 bool pending_mouse_lock_request_; | 771 bool pending_mouse_lock_request_; |
| 772 | 772 |
| 773 base::WeakPtrFactory<RenderWidgetHost> weak_factory_; | 773 base::WeakPtrFactory<RenderWidgetHost> weak_factory_; |
| 774 | 774 |
| 775 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHost); | 775 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHost); |
| 776 }; | 776 }; |
| 777 | 777 |
| 778 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ | 778 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ |
| OLD | NEW |