| 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 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 309 void Destroy() override; | 309 void Destroy() override; |
| 310 void SetTooltipText(const base::string16& tooltip_text) override; | 310 void SetTooltipText(const base::string16& tooltip_text) override; |
| 311 void SelectionChanged(const base::string16& text, | 311 void SelectionChanged(const base::string16& text, |
| 312 size_t offset, | 312 size_t offset, |
| 313 const gfx::Range& range) override; | 313 const gfx::Range& range) override; |
| 314 void SelectionBoundsChanged( | 314 void SelectionBoundsChanged( |
| 315 const ViewHostMsg_SelectionBounds_Params& params) override; | 315 const ViewHostMsg_SelectionBounds_Params& params) override; |
| 316 void CopyFromCompositingSurface(const gfx::Rect& src_subrect, | 316 void CopyFromCompositingSurface(const gfx::Rect& src_subrect, |
| 317 const gfx::Size& dst_size, | 317 const gfx::Size& dst_size, |
| 318 ReadbackRequestCallback& callback, | 318 ReadbackRequestCallback& callback, |
| 319 SkColorType color_type) override; | 319 SkColorType preferred_color_type) override; |
| 320 void CopyFromCompositingSurfaceToVideoFrame( | 320 void CopyFromCompositingSurfaceToVideoFrame( |
| 321 const gfx::Rect& src_subrect, | 321 const gfx::Rect& src_subrect, |
| 322 const scoped_refptr<media::VideoFrame>& target, | 322 const scoped_refptr<media::VideoFrame>& target, |
| 323 const base::Callback<void(bool)>& callback) override; | 323 const base::Callback<void(bool)>& callback) override; |
| 324 bool CanCopyToVideoFrame() const override; | 324 bool CanCopyToVideoFrame() const override; |
| 325 bool CanSubscribeFrame() const override; | 325 bool CanSubscribeFrame() const override; |
| 326 void BeginFrameSubscription( | 326 void BeginFrameSubscription( |
| 327 scoped_ptr<RenderWidgetHostViewFrameSubscriber> subscriber) override; | 327 scoped_ptr<RenderWidgetHostViewFrameSubscriber> subscriber) override; |
| 328 void EndFrameSubscription() override; | 328 void EndFrameSubscription() override; |
| 329 void OnSwapCompositorFrame(uint32 output_surface_id, | 329 void OnSwapCompositorFrame(uint32 output_surface_id, |
| (...skipping 11 matching lines...) Expand all Loading... |
| 341 gfx::GLSurfaceHandle GetCompositingSurface() override; | 341 gfx::GLSurfaceHandle GetCompositingSurface() override; |
| 342 | 342 |
| 343 bool LockMouse() override; | 343 bool LockMouse() override; |
| 344 void UnlockMouse() override; | 344 void UnlockMouse() override; |
| 345 void WheelEventAck(const blink::WebMouseWheelEvent& event, | 345 void WheelEventAck(const blink::WebMouseWheelEvent& event, |
| 346 InputEventAckState ack_result) override; | 346 InputEventAckState ack_result) override; |
| 347 | 347 |
| 348 // IPC::Sender implementation. | 348 // IPC::Sender implementation. |
| 349 bool Send(IPC::Message* message) override; | 349 bool Send(IPC::Message* message) override; |
| 350 | 350 |
| 351 SkColorType PreferredReadbackFormat() override; | |
| 352 | |
| 353 // gfx::DisplayObserver implementation. | 351 // gfx::DisplayObserver implementation. |
| 354 void OnDisplayAdded(const gfx::Display& new_display) override; | 352 void OnDisplayAdded(const gfx::Display& new_display) override; |
| 355 void OnDisplayRemoved(const gfx::Display& old_display) override; | 353 void OnDisplayRemoved(const gfx::Display& old_display) override; |
| 356 void OnDisplayMetricsChanged(const gfx::Display& display, | 354 void OnDisplayMetricsChanged(const gfx::Display& display, |
| 357 uint32_t metrics) override; | 355 uint32_t metrics) override; |
| 358 | 356 |
| 359 // Forwards the mouse event to the renderer. | 357 // Forwards the mouse event to the renderer. |
| 360 void ForwardMouseEvent(const blink::WebMouseEvent& event); | 358 void ForwardMouseEvent(const blink::WebMouseEvent& event); |
| 361 | 359 |
| 362 void KillSelf(); | 360 void KillSelf(); |
| (...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 587 | 585 |
| 588 // Factory used to safely scope delayed calls to ShutdownHost(). | 586 // Factory used to safely scope delayed calls to ShutdownHost(). |
| 589 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_; | 587 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_; |
| 590 | 588 |
| 591 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); | 589 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); |
| 592 }; | 590 }; |
| 593 | 591 |
| 594 } // namespace content | 592 } // namespace content |
| 595 | 593 |
| 596 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ | 594 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ |
| OLD | NEW |