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

Unified Diff: content/browser/android/content_view_core_impl.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: content-offset -> top-controls-shown renaming and respond to bokan's comments Created 4 years, 6 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: content/browser/android/content_view_core_impl.h
diff --git a/content/browser/android/content_view_core_impl.h b/content/browser/android/content_view_core_impl.h
index 3a445e8517b26243964c70caaf55ef7544472eef..b40501565956dda922b7aa2e0dbeb440f5855d0f 100644
--- a/content/browser/android/content_view_core_impl.h
+++ b/content/browser/android/content_view_core_impl.h
@@ -314,8 +314,10 @@ class ContentViewCoreImpl : public ContentViewCore,
const gfx::Vector2dF& page_scale_factor_limits,
const gfx::SizeF& content_size,
const gfx::SizeF& viewport_size,
- const gfx::Vector2dF& controls_offset,
- const gfx::Vector2dF& content_offset,
+ const gfx::Vector2dF& topBarTranslateYCss,
+ const gfx::Vector2dF& topBarShownYCss,
+ const gfx::Vector2dF& bottomBarTranslateYCss,
+ const gfx::Vector2dF& bottomBarShownYCss,
bool is_mobile_optimized_hint,
const gfx::SelectionBound& selection_start);
@@ -381,6 +383,7 @@ class ContentViewCoreImpl : public ContentViewCore,
gfx::Size GetViewportSizeDip() const;
bool DoTopControlsShrinkBlinkSize() const;
float GetTopControlsHeightDip() const;
+ float GetBottomControlsHeightDip() const;
void AttachLayer(scoped_refptr<cc::Layer> layer);
void RemoveLayer(scoped_refptr<cc::Layer> layer);
@@ -425,6 +428,7 @@ class ContentViewCoreImpl : public ContentViewCore,
gfx::Size GetViewportSizePix() const;
int GetTopControlsHeightPix() const;
+ int GetBottomControlsHeightPix() const;
void SendGestureEvent(const blink::WebGestureEvent& event);

Powered by Google App Engine
This is Rietveld 408576698