Index: cc/input/top_controls_manager.h |
diff --git a/cc/input/top_controls_manager.h b/cc/input/top_controls_manager.h |
index 78ccf80fcfd8cd526b3e8d0706fdc45668b5ad0a..9bc3040d31a0bc746fe842af07f62e598ba135b0 100644 |
--- a/cc/input/top_controls_manager.h |
+++ b/cc/input/top_controls_manager.h |
@@ -7,6 +7,7 @@ |
#include "base/memory/scoped_ptr.h" |
#include "base/memory/weak_ptr.h" |
+#include "cc/input/top_controls_state.h" |
#include "cc/layers/layer_impl.h" |
#include "ui/gfx/size.h" |
#include "ui/gfx/vector2d_f.h" |
@@ -31,12 +32,6 @@ class CC_EXPORT TopControlsManager |
HIDING_CONTROLS |
}; |
- enum VisibilityRestriction { |
- ALWAYS_SHOWN, |
- ALWAYS_HIDDEN, |
- NONE |
- }; |
- |
static scoped_ptr<TopControlsManager> Create( |
TopControlsManagerClient* client, |
float top_controls_height, |
@@ -53,8 +48,8 @@ class CC_EXPORT TopControlsManager |
} |
AnimationDirection animation_direction() { return animation_direction_; } |
- void UpdateTopControlsState(bool enable_hiding, |
- bool enable_showing, |
+ void UpdateTopControlsState(TopControlsState constraints, |
+ TopControlsState current, |
bool animate); |
void ScrollBegin(); |
@@ -81,7 +76,7 @@ class CC_EXPORT TopControlsManager |
scoped_ptr<KeyframedFloatAnimationCurve> top_controls_animation_; |
AnimationDirection animation_direction_; |
- VisibilityRestriction visibility_restriction_; |
+ TopControlsState permitted_state_; |
float controls_top_offset_; |
float top_controls_height_; |