| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_RENDERER_RENDER_WIDGET_H__ | 5 #ifndef CHROME_RENDERER_RENDER_WIDGET_H__ |
| 6 #define CHROME_RENDERER_RENDER_WIDGET_H__ | 6 #define CHROME_RENDERER_RENDER_WIDGET_H__ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/gfx/native_widget_types.h" | 10 #include "base/gfx/native_widget_types.h" |
| 11 #include "base/gfx/point.h" | 11 #include "base/gfx/point.h" |
| 12 #include "base/gfx/rect.h" | 12 #include "base/gfx/rect.h" |
| 13 #include "base/gfx/size.h" | 13 #include "base/gfx/size.h" |
| 14 #include "base/ref_counted.h" | 14 #include "base/ref_counted.h" |
| 15 #include "base/shared_memory.h" | 15 #include "base/shared_memory.h" |
| 16 #include "chrome/common/ipc_channel.h" | 16 #include "chrome/common/ipc_channel.h" |
| 17 #include "skia/ext/platform_canvas.h" | 17 #include "skia/ext/platform_canvas.h" |
| 18 | 18 |
| 19 #include "webkit/glue/webwidget_delegate.h" | 19 #include "webkit/glue/webwidget_delegate.h" |
| 20 #include "webkit/glue/webcursor.h" | 20 #include "webkit/glue/webcursor.h" |
| 21 #include "webkit/glue/webplugin.h" |
| 21 | 22 |
| 22 class RenderThreadBase; | 23 class RenderThreadBase; |
| 23 struct WebPluginGeometry; | |
| 24 | 24 |
| 25 // RenderWidget provides a communication bridge between a WebWidget and | 25 // RenderWidget provides a communication bridge between a WebWidget and |
| 26 // a RenderWidgetHost, the latter of which lives in a different process. | 26 // a RenderWidgetHost, the latter of which lives in a different process. |
| 27 class RenderWidget : public IPC::Channel::Listener, | 27 class RenderWidget : public IPC::Channel::Listener, |
| 28 public IPC::Message::Sender, | 28 public IPC::Message::Sender, |
| 29 virtual public WebWidgetDelegate, | 29 virtual public WebWidgetDelegate, |
| 30 public base::RefCounted<RenderWidget> { | 30 public base::RefCounted<RenderWidget> { |
| 31 public: | 31 public: |
| 32 // Creates a new RenderWidget. The opener_id is the routing ID of the | 32 // Creates a new RenderWidget. The opener_id is the routing ID of the |
| 33 // RenderView that this widget lives inside. The render_thread is any | 33 // RenderView that this widget lives inside. The render_thread is any |
| (...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 256 // Whether the window for this RenderWidget can be activated. | 256 // Whether the window for this RenderWidget can be activated. |
| 257 bool activatable_; | 257 bool activatable_; |
| 258 | 258 |
| 259 // Holds all the needed plugin window moves for a scroll. | 259 // Holds all the needed plugin window moves for a scroll. |
| 260 std::vector<WebPluginGeometry> plugin_window_moves_; | 260 std::vector<WebPluginGeometry> plugin_window_moves_; |
| 261 | 261 |
| 262 DISALLOW_EVIL_CONSTRUCTORS(RenderWidget); | 262 DISALLOW_EVIL_CONSTRUCTORS(RenderWidget); |
| 263 }; | 263 }; |
| 264 | 264 |
| 265 #endif // CHROME_RENDERER_RENDER_WIDGET_H__ | 265 #endif // CHROME_RENDERER_RENDER_WIDGET_H__ |
| OLD | NEW |