| 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/IOSurfaceAPI.h> | 9 #include <IOSurface/IOSurfaceAPI.h> |
| 10 #include <list> | 10 #include <list> |
| (...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 289 virtual void SelectionChanged(const base::string16& text, | 289 virtual void SelectionChanged(const base::string16& text, |
| 290 size_t offset, | 290 size_t offset, |
| 291 const gfx::Range& range) OVERRIDE; | 291 const gfx::Range& range) OVERRIDE; |
| 292 virtual void SelectionBoundsChanged( | 292 virtual void SelectionBoundsChanged( |
| 293 const ViewHostMsg_SelectionBounds_Params& params) OVERRIDE; | 293 const ViewHostMsg_SelectionBounds_Params& params) OVERRIDE; |
| 294 virtual void ScrollOffsetChanged() OVERRIDE; | 294 virtual void ScrollOffsetChanged() OVERRIDE; |
| 295 virtual void CopyFromCompositingSurface( | 295 virtual void CopyFromCompositingSurface( |
| 296 const gfx::Rect& src_subrect, | 296 const gfx::Rect& src_subrect, |
| 297 const gfx::Size& dst_size, | 297 const gfx::Size& dst_size, |
| 298 const base::Callback<void(bool, const SkBitmap&)>& callback, | 298 const base::Callback<void(bool, const SkBitmap&)>& callback, |
| 299 SkBitmap::Config config) OVERRIDE; | 299 SkColorType color_type) OVERRIDE; |
| 300 virtual void CopyFromCompositingSurfaceToVideoFrame( | 300 virtual void CopyFromCompositingSurfaceToVideoFrame( |
| 301 const gfx::Rect& src_subrect, | 301 const gfx::Rect& src_subrect, |
| 302 const scoped_refptr<media::VideoFrame>& target, | 302 const scoped_refptr<media::VideoFrame>& target, |
| 303 const base::Callback<void(bool)>& callback) OVERRIDE; | 303 const base::Callback<void(bool)>& callback) OVERRIDE; |
| 304 virtual bool CanCopyToVideoFrame() const OVERRIDE; | 304 virtual bool CanCopyToVideoFrame() const OVERRIDE; |
| 305 virtual bool CanSubscribeFrame() const OVERRIDE; | 305 virtual bool CanSubscribeFrame() const OVERRIDE; |
| 306 virtual void BeginFrameSubscription( | 306 virtual void BeginFrameSubscription( |
| 307 scoped_ptr<RenderWidgetHostViewFrameSubscriber> subscriber) OVERRIDE; | 307 scoped_ptr<RenderWidgetHostViewFrameSubscriber> subscriber) OVERRIDE; |
| 308 virtual void EndFrameSubscription() OVERRIDE; | 308 virtual void EndFrameSubscription() OVERRIDE; |
| 309 virtual void OnSwapCompositorFrame( | 309 virtual void OnSwapCompositorFrame( |
| (...skipping 27 matching lines...) Expand all Loading... |
| 337 InputEventAckState ack_result) OVERRIDE; | 337 InputEventAckState ack_result) OVERRIDE; |
| 338 | 338 |
| 339 // IPC::Sender implementation. | 339 // IPC::Sender implementation. |
| 340 virtual bool Send(IPC::Message* message) OVERRIDE; | 340 virtual bool Send(IPC::Message* message) OVERRIDE; |
| 341 | 341 |
| 342 // SoftwareFrameManagerClient implementation: | 342 // SoftwareFrameManagerClient implementation: |
| 343 virtual void SoftwareFrameWasFreed( | 343 virtual void SoftwareFrameWasFreed( |
| 344 uint32 output_surface_id, unsigned frame_id) OVERRIDE; | 344 uint32 output_surface_id, unsigned frame_id) OVERRIDE; |
| 345 virtual void ReleaseReferencesToSoftwareFrame() OVERRIDE; | 345 virtual void ReleaseReferencesToSoftwareFrame() OVERRIDE; |
| 346 | 346 |
| 347 virtual SkBitmap::Config PreferredReadbackFormat() OVERRIDE; | 347 virtual SkColorType PreferredReadbackFormat() OVERRIDE; |
| 348 | 348 |
| 349 // CompositingIOSurfaceLayerClient implementation. | 349 // CompositingIOSurfaceLayerClient implementation. |
| 350 virtual void AcceleratedLayerDidDrawFrame(bool succeeded) OVERRIDE; | 350 virtual void AcceleratedLayerDidDrawFrame(bool succeeded) OVERRIDE; |
| 351 | 351 |
| 352 // Forwards the mouse event to the renderer. | 352 // Forwards the mouse event to the renderer. |
| 353 void ForwardMouseEvent(const blink::WebMouseEvent& event); | 353 void ForwardMouseEvent(const blink::WebMouseEvent& event); |
| 354 | 354 |
| 355 void KillSelf(); | 355 void KillSelf(); |
| 356 | 356 |
| 357 void SetTextInputActive(bool active); | 357 void SetTextInputActive(bool active); |
| (...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 637 scoped_ptr<RenderWidgetHostViewFrameSubscriber> frame_subscriber_; | 637 scoped_ptr<RenderWidgetHostViewFrameSubscriber> frame_subscriber_; |
| 638 | 638 |
| 639 base::WeakPtrFactory<RenderWidgetHostViewMac> | 639 base::WeakPtrFactory<RenderWidgetHostViewMac> |
| 640 software_frame_weak_ptr_factory_; | 640 software_frame_weak_ptr_factory_; |
| 641 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); | 641 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); |
| 642 }; | 642 }; |
| 643 | 643 |
| 644 } // namespace content | 644 } // namespace content |
| 645 | 645 |
| 646 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ | 646 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ |
| OLD | NEW |