| 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 <stddef.h> | 10 #include <stddef.h> |
| (...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 284 void Focus() override; | 284 void Focus() override; |
| 285 void UpdateCursor(const WebCursor& cursor) override; | 285 void UpdateCursor(const WebCursor& cursor) override; |
| 286 void SetIsLoading(bool is_loading) override; | 286 void SetIsLoading(bool is_loading) override; |
| 287 void RenderProcessGone(base::TerminationStatus status, | 287 void RenderProcessGone(base::TerminationStatus status, |
| 288 int error_code) override; | 288 int error_code) override; |
| 289 void Destroy() override; | 289 void Destroy() override; |
| 290 void SetTooltipText(const base::string16& tooltip_text) override; | 290 void SetTooltipText(const base::string16& tooltip_text) override; |
| 291 void SelectionChanged(const base::string16& text, | 291 void SelectionChanged(const base::string16& text, |
| 292 size_t offset, | 292 size_t offset, |
| 293 const gfx::Range& range) override; | 293 const gfx::Range& range) override; |
| 294 void SelectionBoundsChanged( | |
| 295 const ViewHostMsg_SelectionBounds_Params& params) override; | |
| 296 void CopyFromCompositingSurface(const gfx::Rect& src_subrect, | 294 void CopyFromCompositingSurface(const gfx::Rect& src_subrect, |
| 297 const gfx::Size& dst_size, | 295 const gfx::Size& dst_size, |
| 298 const ReadbackRequestCallback& callback, | 296 const ReadbackRequestCallback& callback, |
| 299 SkColorType preferred_color_type) override; | 297 SkColorType preferred_color_type) override; |
| 300 void CopyFromCompositingSurfaceToVideoFrame( | 298 void CopyFromCompositingSurfaceToVideoFrame( |
| 301 const gfx::Rect& src_subrect, | 299 const gfx::Rect& src_subrect, |
| 302 const scoped_refptr<media::VideoFrame>& target, | 300 const scoped_refptr<media::VideoFrame>& target, |
| 303 const base::Callback<void(const gfx::Rect&, bool)>& callback) override; | 301 const base::Callback<void(const gfx::Rect&, bool)>& callback) override; |
| 304 bool CanCopyToVideoFrame() const override; | 302 bool CanCopyToVideoFrame() const override; |
| 305 void BeginFrameSubscription( | 303 void BeginFrameSubscription( |
| (...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 537 | 535 |
| 538 // The current VSync timebase and interval. This is zero until the first call | 536 // The current VSync timebase and interval. This is zero until the first call |
| 539 // to SendVSyncParametersToRenderer(), and refreshed regularly thereafter. | 537 // to SendVSyncParametersToRenderer(), and refreshed regularly thereafter. |
| 540 base::TimeTicks vsync_timebase_; | 538 base::TimeTicks vsync_timebase_; |
| 541 base::TimeDelta vsync_interval_; | 539 base::TimeDelta vsync_interval_; |
| 542 | 540 |
| 543 // The current composition character range and its bounds. | 541 // The current composition character range and its bounds. |
| 544 gfx::Range composition_range_; | 542 gfx::Range composition_range_; |
| 545 std::vector<gfx::Rect> composition_bounds_; | 543 std::vector<gfx::Rect> composition_bounds_; |
| 546 | 544 |
| 547 // The current caret bounds. | |
| 548 gfx::Rect caret_rect_; | |
| 549 | |
| 550 // The current first selection bounds. | |
| 551 gfx::Rect first_selection_rect_; | |
| 552 | |
| 553 // Factory used to safely scope delayed calls to ShutdownHost(). | 545 // Factory used to safely scope delayed calls to ShutdownHost(). |
| 554 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_; | 546 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_; |
| 555 | 547 |
| 556 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); | 548 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); |
| 557 }; | 549 }; |
| 558 | 550 |
| 559 } // namespace content | 551 } // namespace content |
| 560 | 552 |
| 561 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ | 553 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ |
| OLD | NEW |