summaryrefslogtreecommitdiffstats
path: root/cc/input/top_controls_manager.h
diff options
context:
space:
mode:
Diffstat (limited to 'cc/input/top_controls_manager.h')
-rw-r--r--cc/input/top_controls_manager.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/cc/input/top_controls_manager.h b/cc/input/top_controls_manager.h
index 59289f6..78ccf80 100644
--- a/cc/input/top_controls_manager.h
+++ b/cc/input/top_controls_manager.h
@@ -31,6 +31,12 @@ class CC_EXPORT TopControlsManager
HIDING_CONTROLS
};
+ enum VisibilityRestriction {
+ ALWAYS_SHOWN,
+ ALWAYS_HIDDEN,
+ NONE
+ };
+
static scoped_ptr<TopControlsManager> Create(
TopControlsManagerClient* client,
float top_controls_height,
@@ -47,7 +53,9 @@ class CC_EXPORT TopControlsManager
}
AnimationDirection animation_direction() { return animation_direction_; }
- void EnableHidingTopControls(bool enable);
+ void UpdateTopControlsState(bool enable_hiding,
+ bool enable_showing,
+ bool animate);
void ScrollBegin();
gfx::Vector2dF ScrollBy(const gfx::Vector2dF pending_delta);
@@ -73,7 +81,7 @@ class CC_EXPORT TopControlsManager
scoped_ptr<KeyframedFloatAnimationCurve> top_controls_animation_;
AnimationDirection animation_direction_;
- bool enable_hiding_;
+ VisibilityRestriction visibility_restriction_;
float controls_top_offset_;
float top_controls_height_;