OLD | NEW |
---|---|
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_TOP_CONTROLS_MANAGER_H_ | 5 #ifndef CC_INPUT_TOP_CONTROLS_MANAGER_H_ |
6 #define CC_INPUT_TOP_CONTROLS_MANAGER_H_ | 6 #define CC_INPUT_TOP_CONTROLS_MANAGER_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 22 matching lines...) Expand all Loading... | |
33 static std::unique_ptr<TopControlsManager> Create( | 33 static std::unique_ptr<TopControlsManager> Create( |
34 TopControlsManagerClient* client, | 34 TopControlsManagerClient* client, |
35 float top_controls_show_threshold, | 35 float top_controls_show_threshold, |
36 float top_controls_hide_threshold); | 36 float top_controls_hide_threshold); |
37 virtual ~TopControlsManager(); | 37 virtual ~TopControlsManager(); |
38 | 38 |
39 float ControlsTopOffset() const; | 39 float ControlsTopOffset() const; |
40 float ContentTopOffset() const; | 40 float ContentTopOffset() const; |
41 float TopControlsShownRatio() const; | 41 float TopControlsShownRatio() const; |
42 float TopControlsHeight() const; | 42 float TopControlsHeight() const; |
43 float BottomControlsHeight() const; | |
44 float BottomControlsOffset() const; | |
bokan
2016/06/30 12:31:21
Please match the exiting convention:
BottomContro
Ian Wen
2016/07/01 02:51:44
Done.
| |
45 float BottomContentOffset() const; | |
43 | 46 |
44 bool has_animation() const { return animation_direction_ != NO_ANIMATION; } | 47 bool has_animation() const { return animation_direction_ != NO_ANIMATION; } |
45 AnimationDirection animation_direction() { return animation_direction_; } | 48 AnimationDirection animation_direction() { return animation_direction_; } |
46 | 49 |
47 void UpdateTopControlsState(TopControlsState constraints, | 50 void UpdateTopControlsState(TopControlsState constraints, |
48 TopControlsState current, | 51 TopControlsState current, |
49 bool animate); | 52 bool animate); |
50 | 53 |
51 void ScrollBegin(); | 54 void ScrollBegin(); |
52 gfx::Vector2dF ScrollBy(const gfx::Vector2dF& pending_delta); | 55 gfx::Vector2dF ScrollBy(const gfx::Vector2dF& pending_delta); |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
99 float top_controls_hide_threshold_; | 102 float top_controls_hide_threshold_; |
100 | 103 |
101 bool pinch_gesture_active_; | 104 bool pinch_gesture_active_; |
102 | 105 |
103 DISALLOW_COPY_AND_ASSIGN(TopControlsManager); | 106 DISALLOW_COPY_AND_ASSIGN(TopControlsManager); |
104 }; | 107 }; |
105 | 108 |
106 } // namespace cc | 109 } // namespace cc |
107 | 110 |
108 #endif // CC_INPUT_TOP_CONTROLS_MANAGER_H_ | 111 #endif // CC_INPUT_TOP_CONTROLS_MANAGER_H_ |
OLD | NEW |