// Whether the keyboard window is resizing from its web contents.
bool resizing_from_contents() const { return resizing_from_contents_; }
+ // Whether the keyboard window is created. The keyboard window is tied to a
+ // WebContent so we can just check if the WebContent is created or not.
+ virtual bool HasKeyboardWindow() const;
+
// Sets the flag of whether the keyboard window is resizing from
// its web contents.
void set_resizing_from_contents(bool resizing) {
// type the of focused input box.
virtual void SetUpdateInputType(ui::TextInputType type);
+ // Ensures caret in current work area (not occluded by virtual keyboard
+ // window).
+ virtual void EnsureCaretInWorkArea();
+
protected:
// Gets the BrowserContext to use for creating the WebContents hosting the
// keyboard.