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

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: Fixed crash + mojo example build break Created 6 years, 3 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 | « android_webview/browser/hardware_renderer.h ('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 7d631d85bb1b1b419b73128a7161144e27a21e07..961b351169cc954fc537044367c0005dd591ca11 100644
--- a/cc/input/top_controls_manager.h
+++ b/cc/input/top_controls_manager.h
@@ -39,10 +39,10 @@ class CC_EXPORT TopControlsManager
float top_controls_hide_threshold);
virtual ~TopControlsManager();
- float controls_top_offset() { return controls_top_offset_; }
- float content_top_offset() {
- return controls_top_offset_ + top_controls_height_;
- }
+ float controls_height() { return top_controls_height_; }
+ float ControlsTopOffset();
+ float ContentTopOffset();
+
KeyframedFloatAnimationCurve* animation() {
return top_controls_animation_.get();
}
@@ -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 | « android_webview/browser/hardware_renderer.h ('k') | cc/input/top_controls_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698