OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #pragma once | 7 #pragma once |
8 | 8 |
9 #if defined(OS_MACOSX) | 9 #if defined(OS_MACOSX) |
10 #include <OpenGL/OpenGL.h> | 10 #include <OpenGL/OpenGL.h> |
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 int32 width, | 205 int32 width, |
206 int32 height, | 206 int32 height, |
207 uint64 io_surface_identifier) = 0; | 207 uint64 io_surface_identifier) = 0; |
208 virtual void AcceleratedSurfaceSetTransportDIB( | 208 virtual void AcceleratedSurfaceSetTransportDIB( |
209 gfx::PluginWindowHandle window, | 209 gfx::PluginWindowHandle window, |
210 int32 width, | 210 int32 width, |
211 int32 height, | 211 int32 height, |
212 TransportDIB::Handle transport_dib) = 0; | 212 TransportDIB::Handle transport_dib) = 0; |
213 virtual void AcceleratedSurfaceBuffersSwapped( | 213 virtual void AcceleratedSurfaceBuffersSwapped( |
214 gfx::PluginWindowHandle window) = 0; | 214 gfx::PluginWindowHandle window) = 0; |
215 // Draws the current GPU-accelerated plug-in instances into the given context. | |
216 virtual void DrawAcceleratedSurfaceInstances(CGLContextObj context) = 0; | |
217 #endif | 215 #endif |
218 | 216 |
219 #if defined(TOOLKIT_USES_GTK) | 217 #if defined(TOOLKIT_USES_GTK) |
220 virtual void CreatePluginContainer(gfx::PluginWindowHandle id) = 0; | 218 virtual void CreatePluginContainer(gfx::PluginWindowHandle id) = 0; |
221 virtual void DestroyPluginContainer(gfx::PluginWindowHandle id) = 0; | 219 virtual void DestroyPluginContainer(gfx::PluginWindowHandle id) = 0; |
222 #endif | 220 #endif |
223 | 221 |
224 // Toggles visual muting of the render view area. This is on when a | 222 // Toggles visual muting of the render view area. This is on when a |
225 // constrained window is showing. | 223 // constrained window is showing. |
226 virtual void SetVisuallyDeemphasized(bool deemphasized) = 0; | 224 virtual void SetVisuallyDeemphasized(bool deemphasized) = 0; |
(...skipping 29 matching lines...) Expand all Loading... |
256 | 254 |
257 // A custom background to paint behind the web content. This will be tiled | 255 // A custom background to paint behind the web content. This will be tiled |
258 // horizontally. Can be null, in which case we fall back to painting white. | 256 // horizontally. Can be null, in which case we fall back to painting white. |
259 SkBitmap background_; | 257 SkBitmap background_; |
260 | 258 |
261 private: | 259 private: |
262 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostView); | 260 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostView); |
263 }; | 261 }; |
264 | 262 |
265 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ | 263 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ |
OLD | NEW |