| 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 <list> | 10 #include <list> |
| (...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 310 const gfx::Range& range) override; | 310 const gfx::Range& range) override; |
| 311 void SelectionBoundsChanged( | 311 void SelectionBoundsChanged( |
| 312 const ViewHostMsg_SelectionBounds_Params& params) override; | 312 const ViewHostMsg_SelectionBounds_Params& params) override; |
| 313 void CopyFromCompositingSurface(const gfx::Rect& src_subrect, | 313 void CopyFromCompositingSurface(const gfx::Rect& src_subrect, |
| 314 const gfx::Size& dst_size, | 314 const gfx::Size& dst_size, |
| 315 const ReadbackRequestCallback& callback, | 315 const ReadbackRequestCallback& callback, |
| 316 SkColorType preferred_color_type) override; | 316 SkColorType preferred_color_type) override; |
| 317 void CopyFromCompositingSurfaceToVideoFrame( | 317 void CopyFromCompositingSurfaceToVideoFrame( |
| 318 const gfx::Rect& src_subrect, | 318 const gfx::Rect& src_subrect, |
| 319 const scoped_refptr<media::VideoFrame>& target, | 319 const scoped_refptr<media::VideoFrame>& target, |
| 320 const base::Callback<void(bool)>& callback) override; | 320 const base::Callback<void(const gfx::Rect&, bool)>& callback) override; |
| 321 bool CanCopyToVideoFrame() const override; | 321 bool CanCopyToVideoFrame() const override; |
| 322 void BeginFrameSubscription( | 322 void BeginFrameSubscription( |
| 323 scoped_ptr<RenderWidgetHostViewFrameSubscriber> subscriber) override; | 323 scoped_ptr<RenderWidgetHostViewFrameSubscriber> subscriber) override; |
| 324 void EndFrameSubscription() override; | 324 void EndFrameSubscription() override; |
| 325 void OnSwapCompositorFrame(uint32 output_surface_id, | 325 void OnSwapCompositorFrame(uint32 output_surface_id, |
| 326 scoped_ptr<cc::CompositorFrame> frame) override; | 326 scoped_ptr<cc::CompositorFrame> frame) override; |
| 327 void ClearCompositorFrame() override; | 327 void ClearCompositorFrame() override; |
| 328 BrowserAccessibilityManager* CreateBrowserAccessibilityManager( | 328 BrowserAccessibilityManager* CreateBrowserAccessibilityManager( |
| 329 BrowserAccessibilityDelegate* delegate) override; | 329 BrowserAccessibilityDelegate* delegate) override; |
| 330 gfx::Point AccessibilityOriginInScreen(const gfx::Rect& bounds) override; | 330 gfx::Point AccessibilityOriginInScreen(const gfx::Rect& bounds) override; |
| (...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 601 | 601 |
| 602 // Factory used to safely scope delayed calls to ShutdownHost(). | 602 // Factory used to safely scope delayed calls to ShutdownHost(). |
| 603 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_; | 603 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_; |
| 604 | 604 |
| 605 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); | 605 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); |
| 606 }; | 606 }; |
| 607 | 607 |
| 608 } // namespace content | 608 } // namespace content |
| 609 | 609 |
| 610 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ | 610 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ |
| OLD | NEW |