summaryrefslogtreecommitdiffstats
path: root/content
diff options
context:
space:
mode:
authorpenghuang@chromium.org <penghuang@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-09 22:56:51 +0000
committerpenghuang@chromium.org <penghuang@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-09 22:56:51 +0000
commit3c8faefbbf0853ab0c6ad4d2ade63234a61a4f47 (patch)
tree26fad54c6a33b4616b4796534651cf9798b9d57c /content
parent15420f623965104fd1aea3e4fd7b489a427ba92e (diff)
downloadchromium_src-3c8faefbbf0853ab0c6ad4d2ade63234a61a4f47.zip
chromium_src-3c8faefbbf0853ab0c6ad4d2ade63234a61a4f47.tar.gz
chromium_src-3c8faefbbf0853ab0c6ad4d2ade63234a61a4f47.tar.bz2
Adjust virtual keyboard size base on input method candidates.
Known issue: Because we use javascript to show/hide candidates and re-size the virtual keyboard container, so it is difficult to make them happen at same time. When we hide the candidates and shrink the keyboard container, you may see two steps: 1. Candidates are hidden and keyboard jumps up. 2. The container is shrank. Solution: We plan to make virtual keyboard as a toplevel window instead of a child view. It will overlay the browser. And we will make candidates always visible in html and use SetBounds (0, -height_of_candidates, w, h) to hide it. BUG=None TEST=Manually Review URL: http://codereview.chromium.org/7058046 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@88605 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content')
-rw-r--r--content/common/notification_type.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/content/common/notification_type.h b/content/common/notification_type.h
index deb70c1..2f36869 100644
--- a/content/common/notification_type.h
+++ b/content/common/notification_type.h
@@ -1309,6 +1309,10 @@ class NotificationType {
#if defined(TOUCH_UI)
// Sent when an API for hiding the keyboard is invoked from JavaScript code.
HIDE_KEYBOARD_INVOKED,
+
+ // Sent when an API for set height of the keyboard is invoked from
+ // JavaScript code.
+ SET_KEYBOARD_HEIGHT_INVOKED,
#endif
// Protocol Handler Registry -----------------------------------------------