| 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 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 274 void RenderProcessGone(base::TerminationStatus status, | 274 void RenderProcessGone(base::TerminationStatus status, |
| 275 int error_code) override; | 275 int error_code) override; |
| 276 void RenderWidgetHostGone() override; | 276 void RenderWidgetHostGone() override; |
| 277 void Destroy() override; | 277 void Destroy() override; |
| 278 void SetTooltipText(const base::string16& tooltip_text) override; | 278 void SetTooltipText(const base::string16& tooltip_text) override; |
| 279 void SelectionChanged(const base::string16& text, | 279 void SelectionChanged(const base::string16& text, |
| 280 size_t offset, | 280 size_t offset, |
| 281 const gfx::Range& range) override; | 281 const gfx::Range& range) override; |
| 282 void SelectionBoundsChanged( | 282 void SelectionBoundsChanged( |
| 283 const ViewHostMsg_SelectionBounds_Params& params) override; | 283 const ViewHostMsg_SelectionBounds_Params& params) override; |
| 284 void CopyFromCompositingSurface( | 284 void CopyFromCompositingSurface(const gfx::Rect& src_subrect, |
| 285 const gfx::Rect& src_subrect, | 285 const gfx::Size& dst_size, |
| 286 const gfx::Size& dst_size, | 286 ReadbackRequestCallback& callback, |
| 287 const base::Callback<void(bool, const SkBitmap&)>& callback, | 287 SkColorType color_type) override; |
| 288 SkColorType color_type) override; | |
| 289 void CopyFromCompositingSurfaceToVideoFrame( | 288 void CopyFromCompositingSurfaceToVideoFrame( |
| 290 const gfx::Rect& src_subrect, | 289 const gfx::Rect& src_subrect, |
| 291 const scoped_refptr<media::VideoFrame>& target, | 290 const scoped_refptr<media::VideoFrame>& target, |
| 292 const base::Callback<void(bool)>& callback) override; | 291 const base::Callback<void(bool)>& callback) override; |
| 293 bool CanCopyToVideoFrame() const override; | 292 bool CanCopyToVideoFrame() const override; |
| 294 bool CanSubscribeFrame() const override; | 293 bool CanSubscribeFrame() const override; |
| 295 void BeginFrameSubscription( | 294 void BeginFrameSubscription( |
| 296 scoped_ptr<RenderWidgetHostViewFrameSubscriber> subscriber) override; | 295 scoped_ptr<RenderWidgetHostViewFrameSubscriber> subscriber) override; |
| 297 void EndFrameSubscription() override; | 296 void EndFrameSubscription() override; |
| 298 void OnSwapCompositorFrame(uint32 output_surface_id, | 297 void OnSwapCompositorFrame(uint32 output_surface_id, |
| (...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 546 | 545 |
| 547 // The current caret bounds. | 546 // The current caret bounds. |
| 548 gfx::Rect caret_rect_; | 547 gfx::Rect caret_rect_; |
| 549 | 548 |
| 550 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); | 549 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); |
| 551 }; | 550 }; |
| 552 | 551 |
| 553 } // namespace content | 552 } // namespace content |
| 554 | 553 |
| 555 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ | 554 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ |
| OLD | NEW |