Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(886)

Side by Side Diff: chrome/browser/renderer_host/render_widget_host_view_mac.h

Issue 3067026: Initial port of accelerated compositor to Mac OS X 10.6. Reused... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 id trackingRectOwner_; // (not retained) 55 id trackingRectOwner_; // (not retained)
56 void *trackingRectUserData_; 56 void *trackingRectUserData_;
57 NSTrackingRectTag lastToolTipTag_; 57 NSTrackingRectTag lastToolTipTag_;
58 scoped_nsobject<NSString> toolTip_; 58 scoped_nsobject<NSString> toolTip_;
59 59
60 // Is YES if there was a mouse-down as yet unbalanced with a mouse-up. 60 // Is YES if there was a mouse-down as yet unbalanced with a mouse-up.
61 BOOL hasOpenMouseDown_; 61 BOOL hasOpenMouseDown_;
62 62
63 NSWindow* lastWindow_; // weak 63 NSWindow* lastWindow_; // weak
64 64
65 // The Core Animation layer, if any, hosting the accelerated plugins' output. 65 // The Core Animation layer, if any, hosting the accelerated
66 // plugins' and accelerated compositor's output.
66 scoped_nsobject<CALayer> acceleratedPluginLayer_; 67 scoped_nsobject<CALayer> acceleratedPluginLayer_;
67 68
68 // Variables used by our implementaion of the NSTextInput protocol. 69 // Variables used by our implementaion of the NSTextInput protocol.
69 // An input method of Mac calls the methods of this protocol not only to 70 // An input method of Mac calls the methods of this protocol not only to
70 // notify an application of its status, but also to retrieve the status of 71 // notify an application of its status, but also to retrieve the status of
71 // the application. That is, an application cannot control an input method 72 // the application. That is, an application cannot control an input method
72 // directly. 73 // directly.
73 // This object keeps the status of a composition of the renderer and returns 74 // This object keeps the status of a composition of the renderer and returns
74 // it when an input method asks for it. 75 // it when an input method asks for it.
75 // We need to implement Objective-C methods for the NSTextInput protocol. On 76 // We need to implement Objective-C methods for the NSTextInput protocol. On
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 virtual gfx::Rect GetRootWindowRect(); 221 virtual gfx::Rect GetRootWindowRect();
221 virtual void SetActive(bool active); 222 virtual void SetActive(bool active);
222 virtual void SetWindowVisibility(bool visible); 223 virtual void SetWindowVisibility(bool visible);
223 virtual void WindowFrameChanged(); 224 virtual void WindowFrameChanged();
224 virtual void SetBackground(const SkBitmap& background); 225 virtual void SetBackground(const SkBitmap& background);
225 virtual bool ContainsNativeView(gfx::NativeView native_view) const; 226 virtual bool ContainsNativeView(gfx::NativeView native_view) const;
226 virtual void UpdateAccessibilityTree( 227 virtual void UpdateAccessibilityTree(
227 const webkit_glue::WebAccessibility& tree); 228 const webkit_glue::WebAccessibility& tree);
228 virtual void OnAccessibilityFocusChange(int acc_obj_id); 229 virtual void OnAccessibilityFocusChange(int acc_obj_id);
229 virtual void OnAccessibilityObjectStateChange(int acc_obj_id); 230 virtual void OnAccessibilityObjectStateChange(int acc_obj_id);
230 // Methods associated with GPU-accelerated plug-in instances. 231 // Methods associated with GPU-accelerated plug-in instances and the
231 virtual gfx::PluginWindowHandle AllocateFakePluginWindowHandle(bool opaque); 232 // accelerated compositor.
233 virtual gfx::PluginWindowHandle AllocateFakePluginWindowHandle(bool opaque,
234 bool root);
232 virtual void DestroyFakePluginWindowHandle(gfx::PluginWindowHandle window); 235 virtual void DestroyFakePluginWindowHandle(gfx::PluginWindowHandle window);
233 virtual void AcceleratedSurfaceSetIOSurface(gfx::PluginWindowHandle window, 236 virtual void AcceleratedSurfaceSetIOSurface(gfx::PluginWindowHandle window,
234 int32 width, 237 int32 width,
235 int32 height, 238 int32 height,
236 uint64 io_surface_identifier); 239 uint64 io_surface_identifier);
237 virtual void AcceleratedSurfaceSetTransportDIB( 240 virtual void AcceleratedSurfaceSetTransportDIB(
238 gfx::PluginWindowHandle window, 241 gfx::PluginWindowHandle window,
239 int32 width, 242 int32 width,
240 int32 height, 243 int32 height,
241 TransportDIB::Handle transport_dib); 244 TransportDIB::Handle transport_dib);
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 // Helper class for managing instances of accelerated plug-ins. 330 // Helper class for managing instances of accelerated plug-ins.
328 AcceleratedSurfaceContainerManagerMac plugin_container_manager_; 331 AcceleratedSurfaceContainerManagerMac plugin_container_manager_;
329 332
330 // Whether or not web accessibility is enabled. 333 // Whether or not web accessibility is enabled.
331 bool renderer_accessible_; 334 bool renderer_accessible_;
332 335
333 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); 336 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac);
334 }; 337 };
335 338
336 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ 339 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/render_widget_host_view.h ('k') | chrome/browser/renderer_host/render_widget_host_view_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698