| 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 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 bool ScrollVerticallyByPage(const gfx::Point& viewport_point, | 174 bool ScrollVerticallyByPage(const gfx::Point& viewport_point, |
| 175 ScrollDirection direction) override; | 175 ScrollDirection direction) override; |
| 176 void RequestUpdateForSynchronousInputHandler() override; | 176 void RequestUpdateForSynchronousInputHandler() override; |
| 177 void SetSynchronousInputHandlerRootScrollOffset( | 177 void SetSynchronousInputHandlerRootScrollOffset( |
| 178 const gfx::ScrollOffset& root_offset) override; | 178 const gfx::ScrollOffset& root_offset) override; |
| 179 void ScrollEnd(ScrollState* scroll_state) override; | 179 void ScrollEnd(ScrollState* scroll_state) override; |
| 180 InputHandler::ScrollStatus FlingScrollBegin() override; | 180 InputHandler::ScrollStatus FlingScrollBegin() override; |
| 181 |
| 182 void MouseDownAt(const gfx::Point& viewport_point) override; |
| 183 void MouseUp() override; |
| 181 void MouseMoveAt(const gfx::Point& viewport_point) override; | 184 void MouseMoveAt(const gfx::Point& viewport_point) override; |
| 185 |
| 182 void PinchGestureBegin() override; | 186 void PinchGestureBegin() override; |
| 183 void PinchGestureUpdate(float magnify_delta, | 187 void PinchGestureUpdate(float magnify_delta, |
| 184 const gfx::Point& anchor) override; | 188 const gfx::Point& anchor) override; |
| 185 void PinchGestureEnd() override; | 189 void PinchGestureEnd() override; |
| 186 void StartPageScaleAnimation(const gfx::Vector2d& target_offset, | 190 void StartPageScaleAnimation(const gfx::Vector2d& target_offset, |
| 187 bool anchor_point, | 191 bool anchor_point, |
| 188 float page_scale, | 192 float page_scale, |
| 189 base::TimeDelta duration); | 193 base::TimeDelta duration); |
| 190 void SetNeedsAnimateInput() override; | 194 void SetNeedsAnimateInput() override; |
| 191 bool IsCurrentlyScrollingInnerViewport() const override; | 195 bool IsCurrentlyScrollingInnerViewport() const override; |
| (...skipping 645 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 837 bool requires_high_res_to_draw_; | 841 bool requires_high_res_to_draw_; |
| 838 bool is_likely_to_require_a_draw_; | 842 bool is_likely_to_require_a_draw_; |
| 839 | 843 |
| 840 std::unique_ptr<Viewport> viewport_; | 844 std::unique_ptr<Viewport> viewport_; |
| 841 | 845 |
| 842 std::unique_ptr<LayerTreeMutator> mutator_; | 846 std::unique_ptr<LayerTreeMutator> mutator_; |
| 843 | 847 |
| 844 std::unique_ptr<PendingTreeDurationHistogramTimer> | 848 std::unique_ptr<PendingTreeDurationHistogramTimer> |
| 845 pending_tree_duration_timer_; | 849 pending_tree_duration_timer_; |
| 846 | 850 |
| 851 int captured_scrollbar_layer_id_; |
| 852 |
| 847 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 853 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
| 848 }; | 854 }; |
| 849 | 855 |
| 850 } // namespace cc | 856 } // namespace cc |
| 851 | 857 |
| 852 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 858 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
| OLD | NEW |