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

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: 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: 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 b1154103f59ad39699d987b00ad81936ec28af0f..fd2c9c1e60da2575e1deb17b8de9bb8bf5ee2272 100644
--- a/content/browser/android/content_view_core_impl.h
+++ b/content/browser/android/content_view_core_impl.h
@@ -319,8 +319,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 float top_controls_height,
+ const float top_controls_shown_ratio,
+ const float bottom_controls_height,
+ const float bottom_controls_shown_ratio,
bool is_mobile_optimized_hint,
const gfx::SelectionBound& selection_start);
@@ -386,6 +388,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);
@@ -432,6 +435,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