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_; } |