| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ | 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ |
| 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ | 6 #define CHROME_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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 // menus, and other times when the renderer initiates creating an object. | 174 // menus, and other times when the renderer initiates creating an object. |
| 175 void Init(); | 175 void Init(); |
| 176 | 176 |
| 177 // Tells the renderer to die and then calls Destroy(). | 177 // Tells the renderer to die and then calls Destroy(). |
| 178 virtual void Shutdown(); | 178 virtual void Shutdown(); |
| 179 | 179 |
| 180 // Manual RTTI FTW. We are not hosting a web page. | 180 // Manual RTTI FTW. We are not hosting a web page. |
| 181 virtual bool IsRenderView() const; | 181 virtual bool IsRenderView() const; |
| 182 | 182 |
| 183 // IPC::Channel::Listener | 183 // IPC::Channel::Listener |
| 184 virtual void OnMessageReceived(const IPC::Message& msg); | 184 virtual bool OnMessageReceived(const IPC::Message& msg); |
| 185 | 185 |
| 186 // Sends a message to the corresponding object in the renderer. | 186 // Sends a message to the corresponding object in the renderer. |
| 187 virtual bool Send(IPC::Message* msg); | 187 virtual bool Send(IPC::Message* msg); |
| 188 | 188 |
| 189 // Called to notify the RenderWidget that it has been hidden or restored from | 189 // Called to notify the RenderWidget that it has been hidden or restored from |
| 190 // having been hidden. | 190 // having been hidden. |
| 191 void WasHidden(); | 191 void WasHidden(); |
| 192 void WasRestored(); | 192 void WasRestored(); |
| 193 | 193 |
| 194 // Called to notify the RenderWidget that it has been resized. | 194 // Called to notify the RenderWidget that it has been resized. |
| (...skipping 489 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 684 // switching back to the original tab, because the content may already be | 684 // switching back to the original tab, because the content may already be |
| 685 // changed. | 685 // changed. |
| 686 bool suppress_next_char_events_; | 686 bool suppress_next_char_events_; |
| 687 | 687 |
| 688 std::vector<gfx::PluginWindowHandle> deferred_plugin_handles_; | 688 std::vector<gfx::PluginWindowHandle> deferred_plugin_handles_; |
| 689 | 689 |
| 690 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHost); | 690 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHost); |
| 691 }; | 691 }; |
| 692 | 692 |
| 693 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ | 693 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ |
| OLD | NEW |