OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_INPUT_SCROLL_STATE_H_ | 5 #ifndef CC_INPUT_SCROLL_STATE_H_ |
6 #define CC_INPUT_SCROLL_STATE_H_ | 6 #define CC_INPUT_SCROLL_STATE_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <memory> | 9 #include <memory> |
10 | 10 |
11 #include "cc/base/cc_export.h" | 11 #include "cc/cc_export.h" |
12 #include "cc/input/scroll_state_data.h" | 12 #include "cc/input/scroll_state_data.h" |
13 #include "ui/gfx/geometry/point.h" | 13 #include "ui/gfx/geometry/point.h" |
14 #include "ui/gfx/geometry/vector2d.h" | 14 #include "ui/gfx/geometry/vector2d.h" |
15 | 15 |
16 namespace cc { | 16 namespace cc { |
17 | 17 |
18 class LayerTreeImpl; | 18 class LayerTreeImpl; |
19 | 19 |
20 // ScrollState is based on the proposal for scroll customization in blink, found | 20 // ScrollState is based on the proposal for scroll customization in blink, found |
21 // here: https://goo.gl/1ipTpP. | 21 // here: https://goo.gl/1ipTpP. |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 | 98 |
99 private: | 99 private: |
100 ScrollStateData data_; | 100 ScrollStateData data_; |
101 LayerTreeImpl* layer_tree_impl_; | 101 LayerTreeImpl* layer_tree_impl_; |
102 std::list<ScrollNode*> scroll_chain_; | 102 std::list<ScrollNode*> scroll_chain_; |
103 }; | 103 }; |
104 | 104 |
105 } // namespace cc | 105 } // namespace cc |
106 | 106 |
107 #endif // CC_INPUT_SCROLL_STATE_H_ | 107 #endif // CC_INPUT_SCROLL_STATE_H_ |
OLD | NEW |