| OLD | NEW |
| 1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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 CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 5 #ifndef CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
| 6 #define CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 6 #define CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 InputHandler::ScrollInputType type) OVERRIDE; | 116 InputHandler::ScrollInputType type) OVERRIDE; |
| 117 virtual bool ScrollBy(const gfx::Point& viewport_point, | 117 virtual bool ScrollBy(const gfx::Point& viewport_point, |
| 118 const gfx::Vector2dF& scroll_delta) OVERRIDE; | 118 const gfx::Vector2dF& scroll_delta) OVERRIDE; |
| 119 virtual bool ScrollVerticallyByPage(const gfx::Point& viewport_point, | 119 virtual bool ScrollVerticallyByPage(const gfx::Point& viewport_point, |
| 120 ScrollDirection direction) OVERRIDE; | 120 ScrollDirection direction) OVERRIDE; |
| 121 virtual void SetRootLayerScrollOffsetDelegate( | 121 virtual void SetRootLayerScrollOffsetDelegate( |
| 122 LayerScrollOffsetDelegate* root_layer_scroll_offset_delegate) OVERRIDE; | 122 LayerScrollOffsetDelegate* root_layer_scroll_offset_delegate) OVERRIDE; |
| 123 virtual void OnRootLayerDelegatedScrollOffsetChanged() OVERRIDE; | 123 virtual void OnRootLayerDelegatedScrollOffsetChanged() OVERRIDE; |
| 124 virtual void ScrollEnd() OVERRIDE; | 124 virtual void ScrollEnd() OVERRIDE; |
| 125 virtual InputHandler::ScrollStatus FlingScrollBegin() OVERRIDE; | 125 virtual InputHandler::ScrollStatus FlingScrollBegin() OVERRIDE; |
| 126 virtual void NotifyCurrentFlingVelocity( | |
| 127 const gfx::Vector2dF& velocity) OVERRIDE; | |
| 128 virtual void MouseMoveAt(const gfx::Point& viewport_point) OVERRIDE; | 126 virtual void MouseMoveAt(const gfx::Point& viewport_point) OVERRIDE; |
| 129 virtual void PinchGestureBegin() OVERRIDE; | 127 virtual void PinchGestureBegin() OVERRIDE; |
| 130 virtual void PinchGestureUpdate(float magnify_delta, | 128 virtual void PinchGestureUpdate(float magnify_delta, |
| 131 const gfx::Point& anchor) OVERRIDE; | 129 const gfx::Point& anchor) OVERRIDE; |
| 132 virtual void PinchGestureEnd() OVERRIDE; | 130 virtual void PinchGestureEnd() OVERRIDE; |
| 133 virtual void StartPageScaleAnimation(const gfx::Vector2d& target_offset, | 131 virtual void StartPageScaleAnimation(const gfx::Vector2d& target_offset, |
| 134 bool anchor_point, | 132 bool anchor_point, |
| 135 float page_scale, | 133 float page_scale, |
| 136 base::TimeDelta duration) OVERRIDE; | 134 base::TimeDelta duration) OVERRIDE; |
| 137 virtual void ScheduleAnimation() OVERRIDE; | 135 virtual void ScheduleAnimation() OVERRIDE; |
| (...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 373 } | 371 } |
| 374 size_t RenderPassListNext(size_t it) const { return it + 1; } | 372 size_t RenderPassListNext(size_t it) const { return it + 1; } |
| 375 }; | 373 }; |
| 376 | 374 |
| 377 template <typename RenderPassCuller> | 375 template <typename RenderPassCuller> |
| 378 static void RemoveRenderPasses(RenderPassCuller culler, FrameData* frame); | 376 static void RemoveRenderPasses(RenderPassCuller culler, FrameData* frame); |
| 379 | 377 |
| 380 gfx::Vector2dF accumulated_root_overscroll() const { | 378 gfx::Vector2dF accumulated_root_overscroll() const { |
| 381 return accumulated_root_overscroll_; | 379 return accumulated_root_overscroll_; |
| 382 } | 380 } |
| 383 gfx::Vector2dF current_fling_velocity() const { | |
| 384 return current_fling_velocity_; | |
| 385 } | |
| 386 | 381 |
| 387 bool pinch_gesture_active() const { return pinch_gesture_active_; } | 382 bool pinch_gesture_active() const { return pinch_gesture_active_; } |
| 388 | 383 |
| 389 void SetTreePriority(TreePriority priority); | 384 void SetTreePriority(TreePriority priority); |
| 390 | 385 |
| 391 void UpdateCurrentFrameTime(); | 386 void UpdateCurrentFrameTime(); |
| 392 void ResetCurrentFrameTimeForNextFrame(); | 387 void ResetCurrentFrameTimeForNextFrame(); |
| 393 virtual base::TimeTicks CurrentFrameTimeTicks(); | 388 virtual base::TimeTicks CurrentFrameTimeTicks(); |
| 394 | 389 |
| 395 scoped_ptr<base::Value> AsValue() const { return AsValueWithFrame(NULL); } | 390 scoped_ptr<base::Value> AsValue() const { return AsValueWithFrame(NULL); } |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 562 bool tile_priorities_dirty_; | 557 bool tile_priorities_dirty_; |
| 563 | 558 |
| 564 // The optional delegate for the root layer scroll offset. | 559 // The optional delegate for the root layer scroll offset. |
| 565 LayerScrollOffsetDelegate* root_layer_scroll_offset_delegate_; | 560 LayerScrollOffsetDelegate* root_layer_scroll_offset_delegate_; |
| 566 LayerTreeSettings settings_; | 561 LayerTreeSettings settings_; |
| 567 LayerTreeDebugState debug_state_; | 562 LayerTreeDebugState debug_state_; |
| 568 bool visible_; | 563 bool visible_; |
| 569 ManagedMemoryPolicy cached_managed_memory_policy_; | 564 ManagedMemoryPolicy cached_managed_memory_policy_; |
| 570 | 565 |
| 571 gfx::Vector2dF accumulated_root_overscroll_; | 566 gfx::Vector2dF accumulated_root_overscroll_; |
| 572 gfx::Vector2dF current_fling_velocity_; | |
| 573 | 567 |
| 574 bool pinch_gesture_active_; | 568 bool pinch_gesture_active_; |
| 575 bool pinch_gesture_end_should_clear_scrolling_layer_; | 569 bool pinch_gesture_end_should_clear_scrolling_layer_; |
| 576 gfx::Point previous_pinch_anchor_; | 570 gfx::Point previous_pinch_anchor_; |
| 577 | 571 |
| 578 scoped_ptr<TopControlsManager> top_controls_manager_; | 572 scoped_ptr<TopControlsManager> top_controls_manager_; |
| 579 | 573 |
| 580 scoped_ptr<PageScaleAnimation> page_scale_animation_; | 574 scoped_ptr<PageScaleAnimation> page_scale_animation_; |
| 581 | 575 |
| 582 // This is used for ticking animations slowly when hidden. | 576 // This is used for ticking animations slowly when hidden. |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 653 int id_; | 647 int id_; |
| 654 | 648 |
| 655 std::set<SwapPromiseMonitor*> swap_promise_monitor_; | 649 std::set<SwapPromiseMonitor*> swap_promise_monitor_; |
| 656 | 650 |
| 657 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 651 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
| 658 }; | 652 }; |
| 659 | 653 |
| 660 } // namespace cc | 654 } // namespace cc |
| 661 | 655 |
| 662 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 656 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
| OLD | NEW |