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

Unified Diff: content/public/browser/render_widget_host_view.h

Issue 195793004: Implement overscroll support for the virtual keyboard. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge ToT Created 6 years, 8 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
« no previous file with comments | « content/common/view_messages.h ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/render_widget_host_view.h
diff --git a/content/public/browser/render_widget_host_view.h b/content/public/browser/render_widget_host_view.h
index 821dc21bf657328bb5ea8ec10829a353ab48745d..4c0df76ac21e17c3da87a3a86cd3d21dc9642047 100644
--- a/content/public/browser/render_widget_host_view.h
+++ b/content/public/browser/render_widget_host_view.h
@@ -114,6 +114,15 @@ class CONTENT_EXPORT RenderWidgetHostView {
// Returns true if the mouse pointer is currently locked.
virtual bool IsMouseLocked() = 0;
+ // Retrives the size of the viewport for the visible region. May be smaller
+ // than the view size if a portion of the view is obstructed (e.g. by a
+ // virtual keyboard).
+ virtual gfx::Size GetVisibleViewportSize() const = 0;
+
+ // Set insets for the visible region of the root window. Used to compute the
+ // visible viewport.
+ virtual void SetInsets(const gfx::Insets& insets) = 0;
+
#if defined(OS_MACOSX)
// Set the view's active state (i.e., tint state of controls).
virtual void SetActive(bool active) = 0;
« no previous file with comments | « content/common/view_messages.h ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698