summaryrefslogtreecommitdiffstats
path: root/content/renderer/render_widget.h
diff options
context:
space:
mode:
authormazda@chromium.org <mazda@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-03 09:02:24 +0000
committermazda@chromium.org <mazda@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-03 09:02:24 +0000
commit2d0f2e95d4a44967424a7bb735d5263da3dea581 (patch)
tree9b2868014f1f58f4d369e73b162c75ccecabda0f /content/renderer/render_widget.h
parent219e07987f9ec4e40418b251b4960681af726d53 (diff)
downloadchromium_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_widget.h')
-rw-r--r--content/renderer/render_widget.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/content/renderer/render_widget.h b/content/renderer/render_widget.h
index f44f289..624888b 100644
--- a/content/renderer/render_widget.h
+++ b/content/renderer/render_widget.h
@@ -46,6 +46,7 @@ class PlatformCanvas;
namespace WebKit {
class WebInputEvent;
class WebMouseEvent;
+class WebTouchEvent;
class WebWidget;
struct WebPopupMenuInfo;
}
@@ -314,6 +315,10 @@ class CONTENT_EXPORT RenderWidget
// just handled.
virtual void DidHandleMouseEvent(const WebKit::WebMouseEvent& event) {}
+ // Called by OnHandleInputEvent() to notify subclasses that a touch event was
+ // just handled.
+ virtual void DidHandleTouchEvent(const WebKit::WebTouchEvent& event) {}
+
// Routing ID that allows us to communicate to the parent browser process
// RenderWidgetHost. When MSG_ROUTING_NONE, no messages may be sent.
int32 routing_id_;