summaryrefslogtreecommitdiffstats
path: root/ui/keyboard/keyboard_controller_proxy.h
diff options
context:
space:
mode:
authorbshe@chromium.org <bshe@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-09-11 21:27:19 +0000
committerbshe@chromium.org <bshe@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-09-11 21:27:19 +0000
commit5f223462d66d60e05c6bbdd537e21d7e4952bc5f (patch)
treedbee80776fac0192cd53dfd685953eb72eaa7e62 /ui/keyboard/keyboard_controller_proxy.h
parentcc096d6366864de3f1098a2d209981cf23637d87 (diff)
downloadchromium_src-5f223462d66d60e05c6bbdd537e21d7e4952bc5f.zip
chromium_src-5f223462d66d60e05c6bbdd537e21d7e4952bc5f.tar.gz
chromium_src-5f223462d66d60e05c6bbdd537e21d7e4952bc5f.tar.bz2
Creates OnTextInputBoxFocused webui function
OnTextInputBoxFocused is called when an input box gets focus. The function has a parameter called inputContext which contains "type" field. The type can be "password", "number" or "text". BUG=268949 Review URL: https://chromiumcodereview.appspot.com/23724027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@222637 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/keyboard/keyboard_controller_proxy.h')
-rw-r--r--ui/keyboard/keyboard_controller_proxy.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/ui/keyboard/keyboard_controller_proxy.h b/ui/keyboard/keyboard_controller_proxy.h
index e88e52b..41761b5 100644
--- a/ui/keyboard/keyboard_controller_proxy.h
+++ b/ui/keyboard/keyboard_controller_proxy.h
@@ -7,6 +7,7 @@
#include "base/memory/scoped_ptr.h"
#include "content/public/common/media_stream_request.h"
+#include "ui/base/ime/text_input_type.h"
#include "ui/keyboard/keyboard_export.h"
namespace aura {
@@ -56,6 +57,11 @@ class KEYBOARD_EXPORT KeyboardControllerProxy {
// necesasry animation, or delay the visibility change as it desires.
virtual void HideKeyboardContainer(aura::Window* container);
+ // Calls OnTextInputBoxFocused javascript function through webui to update
+ // TextInputType on javascript side. This is for web ui keyboard. Extension
+ // keyboard can use chrome.input.ime.onFocus to get the same information.
+ void SetUpdateInputType(ui::TextInputType type);
+
protected:
// Gets the BrowserContext to use for creating the WebContents hosting the
// keyboard.