| 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 664 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 675 Viewport* viewport() const { return viewport_.get(); } | 675 Viewport* viewport() const { return viewport_.get(); } |
| 676 | 676 |
| 677 InputHandler::ScrollStatus ScrollBeginImpl( | 677 InputHandler::ScrollStatus ScrollBeginImpl( |
| 678 ScrollState* scroll_state, | 678 ScrollState* scroll_state, |
| 679 ScrollNode* scrolling_node, | 679 ScrollNode* scrolling_node, |
| 680 InputHandler::ScrollInputType type); | 680 InputHandler::ScrollInputType type); |
| 681 bool IsInitialScrollHitTestReliable(LayerImpl* layer, const gfx::PointF&); | 681 bool IsInitialScrollHitTestReliable(LayerImpl* layer, const gfx::PointF&); |
| 682 void DistributeScrollDelta(ScrollState* scroll_state); | 682 void DistributeScrollDelta(ScrollState* scroll_state); |
| 683 bool CanConsumeDelta(ScrollNode* scroll_node, | 683 bool CanConsumeDelta(ScrollNode* scroll_node, |
| 684 const ScrollState& scroll_state); | 684 const ScrollState& scroll_state); |
| 685 bool CanPropagate(ScrollNode* scroll_node, float x, float y); |
| 685 | 686 |
| 686 bool AnimatePageScale(base::TimeTicks monotonic_time); | 687 bool AnimatePageScale(base::TimeTicks monotonic_time); |
| 687 bool AnimateScrollbars(base::TimeTicks monotonic_time); | 688 bool AnimateScrollbars(base::TimeTicks monotonic_time); |
| 688 bool AnimateBrowserControls(base::TimeTicks monotonic_time); | 689 bool AnimateBrowserControls(base::TimeTicks monotonic_time); |
| 689 | 690 |
| 690 void UpdateTileManagerMemoryPolicy(const ManagedMemoryPolicy& policy); | 691 void UpdateTileManagerMemoryPolicy(const ManagedMemoryPolicy& policy); |
| 691 | 692 |
| 692 // This function should only be called from PrepareToDraw, as DidDrawAllLayers | 693 // This function should only be called from PrepareToDraw, as DidDrawAllLayers |
| 693 // must be called if this helper function is called. Returns DRAW_SUCCESS if | 694 // must be called if this helper function is called. Returns DRAW_SUCCESS if |
| 694 // the frame should be drawn. | 695 // the frame should be drawn. |
| (...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 900 bool touchpad_and_wheel_scroll_latching_enabled_; | 901 bool touchpad_and_wheel_scroll_latching_enabled_; |
| 901 | 902 |
| 902 ImplThreadPhase impl_thread_phase_; | 903 ImplThreadPhase impl_thread_phase_; |
| 903 | 904 |
| 904 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 905 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
| 905 }; | 906 }; |
| 906 | 907 |
| 907 } // namespace cc | 908 } // namespace cc |
| 908 | 909 |
| 909 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 910 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
| OLD | NEW |