Chromium Code Reviews| 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 MouseDownAt(const gfx::Point& viewport_point) 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 649 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 839 // it's lost instead of having this bool. | 843 // it's lost instead of having this bool. |
| 840 bool has_valid_compositor_frame_sink_; | 844 bool has_valid_compositor_frame_sink_; |
| 841 | 845 |
| 842 std::unique_ptr<Viewport> viewport_; | 846 std::unique_ptr<Viewport> viewport_; |
| 843 | 847 |
| 844 std::unique_ptr<LayerTreeMutator> mutator_; | 848 std::unique_ptr<LayerTreeMutator> mutator_; |
| 845 | 849 |
| 846 std::unique_ptr<PendingTreeDurationHistogramTimer> | 850 std::unique_ptr<PendingTreeDurationHistogramTimer> |
| 847 pending_tree_duration_timer_; | 851 pending_tree_duration_timer_; |
| 848 | 852 |
| 853 int captured_scrollbar_layer_id_; | |
|
weiliangc
2016/09/29 21:37:33
nit: Could you move this close to the scroll_layer
| |
| 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 |