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 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 // <http://crbug.com/34266>. Once that is fixed, this (and the corresponding | 190 // <http://crbug.com/34266>. Once that is fixed, this (and the corresponding |
191 // message and renderer-side handling) can be removed in favor of using | 191 // message and renderer-side handling) can be removed in favor of using |
192 // WasHidden/DidBecomeSelected. | 192 // WasHidden/DidBecomeSelected. |
193 virtual void SetWindowVisibility(bool visible) = 0; | 193 virtual void SetWindowVisibility(bool visible) = 0; |
194 | 194 |
195 // Informs the view that its containing window's frame changed. | 195 // Informs the view that its containing window's frame changed. |
196 virtual void WindowFrameChanged() = 0; | 196 virtual void WindowFrameChanged() = 0; |
197 | 197 |
198 // Methods associated with GPU-accelerated plug-in instances. | 198 // Methods associated with GPU-accelerated plug-in instances. |
199 virtual gfx::PluginWindowHandle AllocateFakePluginWindowHandle( | 199 virtual gfx::PluginWindowHandle AllocateFakePluginWindowHandle( |
200 bool opaque) = 0; | 200 bool opaque, bool root) = 0; |
201 virtual void DestroyFakePluginWindowHandle( | 201 virtual void DestroyFakePluginWindowHandle( |
202 gfx::PluginWindowHandle window) = 0; | 202 gfx::PluginWindowHandle window) = 0; |
203 virtual void AcceleratedSurfaceSetIOSurface( | 203 virtual void AcceleratedSurfaceSetIOSurface( |
204 gfx::PluginWindowHandle window, | 204 gfx::PluginWindowHandle window, |
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, |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
256 | 256 |
257 // A custom background to paint behind the web content. This will be tiled | 257 // 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. | 258 // horizontally. Can be null, in which case we fall back to painting white. |
259 SkBitmap background_; | 259 SkBitmap background_; |
260 | 260 |
261 private: | 261 private: |
262 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostView); | 262 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostView); |
263 }; | 263 }; |
264 | 264 |
265 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ | 265 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ |
OLD | NEW |