| 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 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 218 virtual void AcceleratedSurfaceSetIOSurface( | 218 virtual void AcceleratedSurfaceSetIOSurface( |
| 219 gfx::PluginWindowHandle window, | 219 gfx::PluginWindowHandle window, |
| 220 int32 width, | 220 int32 width, |
| 221 int32 height, | 221 int32 height, |
| 222 uint64 io_surface_identifier) = 0; | 222 uint64 io_surface_identifier) = 0; |
| 223 virtual void AcceleratedSurfaceSetTransportDIB( | 223 virtual void AcceleratedSurfaceSetTransportDIB( |
| 224 gfx::PluginWindowHandle window, | 224 gfx::PluginWindowHandle window, |
| 225 int32 width, | 225 int32 width, |
| 226 int32 height, | 226 int32 height, |
| 227 TransportDIB::Handle transport_dib) = 0; | 227 TransportDIB::Handle transport_dib) = 0; |
| 228 // |window| and |surface_id| indicate which accelerated surface's |
| 229 // buffers swapped. |renderer_id|, |route_id| and |
| 230 // |swap_buffers_count| are used to formulate a reply to the GPU |
| 231 // process to prevent it from getting too far ahead. They may all be |
| 232 // zero, in which case no flow control is enforced; this case is |
| 233 // currently used for accelerated plugins. |
| 228 virtual void AcceleratedSurfaceBuffersSwapped( | 234 virtual void AcceleratedSurfaceBuffersSwapped( |
| 229 gfx::PluginWindowHandle window, uint64 surface_id) = 0; | 235 gfx::PluginWindowHandle window, |
| 236 uint64 surface_id, |
| 237 int renderer_id, |
| 238 int32 route_id, |
| 239 uint64 swap_buffers_count) = 0; |
| 230 virtual void GpuRenderingStateDidChange() = 0; | 240 virtual void GpuRenderingStateDidChange() = 0; |
| 231 #endif | 241 #endif |
| 232 | 242 |
| 233 #if defined(TOOLKIT_USES_GTK) | 243 #if defined(TOOLKIT_USES_GTK) |
| 234 virtual void CreatePluginContainer(gfx::PluginWindowHandle id) = 0; | 244 virtual void CreatePluginContainer(gfx::PluginWindowHandle id) = 0; |
| 235 virtual void DestroyPluginContainer(gfx::PluginWindowHandle id) = 0; | 245 virtual void DestroyPluginContainer(gfx::PluginWindowHandle id) = 0; |
| 236 #endif | 246 #endif |
| 237 | 247 |
| 238 // Toggles visual muting of the render view area. This is on when a | 248 // Toggles visual muting of the render view area. This is on when a |
| 239 // constrained window is showing. | 249 // constrained window is showing. |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 282 | 292 |
| 283 // The current reserved area in view coordinates where contents should not be | 293 // The current reserved area in view coordinates where contents should not be |
| 284 // rendered to draw the resize corner, sidebar mini tabs etc. | 294 // rendered to draw the resize corner, sidebar mini tabs etc. |
| 285 gfx::Rect reserved_rect_; | 295 gfx::Rect reserved_rect_; |
| 286 | 296 |
| 287 private: | 297 private: |
| 288 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostView); | 298 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostView); |
| 289 }; | 299 }; |
| 290 | 300 |
| 291 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ | 301 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ |
| OLD | NEW |