summaryrefslogtreecommitdiffstats
path: root/ui/keyboard/keyboard_controller_proxy.h
diff options
context:
space:
mode:
authorshuchen@chromium.org <shuchen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-29 03:31:09 +0000
committershuchen@chromium.org <shuchen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-29 03:31:09 +0000
commit112f658dd4ee5ead677ab818fe4efe14ac8d501e (patch)
treed8a2364dcd6753e72adf3397e648b95b76b4da89 /ui/keyboard/keyboard_controller_proxy.h
parentb520e13a9cddc9089d5ff0bf1c168a0abb6b7ec9 (diff)
downloadchromium_src-112f658dd4ee5ead677ab818fe4efe14ac8d501e.zip
chromium_src-112f658dd4ee5ead677ab818fe4efe14ac8d501e.tar.gz
chromium_src-112f658dd4ee5ead677ab818fe4efe14ac8d501e.tar.bz2
[IME API] Implement input view which reuses virtual keyboard window.
BUG=chromium:316524 TEST=Locally verified on sandbox of ChromeOS on Linux. Review URL: https://codereview.chromium.org/91443002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@237868 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/keyboard/keyboard_controller_proxy.h')
-rw-r--r--ui/keyboard/keyboard_controller_proxy.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/ui/keyboard/keyboard_controller_proxy.h b/ui/keyboard/keyboard_controller_proxy.h
index 5358597..cdd870a 100644
--- a/ui/keyboard/keyboard_controller_proxy.h
+++ b/ui/keyboard/keyboard_controller_proxy.h
@@ -38,6 +38,9 @@ class KEYBOARD_EXPORT KeyboardControllerProxy {
// with the proxy.
virtual aura::Window* GetKeyboardWindow();
+ // Sets the override content url.
+ void SetOverrideContentUrl(const GURL& url);
+
// Gets the InputMethod that will provide notifications about changes in the
// text input context.
virtual ui::InputMethod* GetInputMethod() = 0;
@@ -74,6 +77,15 @@ class KEYBOARD_EXPORT KeyboardControllerProxy {
virtual void SetupWebContents(content::WebContents* contents);
private:
+ // Reloads the web contents to the valid url from GetValidUrl().
+ void ReloadContents();
+
+ // Gets the valid url from default url or override url.
+ const GURL& GetValidUrl();
+
+ const GURL default_url_;
+ GURL override_url_;
+
scoped_ptr<content::WebContents> keyboard_contents_;
DISALLOW_COPY_AND_ASSIGN(KeyboardControllerProxy);