| 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 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 304 const ReadbackRequestCallback& callback, | 304 const ReadbackRequestCallback& callback, |
| 305 SkColorType preferred_color_type) override; | 305 SkColorType preferred_color_type) override; |
| 306 void CopyFromCompositingSurfaceToVideoFrame( | 306 void CopyFromCompositingSurfaceToVideoFrame( |
| 307 const gfx::Rect& src_subrect, | 307 const gfx::Rect& src_subrect, |
| 308 const scoped_refptr<media::VideoFrame>& target, | 308 const scoped_refptr<media::VideoFrame>& target, |
| 309 const base::Callback<void(const gfx::Rect&, bool)>& callback) override; | 309 const base::Callback<void(const gfx::Rect&, bool)>& callback) override; |
| 310 bool CanCopyToVideoFrame() const override; | 310 bool CanCopyToVideoFrame() const override; |
| 311 void BeginFrameSubscription( | 311 void BeginFrameSubscription( |
| 312 std::unique_ptr<RenderWidgetHostViewFrameSubscriber> subscriber) override; | 312 std::unique_ptr<RenderWidgetHostViewFrameSubscriber> subscriber) override; |
| 313 void EndFrameSubscription() override; | 313 void EndFrameSubscription() override; |
| 314 ui::AcceleratedWidgetMac* GetAcceleratedWidgetMac() const override; |
| 314 void OnSwapCompositorFrame( | 315 void OnSwapCompositorFrame( |
| 315 uint32_t output_surface_id, | 316 uint32_t output_surface_id, |
| 316 std::unique_ptr<cc::CompositorFrame> frame) override; | 317 std::unique_ptr<cc::CompositorFrame> frame) override; |
| 317 void ClearCompositorFrame() override; | 318 void ClearCompositorFrame() override; |
| 318 BrowserAccessibilityManager* CreateBrowserAccessibilityManager( | 319 BrowserAccessibilityManager* CreateBrowserAccessibilityManager( |
| 319 BrowserAccessibilityDelegate* delegate, bool for_root_frame) override; | 320 BrowserAccessibilityDelegate* delegate, bool for_root_frame) override; |
| 320 gfx::Point AccessibilityOriginInScreen(const gfx::Rect& bounds) override; | 321 gfx::Point AccessibilityOriginInScreen(const gfx::Rect& bounds) override; |
| 321 | 322 |
| 322 bool HasAcceleratedSurface(const gfx::Size& desired_size) override; | 323 bool HasAcceleratedSurface(const gfx::Size& desired_size) override; |
| 323 void GetScreenInfo(blink::WebScreenInfo* results) override; | 324 void GetScreenInfo(blink::WebScreenInfo* results) override; |
| (...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 617 | 618 |
| 618 // Factory used to safely scope delayed calls to ShutdownHost(). | 619 // Factory used to safely scope delayed calls to ShutdownHost(). |
| 619 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_; | 620 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_; |
| 620 | 621 |
| 621 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); | 622 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); |
| 622 }; | 623 }; |
| 623 | 624 |
| 624 } // namespace content | 625 } // namespace content |
| 625 | 626 |
| 626 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ | 627 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ |
| OLD | NEW |