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

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: change to height and ratio Created 4 years, 5 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 0cc3c7e22693bbd012f6306331ae2cd54b329484..81b00e174c3dd3c8d0bf3d2e7d21083ea5d81789 100644
--- a/content/browser/android/content_view_core_impl.h
+++ b/content/browser/android/content_view_core_impl.h
@@ -323,8 +323,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& top_controls_height,
+ const float top_controls_shown_ratio,
+ const gfx::Vector2dF& bottom_controls_height,
+ const float bottom_controls_shown_ratio,
bool is_mobile_optimized_hint,
const gfx::SelectionBound& selection_start);
@@ -390,6 +392,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);
@@ -434,6 +437,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