Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / ui / keyboard / keyboard_controller_proxy.h
index c028b74..d8b7f3d 100644 (file)
@@ -44,6 +44,10 @@ class KEYBOARD_EXPORT KeyboardControllerProxy {
   // 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) {
@@ -74,6 +78,10 @@ class KEYBOARD_EXPORT KeyboardControllerProxy {
   // 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.