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..979afe1df1725939f5b874b8dace905b25972447 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 height of the viewport for the visible region. May be shorter |
+ // than the view height if a portion of the view is obstructed (e.g. by a |
+ // virtual keyboard). |
+ virtual int GetVisibleViewportHeight() const = 0; |
+ |
+ // Set the bounds of the virtual keyboard. May be an empty rect if the virtual |
+ // keyboard is hidden. |
+ virtual void SetKeyboardBounds(const gfx::Rect& bounds) = 0; |
+ |
#if defined(OS_MACOSX) |
// Set the view's active state (i.e., tint state of controls). |
virtual void SetActive(bool active) = 0; |