summaryrefslogtreecommitdiffstats
path: root/content/port
diff options
context:
space:
mode:
authortedchoc@chromium.org <tedchoc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-24 01:36:40 +0000
committertedchoc@chromium.org <tedchoc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-24 01:36:40 +0000
commitd908376a0defe2776b3cd03ee5dd8b9df7b6ca8e (patch)
treed94000106a204858c92feefb9602fcab4334e75e /content/port
parent334ec0a0edaae51da3a9b267a1c5af441fe50f7c (diff)
downloadchromium_src-d908376a0defe2776b3cd03ee5dd8b9df7b6ca8e.zip
chromium_src-d908376a0defe2776b3cd03ee5dd8b9df7b6ca8e.tar.gz
chromium_src-d908376a0defe2776b3cd03ee5dd8b9df7b6ca8e.tar.bz2
Expose a concept of bottom overdraw amount for cc drawing viewport.
When the physical output surface is larger than the visible viewport, we need to subtract the overdraw to ensure you can scroll to the full content of the page. Resizing the output surface is expensive on mobile devices, so we minimize resizes and deal with this size mismatch. BUG=161303, 221995 Review URL: https://chromiumcodereview.appspot.com/12437023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@190142 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/port')
-rw-r--r--content/port/browser/render_widget_host_view_port.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/content/port/browser/render_widget_host_view_port.h b/content/port/browser/render_widget_host_view_port.h
index e258c5f..397d71d 100644
--- a/content/port/browser/render_widget_host_view_port.h
+++ b/content/port/browser/render_widget_host_view_port.h
@@ -243,6 +243,10 @@ class CONTENT_EXPORT RenderWidgetHostViewPort : public RenderWidgetHostView,
// The size of the view's backing surface in non-DPI-adjusted pixels.
virtual gfx::Size GetPhysicalBackingSize() const = 0;
+ // The height of the physical backing surface that is overdrawn opaquely in
+ // the browser, for example by an on-screen-keyboard (in DPI-adjusted pixels).
+ virtual float GetOverdrawBottomHeight() const = 0;
+
// Gets the bounds of the window, in screen coordinates.
virtual gfx::Rect GetBoundsInRootWindow() = 0;