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

Unified Diff: cc/input/top_controls_manager.h

Issue 2106753004: Introduce bottom controls to CC and let it respond to scrolling (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: vector->float in IPC Created 4 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
Index: cc/input/top_controls_manager.h
diff --git a/cc/input/top_controls_manager.h b/cc/input/top_controls_manager.h
index 4ec45776e99e9f7452a65fc2762dec48f5d68213..1d8e1d037d6e39b38158389183c759ae1512e8b4 100644
--- a/cc/input/top_controls_manager.h
+++ b/cc/input/top_controls_manager.h
@@ -36,11 +36,23 @@ class CC_EXPORT TopControlsManager
float top_controls_hide_threshold);
virtual ~TopControlsManager();
+ // The offset from the window top to the top edge of the controls. Runs from 0
+ // (controls fully shown) to negative values (down is positive).
float ControlsTopOffset() const;
+ // The amount of offset of the web content area. Same as the current shown
+ // height of the top controls.
float ContentTopOffset() const;
float TopControlsShownRatio() const;
float TopControlsHeight() const;
+ // The amount of offset of the web content area, calculating from the bottom.
+ // Same as the current shown height of the bottom controls.
+ float ContentBottomOffset() const;
+ // Similar to TopControlsHeight(), this method should return a static value.
+ // The current animated height should be acquired from ContentBottomOffset().
+ float BottomControlsHeight() const;
+ float BottomControlsShownRatio() const;
+
bool has_animation() const { return animation_direction_ != NO_ANIMATION; }
AnimationDirection animation_direction() { return animation_direction_; }
« no previous file with comments | « no previous file | cc/input/top_controls_manager.cc » ('j') | content/browser/renderer_host/render_widget_host_view_android.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698