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_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ | 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ |
6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ | 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ |
7 | 7 |
| 8 #if defined(OS_MACOSX) |
| 9 #include <OpenGL/OpenGL.h> |
| 10 #endif |
| 11 |
8 #include "app/gfx/native_widget_types.h" | 12 #include "app/gfx/native_widget_types.h" |
9 #include "base/shared_memory.h" | 13 #include "base/shared_memory.h" |
10 #include "third_party/skia/include/core/SkBitmap.h" | 14 #include "third_party/skia/include/core/SkBitmap.h" |
11 #include "webkit/glue/webplugin.h" | 15 #include "webkit/glue/webplugin.h" |
12 | 16 |
13 namespace gfx { | 17 namespace gfx { |
14 class Rect; | 18 class Rect; |
15 class Size; | 19 class Size; |
16 } | 20 } |
17 namespace IPC { | 21 namespace IPC { |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 // Set the view's active state (i.e., tint state of controls). | 163 // Set the view's active state (i.e., tint state of controls). |
160 virtual void SetActive(bool active) = 0; | 164 virtual void SetActive(bool active) = 0; |
161 | 165 |
162 // Notifies the view that its enclosing window has changed visibility | 166 // Notifies the view that its enclosing window has changed visibility |
163 // (minimized/unminimized, app hidden/unhidden, etc). | 167 // (minimized/unminimized, app hidden/unhidden, etc). |
164 // TODO(stuartmorgan): This is a temporary plugin-specific workaround for | 168 // TODO(stuartmorgan): This is a temporary plugin-specific workaround for |
165 // <http://crbug.com/34266>. Once that is fixed, this (and the corresponding | 169 // <http://crbug.com/34266>. Once that is fixed, this (and the corresponding |
166 // message and renderer-side handling) can be removed in favor of using | 170 // message and renderer-side handling) can be removed in favor of using |
167 // WasHidden/DidBecomeSelected. | 171 // WasHidden/DidBecomeSelected. |
168 virtual void SetWindowVisibility(bool visible) = 0; | 172 virtual void SetWindowVisibility(bool visible) = 0; |
| 173 |
| 174 // Methods associated with GPU plugin instances |
| 175 virtual gfx::PluginWindowHandle AllocateFakePluginWindowHandle() = 0; |
| 176 virtual void DestroyFakePluginWindowHandle( |
| 177 gfx::PluginWindowHandle window) = 0; |
| 178 virtual void GPUPluginSetIOSurface(gfx::PluginWindowHandle window, |
| 179 int32 width, |
| 180 int32 height, |
| 181 uint64 io_surface_identifier) = 0; |
| 182 virtual void GPUPluginBuffersSwapped(gfx::PluginWindowHandle window) = 0; |
| 183 // Draws the current GPU plugin instances into the given context. |
| 184 virtual void DrawGPUPluginInstances(CGLContextObj context) = 0; |
169 #endif | 185 #endif |
170 | 186 |
171 #if defined(OS_LINUX) | 187 #if defined(OS_LINUX) |
172 virtual void CreatePluginContainer(gfx::PluginWindowHandle id) = 0; | 188 virtual void CreatePluginContainer(gfx::PluginWindowHandle id) = 0; |
173 virtual void DestroyPluginContainer(gfx::PluginWindowHandle id) = 0; | 189 virtual void DestroyPluginContainer(gfx::PluginWindowHandle id) = 0; |
174 #endif | 190 #endif |
175 | 191 |
176 void set_activatable(bool activatable) { | 192 void set_activatable(bool activatable) { |
177 activatable_ = activatable; | 193 activatable_ = activatable; |
178 } | 194 } |
(...skipping 16 matching lines...) Expand all Loading... |
195 | 211 |
196 // A custom background to paint behind the web content. This will be tiled | 212 // A custom background to paint behind the web content. This will be tiled |
197 // horizontally. Can be null, in which case we fall back to painting white. | 213 // horizontally. Can be null, in which case we fall back to painting white. |
198 SkBitmap background_; | 214 SkBitmap background_; |
199 | 215 |
200 private: | 216 private: |
201 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostView); | 217 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostView); |
202 }; | 218 }; |
203 | 219 |
204 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ | 220 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ |
OLD | NEW |