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

Unified Diff: webkit/glue/webinputevent.h

Issue 28105: Implement accelerators in the gtk port. (Closed)
Patch Set: Fixes for evanm Created 11 years, 10 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
Index: webkit/glue/webinputevent.h
diff --git a/webkit/glue/webinputevent.h b/webkit/glue/webinputevent.h
index 9a1c84ddec760500517f75b3c22035ef011a2621..c8099c8fcddb79dce179a289180cfcaa259c7df8 100644
--- a/webkit/glue/webinputevent.h
+++ b/webkit/glue/webinputevent.h
@@ -19,6 +19,7 @@ class NSEvent;
class NSView;
#endif // __OBJC__
#elif defined(OS_LINUX)
+#include <glib.h>
typedef struct _GdkEventButton GdkEventButton;
typedef struct _GdkEventMotion GdkEventMotion;
typedef struct _GdkEventScroll GdkEventScroll;
@@ -148,6 +149,12 @@ class WebKeyboardEvent : public WebInputEvent {
// to stuff everything into key_code, or make this field shared by all
// implementations, but this will have to do for now.
wchar_t text;
+
+ // Stores the GDK keyval and modifier state of the GdkEventKey; this is used
+ // to transport these values across IPC so they can be used in the front end
+ // code.
+ guint gdk_keyval;
+ guint gdk_modifier;
Avi (use Gerrit) 2009/02/25 22:38:40 How is this different from the existing modifier i
darin (slow to review) 2009/02/26 04:16:55 yeah, i don't understand this either. PlatformKey
#endif
WebKeyboardEvent()

Powered by Google App Engine
This is Rietveld 408576698