Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(150)

Unified Diff: cc/input/top_controls_manager.h

Issue 14139013: Hide location bar on Javascript-initiated scroll. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sync, merge, address style nits. Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | cc/input/top_controls_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_;
« no previous file with comments | « no previous file | cc/input/top_controls_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698