| 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 <list> | 9 #include <list> |
| 10 #include <map> | 10 #include <map> |
| (...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 274 size_t offset, | 274 size_t offset, |
| 275 const gfx::Range& range) OVERRIDE; | 275 const gfx::Range& range) OVERRIDE; |
| 276 virtual void SelectionBoundsChanged( | 276 virtual void SelectionBoundsChanged( |
| 277 const ViewHostMsg_SelectionBounds_Params& params) OVERRIDE; | 277 const ViewHostMsg_SelectionBounds_Params& params) OVERRIDE; |
| 278 virtual void ScrollOffsetChanged() OVERRIDE; | 278 virtual void ScrollOffsetChanged() OVERRIDE; |
| 279 virtual BackingStore* AllocBackingStore(const gfx::Size& size) OVERRIDE; | 279 virtual BackingStore* AllocBackingStore(const gfx::Size& size) OVERRIDE; |
| 280 virtual void CopyFromCompositingSurface( | 280 virtual void CopyFromCompositingSurface( |
| 281 const gfx::Rect& src_subrect, | 281 const gfx::Rect& src_subrect, |
| 282 const gfx::Size& dst_size, | 282 const gfx::Size& dst_size, |
| 283 const base::Callback<void(bool, const SkBitmap&)>& callback, | 283 const base::Callback<void(bool, const SkBitmap&)>& callback, |
| 284 bool readback_config_rgb565) OVERRIDE; | 284 SkBitmap::Config config) OVERRIDE; |
| 285 virtual void CopyFromCompositingSurfaceToVideoFrame( | 285 virtual void CopyFromCompositingSurfaceToVideoFrame( |
| 286 const gfx::Rect& src_subrect, | 286 const gfx::Rect& src_subrect, |
| 287 const scoped_refptr<media::VideoFrame>& target, | 287 const scoped_refptr<media::VideoFrame>& target, |
| 288 const base::Callback<void(bool)>& callback) OVERRIDE; | 288 const base::Callback<void(bool)>& callback) OVERRIDE; |
| 289 virtual bool CanCopyToVideoFrame() const OVERRIDE; | 289 virtual bool CanCopyToVideoFrame() const OVERRIDE; |
| 290 virtual bool CanSubscribeFrame() const OVERRIDE; | 290 virtual bool CanSubscribeFrame() const OVERRIDE; |
| 291 virtual void BeginFrameSubscription( | 291 virtual void BeginFrameSubscription( |
| 292 scoped_ptr<RenderWidgetHostViewFrameSubscriber> subscriber) OVERRIDE; | 292 scoped_ptr<RenderWidgetHostViewFrameSubscriber> subscriber) OVERRIDE; |
| 293 virtual void EndFrameSubscription() OVERRIDE; | 293 virtual void EndFrameSubscription() OVERRIDE; |
| 294 virtual void OnSwapCompositorFrame( | 294 virtual void OnSwapCompositorFrame( |
| (...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 565 scoped_ptr<RenderWidgetHostViewFrameSubscriber> frame_subscriber_; | 565 scoped_ptr<RenderWidgetHostViewFrameSubscriber> frame_subscriber_; |
| 566 | 566 |
| 567 base::WeakPtrFactory<RenderWidgetHostViewMac> | 567 base::WeakPtrFactory<RenderWidgetHostViewMac> |
| 568 software_frame_weak_ptr_factory_; | 568 software_frame_weak_ptr_factory_; |
| 569 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); | 569 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); |
| 570 }; | 570 }; |
| 571 | 571 |
| 572 } // namespace content | 572 } // namespace content |
| 573 | 573 |
| 574 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ | 574 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ |
| OLD | NEW |