| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <bitset> | 10 #include <bitset> |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 const gfx::Point& viewport_point, | 169 const gfx::Point& viewport_point, |
| 170 const gfx::Vector2dF& scroll_delta, | 170 const gfx::Vector2dF& scroll_delta, |
| 171 base::TimeDelta delayed_by = base::TimeDelta()) override; | 171 base::TimeDelta delayed_by = base::TimeDelta()) override; |
| 172 void ApplyScroll(ScrollNode* scroll_node, ScrollState* scroll_state); | 172 void ApplyScroll(ScrollNode* scroll_node, ScrollState* scroll_state); |
| 173 InputHandlerScrollResult ScrollBy(ScrollState* scroll_state) override; | 173 InputHandlerScrollResult ScrollBy(ScrollState* scroll_state) override; |
| 174 void RequestUpdateForSynchronousInputHandler() override; | 174 void RequestUpdateForSynchronousInputHandler() override; |
| 175 void SetSynchronousInputHandlerRootScrollOffset( | 175 void SetSynchronousInputHandlerRootScrollOffset( |
| 176 const gfx::ScrollOffset& root_offset) override; | 176 const gfx::ScrollOffset& root_offset) override; |
| 177 void ScrollEnd(ScrollState* scroll_state) override; | 177 void ScrollEnd(ScrollState* scroll_state) override; |
| 178 InputHandler::ScrollStatus FlingScrollBegin() override; | 178 InputHandler::ScrollStatus FlingScrollBegin() override; |
| 179 |
| 180 void MouseDown() override; |
| 181 void MouseUp() override; |
| 179 void MouseMoveAt(const gfx::Point& viewport_point) override; | 182 void MouseMoveAt(const gfx::Point& viewport_point) override; |
| 183 |
| 180 void PinchGestureBegin() override; | 184 void PinchGestureBegin() override; |
| 181 void PinchGestureUpdate(float magnify_delta, | 185 void PinchGestureUpdate(float magnify_delta, |
| 182 const gfx::Point& anchor) override; | 186 const gfx::Point& anchor) override; |
| 183 void PinchGestureEnd() override; | 187 void PinchGestureEnd() override; |
| 184 void StartPageScaleAnimation(const gfx::Vector2d& target_offset, | 188 void StartPageScaleAnimation(const gfx::Vector2d& target_offset, |
| 185 bool anchor_point, | 189 bool anchor_point, |
| 186 float page_scale, | 190 float page_scale, |
| 187 base::TimeDelta duration); | 191 base::TimeDelta duration); |
| 188 void SetNeedsAnimateInput() override; | 192 void SetNeedsAnimateInput() override; |
| 189 bool IsCurrentlyScrollingInnerViewport() const override; | 193 bool IsCurrentlyScrollingInnerViewport() const override; |
| (...skipping 559 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 749 | 753 |
| 750 // In impl-side painting mode, inert tree with layers that can be recycled | 754 // In impl-side painting mode, inert tree with layers that can be recycled |
| 751 // by the next sync from the main thread. | 755 // by the next sync from the main thread. |
| 752 std::unique_ptr<LayerTreeImpl> recycle_tree_; | 756 std::unique_ptr<LayerTreeImpl> recycle_tree_; |
| 753 | 757 |
| 754 InputHandlerClient* input_handler_client_; | 758 InputHandlerClient* input_handler_client_; |
| 755 bool did_lock_scrolling_layer_; | 759 bool did_lock_scrolling_layer_; |
| 756 bool wheel_scrolling_; | 760 bool wheel_scrolling_; |
| 757 bool scroll_affects_scroll_handler_; | 761 bool scroll_affects_scroll_handler_; |
| 758 int scroll_layer_id_when_mouse_over_scrollbar_; | 762 int scroll_layer_id_when_mouse_over_scrollbar_; |
| 763 int captured_scrollbar_layer_id_; |
| 764 |
| 759 std::vector<std::unique_ptr<SwapPromise>> | 765 std::vector<std::unique_ptr<SwapPromise>> |
| 760 swap_promises_for_main_thread_scroll_update_; | 766 swap_promises_for_main_thread_scroll_update_; |
| 761 | 767 |
| 762 // An object to implement the ScrollElasticityHelper interface and | 768 // An object to implement the ScrollElasticityHelper interface and |
| 763 // hold all state related to elasticity. May be NULL if never requested. | 769 // hold all state related to elasticity. May be NULL if never requested. |
| 764 std::unique_ptr<ScrollElasticityHelper> scroll_elasticity_helper_; | 770 std::unique_ptr<ScrollElasticityHelper> scroll_elasticity_helper_; |
| 765 | 771 |
| 766 bool tile_priorities_dirty_; | 772 bool tile_priorities_dirty_; |
| 767 | 773 |
| 768 const LayerTreeSettings settings_; | 774 const LayerTreeSettings settings_; |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 845 | 851 |
| 846 std::unique_ptr<PendingTreeDurationHistogramTimer> | 852 std::unique_ptr<PendingTreeDurationHistogramTimer> |
| 847 pending_tree_duration_timer_; | 853 pending_tree_duration_timer_; |
| 848 | 854 |
| 849 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 855 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
| 850 }; | 856 }; |
| 851 | 857 |
| 852 } // namespace cc | 858 } // namespace cc |
| 853 | 859 |
| 854 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 860 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
| OLD | NEW |