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

Unified Diff: cc/input/top_controls_manager.h

Issue 714003002: Allow changing top controls height (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 6 years 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 | « cc/base/switches.cc ('k') | 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 a90d33d3e4ad53bd9c5887720f8d0cc75b5e8796..69408aeae10dbf8405d3c40f8e32b342ba57d373 100644
--- a/cc/input/top_controls_manager.h
+++ b/cc/input/top_controls_manager.h
@@ -34,12 +34,10 @@ class CC_EXPORT TopControlsManager
static scoped_ptr<TopControlsManager> Create(
TopControlsManagerClient* client,
- float top_controls_height,
float top_controls_show_threshold,
float top_controls_hide_threshold);
virtual ~TopControlsManager();
- float controls_height() { return top_controls_height_; }
float ControlsTopOffset();
float ContentTopOffset();
@@ -63,11 +61,11 @@ class CC_EXPORT TopControlsManager
gfx::Vector2dF Animate(base::TimeTicks monotonic_time);
void SetControlsTopOffset(float offset);
+ void SetTopControlsHeight(float top_controls_height);
float top_controls_height() { return top_controls_height_; }
protected:
TopControlsManager(TopControlsManagerClient* client,
- float top_controls_height,
float top_controls_show_threshold,
float top_controls_hide_threshold);
@@ -88,13 +86,13 @@ class CC_EXPORT TopControlsManager
float current_scroll_delta_;
float controls_scroll_begin_offset_;
- // The height of the visible top control such that it must be shown when
- // the user stops the scroll.
- float top_controls_show_height_;
+ // The percent height of the visible top control such that it must be shown
+ // when the user stops the scroll.
+ float top_controls_show_threshold_;
- // The height of the visible top control such that it must be hidden when
- // the user stops the scroll.
- float top_controls_hide_height_;
+ // The percent height of the visible top control such that it must be hidden
+ // when the user stops the scroll.
+ float top_controls_hide_threshold_;
bool pinch_gesture_active_;
« no previous file with comments | « cc/base/switches.cc ('k') | cc/input/top_controls_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698