| 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_MAC_H_ | 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ |
| 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ | 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #import <Cocoa/Cocoa.h> | 9 #import <Cocoa/Cocoa.h> |
| 10 #import <QuartzCore/CALayer.h> | 10 #import <QuartzCore/CALayer.h> |
| (...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 virtual void WindowFrameChanged(); | 217 virtual void WindowFrameChanged(); |
| 218 virtual void SetBackground(const SkBitmap& background); | 218 virtual void SetBackground(const SkBitmap& background); |
| 219 virtual bool ContainsNativeView(gfx::NativeView native_view) const; | 219 virtual bool ContainsNativeView(gfx::NativeView native_view) const; |
| 220 virtual void UpdateAccessibilityTree( | 220 virtual void UpdateAccessibilityTree( |
| 221 const webkit_glue::WebAccessibility& tree); | 221 const webkit_glue::WebAccessibility& tree); |
| 222 // Methods associated with GPU-accelerated plug-in instances and the | 222 // Methods associated with GPU-accelerated plug-in instances and the |
| 223 // accelerated compositor. | 223 // accelerated compositor. |
| 224 virtual gfx::PluginWindowHandle AllocateFakePluginWindowHandle(bool opaque, | 224 virtual gfx::PluginWindowHandle AllocateFakePluginWindowHandle(bool opaque, |
| 225 bool root); | 225 bool root); |
| 226 virtual void DestroyFakePluginWindowHandle(gfx::PluginWindowHandle window); | 226 virtual void DestroyFakePluginWindowHandle(gfx::PluginWindowHandle window); |
| 227 |
| 228 // Helper to do the actual cleanup after a plugin handle has been destroyed. |
| 229 // Required because DestroyFakePluginWindowHandle() isn't always called for |
| 230 // all handles (it's e.g. not called on navigation, when the RWHVMac gets |
| 231 // destroyed anyway). |
| 232 void DeallocFakePluginWindowHandle(gfx::PluginWindowHandle window); |
| 233 |
| 227 virtual void AcceleratedSurfaceSetIOSurface(gfx::PluginWindowHandle window, | 234 virtual void AcceleratedSurfaceSetIOSurface(gfx::PluginWindowHandle window, |
| 228 int32 width, | 235 int32 width, |
| 229 int32 height, | 236 int32 height, |
| 230 uint64 io_surface_identifier); | 237 uint64 io_surface_identifier); |
| 231 virtual void AcceleratedSurfaceSetTransportDIB( | 238 virtual void AcceleratedSurfaceSetTransportDIB( |
| 232 gfx::PluginWindowHandle window, | 239 gfx::PluginWindowHandle window, |
| 233 int32 width, | 240 int32 width, |
| 234 int32 height, | 241 int32 height, |
| 235 TransportDIB::Handle transport_dib); | 242 TransportDIB::Handle transport_dib); |
| 236 virtual void AcceleratedSurfaceBuffersSwapped(gfx::PluginWindowHandle window); | 243 virtual void AcceleratedSurfaceBuffersSwapped(gfx::PluginWindowHandle window); |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 337 // Whether or not web accessibility is enabled. | 344 // Whether or not web accessibility is enabled. |
| 338 bool renderer_accessible_; | 345 bool renderer_accessible_; |
| 339 | 346 |
| 340 // selected text on the renderer. | 347 // selected text on the renderer. |
| 341 std::string selected_text_; | 348 std::string selected_text_; |
| 342 | 349 |
| 343 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); | 350 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); |
| 344 }; | 351 }; |
| 345 | 352 |
| 346 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ | 353 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ |
| OLD | NEW |