diff options
author | mazda@chromium.org <mazda@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-03 09:02:24 +0000 |
---|---|---|
committer | mazda@chromium.org <mazda@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-03 09:02:24 +0000 |
commit | 2d0f2e95d4a44967424a7bb735d5263da3dea581 (patch) | |
tree | 9b2868014f1f58f4d369e73b162c75ccecabda0f /content/renderer/render_view.h | |
parent | 219e07987f9ec4e40418b251b4960681af726d53 (diff) | |
download | chromium_src-2d0f2e95d4a44967424a7bb735d5263da3dea581.zip chromium_src-2d0f2e95d4a44967424a7bb735d5263da3dea581.tar.gz chromium_src-2d0f2e95d4a44967424a7bb735d5263da3dea581.tar.bz2 |
Show keyboard when the focused editable field is touched inside the web content area.
When an editable fieled is touched and the focus is moved to the element, NOTIFICATION_FOCUS_CHANGED_IN_PAGE is sent. However, if the field is already focused, no notification is sent. But keyboard should be shown in such a case.
This CL
- Adds NOTIFICATION_FOCUSED_EDITABLE_NODE_TOUCHED notification, which is sent when the focused editable field is touched,
- Adds ChromeViewHostMsg_FocusedEditableNodeTouched IPC message, which is sent from renderer to browser when a touch released on the focused editable field,
- Changes RenderWidget to handle touch events in OnHandleInputEvent, and
- Handles NOTIFICATION_FOCUSED_EDITABLE_NODE_TOUCHED in KeyboardWidget to show keyboard.
BUG=none
TEST=Manual
Review URL: http://codereview.chromium.org/7923005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103694 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/renderer/render_view.h')
-rw-r--r-- | content/renderer/render_view.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/content/renderer/render_view.h b/content/renderer/render_view.h index 245e196..31a3141 100644 --- a/content/renderer/render_view.h +++ b/content/renderer/render_view.h @@ -134,6 +134,7 @@ class WebPlugin; class WebSpeechInputController; class WebSpeechInputListener; class WebStorageNamespace; +class WebTouchEvent; class WebURLLoader; class WebURLRequest; class WebView; @@ -649,6 +650,7 @@ class RenderView : public RenderWidget, virtual bool WillHandleMouseEvent( const WebKit::WebMouseEvent& event) OVERRIDE; virtual void DidHandleMouseEvent(const WebKit::WebMouseEvent& event); + virtual void DidHandleTouchEvent(const WebKit::WebTouchEvent& event); virtual void OnSetFocus(bool enable); virtual void OnWasHidden(); virtual void OnWasRestored(bool needs_repainting); |