| 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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 RenderingStatsInstrumentation* rendering_stats_instrumentation, | 147 RenderingStatsInstrumentation* rendering_stats_instrumentation, |
| 148 TaskGraphRunner* task_graph_runner, | 148 TaskGraphRunner* task_graph_runner, |
| 149 std::unique_ptr<MutatorHost> mutator_host, | 149 std::unique_ptr<MutatorHost> mutator_host, |
| 150 int id, | 150 int id, |
| 151 scoped_refptr<base::SequencedTaskRunner> image_worker_task_runner); | 151 scoped_refptr<base::SequencedTaskRunner> image_worker_task_runner); |
| 152 ~LayerTreeHostImpl() override; | 152 ~LayerTreeHostImpl() override; |
| 153 | 153 |
| 154 // InputHandler implementation | 154 // InputHandler implementation |
| 155 void BindToClient(InputHandlerClient* client, | 155 void BindToClient(InputHandlerClient* client, |
| 156 bool wheel_scroll_latching_enabled) override; | 156 bool wheel_scroll_latching_enabled) override; |
| 157 InputHandlerState GetInputHandlerState() const override; |
| 157 InputHandler::ScrollStatus ScrollBegin( | 158 InputHandler::ScrollStatus ScrollBegin( |
| 158 ScrollState* scroll_state, | 159 ScrollState* scroll_state, |
| 159 InputHandler::ScrollInputType type) override; | 160 InputHandler::ScrollInputType type) override; |
| 160 InputHandler::ScrollStatus RootScrollBegin( | 161 InputHandler::ScrollStatus RootScrollBegin( |
| 161 ScrollState* scroll_state, | 162 ScrollState* scroll_state, |
| 162 InputHandler::ScrollInputType type) override; | 163 InputHandler::ScrollInputType type) override; |
| 163 ScrollStatus ScrollAnimatedBegin(const gfx::Point& viewport_point) override; | 164 ScrollStatus ScrollAnimatedBegin(const gfx::Point& viewport_point) override; |
| 164 InputHandler::ScrollStatus ScrollAnimated( | 165 InputHandler::ScrollStatus ScrollAnimated( |
| 165 const gfx::Point& viewport_point, | 166 const gfx::Point& viewport_point, |
| 166 const gfx::Vector2dF& scroll_delta, | 167 const gfx::Vector2dF& scroll_delta, |
| (...skipping 696 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 863 // begin main frame. These callbacks must only be called on the main thread. | 864 // begin main frame. These callbacks must only be called on the main thread. |
| 864 std::vector<base::Closure> completed_image_decode_callbacks_; | 865 std::vector<base::Closure> completed_image_decode_callbacks_; |
| 865 | 866 |
| 866 // These are used to transfer usage of touch and wheel scrolls to the main | 867 // These are used to transfer usage of touch and wheel scrolls to the main |
| 867 // thread. | 868 // thread. |
| 868 bool has_scrolled_by_wheel_; | 869 bool has_scrolled_by_wheel_; |
| 869 bool has_scrolled_by_touch_; | 870 bool has_scrolled_by_touch_; |
| 870 | 871 |
| 871 bool touchpad_and_wheel_scroll_latching_enabled_; | 872 bool touchpad_and_wheel_scroll_latching_enabled_; |
| 872 | 873 |
| 874 InputHandlerState input_handler_state_; |
| 875 |
| 873 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 876 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
| 874 }; | 877 }; |
| 875 | 878 |
| 876 } // namespace cc | 879 } // namespace cc |
| 877 | 880 |
| 878 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 881 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
| OLD | NEW |