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

Unified Diff: cc/input/top_controls_manager.h

Issue 511253003: Made Blink aware of top controls offset (Chromium-side) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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/trees/layer_tree_host.h » ('j') | cc/trees/layer_tree_host_client.h » ('J')
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 7d631d85bb1b1b419b73128a7161144e27a21e07..4657618120515609842cde790ec33d78be5ee649 100644
--- a/cc/input/top_controls_manager.h
+++ b/cc/input/top_controls_manager.h
@@ -62,6 +62,8 @@ class CC_EXPORT TopControlsManager
void PinchEnd();
gfx::Vector2dF Animate(base::TimeTicks monotonic_time);
+ void SetControlsTopOffset(float offset);
+ float top_controls_height() { return top_controls_height_; }
protected:
TopControlsManager(TopControlsManagerClient* client,
@@ -70,7 +72,6 @@ class CC_EXPORT TopControlsManager
float top_controls_hide_threshold);
private:
- void SetControlsTopOffset(float offset);
void ResetAnimations();
void SetupAnimation(AnimationDirection direction);
void StartAnimationIfNecessary();
« no previous file with comments | « no previous file | cc/trees/layer_tree_host.h » ('j') | cc/trees/layer_tree_host_client.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698