| 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 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 281 void InitAsPopup(RenderWidgetHostView* parent_host_view, | 281 void InitAsPopup(RenderWidgetHostView* parent_host_view, |
| 282 const gfx::Rect& pos) override; | 282 const gfx::Rect& pos) override; |
| 283 void InitAsFullscreen(RenderWidgetHostView* reference_host_view) override; | 283 void InitAsFullscreen(RenderWidgetHostView* reference_host_view) override; |
| 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 SelectionBoundsChanged( | |
| 292 const ViewHostMsg_SelectionBounds_Params& params) override; | |
| 293 void CopyFromCompositingSurface(const gfx::Rect& src_subrect, | 291 void CopyFromCompositingSurface(const gfx::Rect& src_subrect, |
| 294 const gfx::Size& dst_size, | 292 const gfx::Size& dst_size, |
| 295 const ReadbackRequestCallback& callback, | 293 const ReadbackRequestCallback& callback, |
| 296 SkColorType preferred_color_type) override; | 294 SkColorType preferred_color_type) override; |
| 297 void CopyFromCompositingSurfaceToVideoFrame( | 295 void CopyFromCompositingSurfaceToVideoFrame( |
| 298 const gfx::Rect& src_subrect, | 296 const gfx::Rect& src_subrect, |
| 299 const scoped_refptr<media::VideoFrame>& target, | 297 const scoped_refptr<media::VideoFrame>& target, |
| 300 const base::Callback<void(const gfx::Rect&, bool)>& callback) override; | 298 const base::Callback<void(const gfx::Rect&, bool)>& callback) override; |
| 301 bool CanCopyToVideoFrame() const override; | 299 bool CanCopyToVideoFrame() const override; |
| 302 void BeginFrameSubscription( | 300 void BeginFrameSubscription( |
| (...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 535 | 533 |
| 536 // The current VSync timebase and interval. This is zero until the first call | 534 // The current VSync timebase and interval. This is zero until the first call |
| 537 // to SendVSyncParametersToRenderer(), and refreshed regularly thereafter. | 535 // to SendVSyncParametersToRenderer(), and refreshed regularly thereafter. |
| 538 base::TimeTicks vsync_timebase_; | 536 base::TimeTicks vsync_timebase_; |
| 539 base::TimeDelta vsync_interval_; | 537 base::TimeDelta vsync_interval_; |
| 540 | 538 |
| 541 // The current composition character range and its bounds. | 539 // The current composition character range and its bounds. |
| 542 gfx::Range composition_range_; | 540 gfx::Range composition_range_; |
| 543 std::vector<gfx::Rect> composition_bounds_; | 541 std::vector<gfx::Rect> composition_bounds_; |
| 544 | 542 |
| 545 // The current caret bounds. | |
| 546 gfx::Rect caret_rect_; | |
| 547 | |
| 548 // The current first selection bounds. | |
| 549 gfx::Rect first_selection_rect_; | |
| 550 | |
| 551 // Factory used to safely scope delayed calls to ShutdownHost(). | 543 // Factory used to safely scope delayed calls to ShutdownHost(). |
| 552 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_; | 544 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_; |
| 553 | 545 |
| 554 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); | 546 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); |
| 555 }; | 547 }; |
| 556 | 548 |
| 557 } // namespace content | 549 } // namespace content |
| 558 | 550 |
| 559 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ | 551 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ |
| OLD | NEW |