Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(158)

Unified Diff: webkit/glue/event_conversion.h

Issue 115330: linux: Adding events to windowless plugins on Linux (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/api/src/win/WebInputEventFactory.cpp ('k') | webkit/glue/event_conversion.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/event_conversion.h
===================================================================
--- webkit/glue/event_conversion.h (revision 16673)
+++ webkit/glue/event_conversion.h (working copy)
@@ -15,7 +15,10 @@
MSVC_POP_WARNING();
namespace WebCore {
- class Widget;
+class FrameView;
+class KeyboardEvent;
+class MouseEvent;
+class Widget;
}
namespace WebKit {
@@ -46,4 +49,19 @@
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_
« no previous file with comments | « webkit/api/src/win/WebInputEventFactory.cpp ('k') | webkit/glue/event_conversion.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698