| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ |
| 7 | 7 |
| 8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
| 9 #include <IOSurface/IOSurface.h> | 9 #include <IOSurface/IOSurface.h> |
| 10 #include <stddef.h> | 10 #include <stddef.h> |
| (...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 298 void CopyFromSurfaceToVideoFrame( | 298 void CopyFromSurfaceToVideoFrame( |
| 299 const gfx::Rect& src_rect, | 299 const gfx::Rect& src_rect, |
| 300 scoped_refptr<media::VideoFrame> target, | 300 scoped_refptr<media::VideoFrame> target, |
| 301 const base::Callback<void(const gfx::Rect&, bool)>& callback) override; | 301 const base::Callback<void(const gfx::Rect&, bool)>& callback) override; |
| 302 void BeginFrameSubscription( | 302 void BeginFrameSubscription( |
| 303 std::unique_ptr<RenderWidgetHostViewFrameSubscriber> subscriber) override; | 303 std::unique_ptr<RenderWidgetHostViewFrameSubscriber> subscriber) override; |
| 304 void EndFrameSubscription() override; | 304 void EndFrameSubscription() override; |
| 305 ui::AcceleratedWidgetMac* GetAcceleratedWidgetMac() const override; | 305 ui::AcceleratedWidgetMac* GetAcceleratedWidgetMac() const override; |
| 306 void FocusedNodeChanged(bool is_editable_node, | 306 void FocusedNodeChanged(bool is_editable_node, |
| 307 const gfx::Rect& node_bounds_in_screen) override; | 307 const gfx::Rect& node_bounds_in_screen) override; |
| 308 void OnSwapCompositorFrame(uint32_t compositor_frame_sink_id, | 308 void DidCreateNewRendererCompositorFrameSink() override; |
| 309 const cc::LocalSurfaceId& local_surface_id, | 309 void SubmitCompositorFrame(const cc::LocalSurfaceId& local_surface_id, |
| 310 cc::CompositorFrame frame) override; | 310 cc::CompositorFrame frame) override; |
| 311 void OnBeginFrameDidNotSwap(const cc::BeginFrameAck& ack) override; | 311 void OnBeginFrameDidNotSwap(const cc::BeginFrameAck& ack) override; |
| 312 void ClearCompositorFrame() override; | 312 void ClearCompositorFrame() override; |
| 313 BrowserAccessibilityManager* CreateBrowserAccessibilityManager( | 313 BrowserAccessibilityManager* CreateBrowserAccessibilityManager( |
| 314 BrowserAccessibilityDelegate* delegate, bool for_root_frame) override; | 314 BrowserAccessibilityDelegate* delegate, bool for_root_frame) override; |
| 315 gfx::Point AccessibilityOriginInScreen(const gfx::Rect& bounds) override; | 315 gfx::Point AccessibilityOriginInScreen(const gfx::Rect& bounds) override; |
| 316 gfx::AcceleratedWidget AccessibilityGetAcceleratedWidget() override; | 316 gfx::AcceleratedWidget AccessibilityGetAcceleratedWidget() override; |
| 317 | 317 |
| 318 bool HasAcceleratedSurface(const gfx::Size& desired_size) override; | 318 bool HasAcceleratedSurface(const gfx::Size& desired_size) override; |
| 319 gfx::Rect GetBoundsInRootWindow() override; | 319 gfx::Rect GetBoundsInRootWindow() override; |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 440 | 440 |
| 441 // Ensure that the display link is associated with the correct display. | 441 // Ensure that the display link is associated with the correct display. |
| 442 void UpdateDisplayLink(); | 442 void UpdateDisplayLink(); |
| 443 | 443 |
| 444 void PauseForPendingResizeOrRepaintsAndDraw(); | 444 void PauseForPendingResizeOrRepaintsAndDraw(); |
| 445 | 445 |
| 446 // BrowserCompositorMacClient implementation. | 446 // BrowserCompositorMacClient implementation. |
| 447 NSView* BrowserCompositorMacGetNSView() const override; | 447 NSView* BrowserCompositorMacGetNSView() const override; |
| 448 SkColor BrowserCompositorMacGetGutterColor(SkColor color) const override; | 448 SkColor BrowserCompositorMacGetGutterColor(SkColor color) const override; |
| 449 void BrowserCompositorMacSendReclaimCompositorResources( | 449 void BrowserCompositorMacSendReclaimCompositorResources( |
| 450 int compositor_frame_sink_id, | |
| 451 bool is_swap_ack, | 450 bool is_swap_ack, |
| 452 const cc::ReturnedResourceArray& resources) override; | 451 const cc::ReturnedResourceArray& resources) override; |
| 453 void BrowserCompositorMacSendBeginFrame( | 452 void BrowserCompositorMacSendBeginFrame( |
| 454 const cc::BeginFrameArgs& args) override; | 453 const cc::BeginFrameArgs& args) override; |
| 455 | 454 |
| 456 // AcceleratedWidgetMacNSView implementation. | 455 // AcceleratedWidgetMacNSView implementation. |
| 457 NSView* AcceleratedWidgetGetNSView() const override; | 456 NSView* AcceleratedWidgetGetNSView() const override; |
| 458 void AcceleratedWidgetGetVSyncParameters( | 457 void AcceleratedWidgetGetVSyncParameters( |
| 459 base::TimeTicks* timebase, base::TimeDelta* interval) const override; | 458 base::TimeTicks* timebase, base::TimeDelta* interval) const override; |
| 460 void AcceleratedWidgetSwapCompleted() override; | 459 void AcceleratedWidgetSwapCompleted() override; |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 555 | 554 |
| 556 // Factory used to safely scope delayed calls to ShutdownHost(). | 555 // Factory used to safely scope delayed calls to ShutdownHost(). |
| 557 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_; | 556 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_; |
| 558 | 557 |
| 559 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); | 558 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); |
| 560 }; | 559 }; |
| 561 | 560 |
| 562 } // namespace content | 561 } // namespace content |
| 563 | 562 |
| 564 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ | 563 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ |
| OLD | NEW |