| 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 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 303 void CopyFromCompositingSurfaceToVideoFrame( | 303 void CopyFromCompositingSurfaceToVideoFrame( |
| 304 const gfx::Rect& src_subrect, | 304 const gfx::Rect& src_subrect, |
| 305 const scoped_refptr<media::VideoFrame>& target, | 305 const scoped_refptr<media::VideoFrame>& target, |
| 306 const base::Callback<void(const gfx::Rect&, bool)>& callback) override; | 306 const base::Callback<void(const gfx::Rect&, bool)>& callback) override; |
| 307 bool CanCopyToVideoFrame() const override; | 307 bool CanCopyToVideoFrame() const override; |
| 308 void BeginFrameSubscription( | 308 void BeginFrameSubscription( |
| 309 std::unique_ptr<RenderWidgetHostViewFrameSubscriber> subscriber) override; | 309 std::unique_ptr<RenderWidgetHostViewFrameSubscriber> subscriber) override; |
| 310 void EndFrameSubscription() override; | 310 void EndFrameSubscription() override; |
| 311 ui::AcceleratedWidgetMac* GetAcceleratedWidgetMac() const override; | 311 ui::AcceleratedWidgetMac* GetAcceleratedWidgetMac() const override; |
| 312 void OnSwapCompositorFrame(uint32_t output_surface_id, | 312 void OnSwapCompositorFrame(uint32_t output_surface_id, |
| 313 const cc::SurfaceId& surface_id, |
| 313 cc::CompositorFrame frame) override; | 314 cc::CompositorFrame frame) override; |
| 314 void ClearCompositorFrame() override; | 315 void ClearCompositorFrame() override; |
| 315 BrowserAccessibilityManager* CreateBrowserAccessibilityManager( | 316 BrowserAccessibilityManager* CreateBrowserAccessibilityManager( |
| 316 BrowserAccessibilityDelegate* delegate, bool for_root_frame) override; | 317 BrowserAccessibilityDelegate* delegate, bool for_root_frame) override; |
| 317 gfx::Point AccessibilityOriginInScreen(const gfx::Rect& bounds) override; | 318 gfx::Point AccessibilityOriginInScreen(const gfx::Rect& bounds) override; |
| 318 | 319 |
| 319 bool HasAcceleratedSurface(const gfx::Size& desired_size) override; | 320 bool HasAcceleratedSurface(const gfx::Size& desired_size) override; |
| 320 void GetScreenInfo(blink::WebScreenInfo* results) override; | 321 void GetScreenInfo(blink::WebScreenInfo* results) override; |
| 321 gfx::Rect GetBoundsInRootWindow() override; | 322 gfx::Rect GetBoundsInRootWindow() override; |
| 322 void LockCompositingSurface() override; | 323 void LockCompositingSurface() override; |
| (...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 538 | 539 |
| 539 // Factory used to safely scope delayed calls to ShutdownHost(). | 540 // Factory used to safely scope delayed calls to ShutdownHost(). |
| 540 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_; | 541 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_; |
| 541 | 542 |
| 542 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); | 543 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); |
| 543 }; | 544 }; |
| 544 | 545 |
| 545 } // namespace content | 546 } // namespace content |
| 546 | 547 |
| 547 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ | 548 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ |
| OLD | NEW |