diff options
author | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-22 01:29:05 +0000 |
---|---|---|
committer | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-22 01:29:05 +0000 |
commit | 41fbf097c8e01c4971de118eb8fb791b9abaa6eb (patch) | |
tree | 8216ee10224ebb84ace23ef8d227e8ec07666bac /webkit/glue/event_conversion.h | |
parent | d77232f96be7900e1e7230d145c06bb9e5ed7e44 (diff) | |
download | chromium_src-41fbf097c8e01c4971de118eb8fb791b9abaa6eb.zip chromium_src-41fbf097c8e01c4971de118eb8fb791b9abaa6eb.tar.gz chromium_src-41fbf097c8e01c4971de118eb8fb791b9abaa6eb.tar.bz2 |
Add events to windowless plugins on linux. This CL also refactors the event
communication between WebPlugin and WebPluginDelegate, to use a cross-platform
message based on WebInputEvent.
BUG=8202
TEST=A lot of manual testing on Linux and Windows, with Flash plugins and a
custom plugin that dumps events on Linux.
Review URL: http://codereview.chromium.org/115330
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16692 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/event_conversion.h')
-rw-r--r-- | webkit/glue/event_conversion.h | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/webkit/glue/event_conversion.h b/webkit/glue/event_conversion.h index 5b83c97..ef82cdb 100644 --- a/webkit/glue/event_conversion.h +++ b/webkit/glue/event_conversion.h @@ -15,7 +15,10 @@ MSVC_PUSH_WARNING_LEVEL(0); MSVC_POP_WARNING(); namespace WebCore { - class Widget; +class FrameView; +class KeyboardEvent; +class MouseEvent; +class Widget; } namespace WebKit { @@ -46,4 +49,19 @@ class MakePlatformKeyboardEvent : public WebCore::PlatformKeyboardEvent { bool IsCharacterKey() const; }; +// Converts a WebCore::MouseEvent to a corresponding WebMouseEvent. view is the +// FrameView corresponding to the event. +// Returns true if successful. +// NOTE: This is only implemented for mousemove, mouseover, mouseout, mousedown +// and mouseup. +bool ToWebMouseEvent(const WebCore::FrameView& view, + const WebCore::MouseEvent& event, + WebKit::WebMouseEvent* web_event); + +// Converts a WebCore::KeyboardEvent to a corresponding WebKeyboardEvent. +// Returns true if successful. +// NOTE: This is only implemented for keydown and keyup. +bool ToWebKeyboardEvent(const WebCore::KeyboardEvent& event, + WebKit::WebKeyboardEvent* web_event); + #endif // WEBKIT_GLUE_EVENT_CONVERSION_H_ |