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