summaryrefslogtreecommitdiffstats
path: root/Source/WebKit2/Shared/NativeWebKeyboardEvent.h
diff options
context:
space:
mode:
authorBen Murdoch <benm@google.com>2011-05-24 11:24:40 +0100
committerBen Murdoch <benm@google.com>2011-06-02 09:53:15 +0100
commit81bc750723a18f21cd17d1b173cd2a4dda9cea6e (patch)
tree7a9e5ed86ff429fd347a25153107221543909b19 /Source/WebKit2/Shared/NativeWebKeyboardEvent.h
parent94088a6d336c1dd80a1e734af51e96abcbb689a7 (diff)
downloadexternal_webkit-81bc750723a18f21cd17d1b173cd2a4dda9cea6e.zip
external_webkit-81bc750723a18f21cd17d1b173cd2a4dda9cea6e.tar.gz
external_webkit-81bc750723a18f21cd17d1b173cd2a4dda9cea6e.tar.bz2
Merge WebKit at r80534: Intial merge by Git
Change-Id: Ia7a83357124c9e1cdb1debf55d9661ec0bd09a61
Diffstat (limited to 'Source/WebKit2/Shared/NativeWebKeyboardEvent.h')
-rw-r--r--Source/WebKit2/Shared/NativeWebKeyboardEvent.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/Source/WebKit2/Shared/NativeWebKeyboardEvent.h b/Source/WebKit2/Shared/NativeWebKeyboardEvent.h
index cdf1aef..d88455c 100644
--- a/Source/WebKit2/Shared/NativeWebKeyboardEvent.h
+++ b/Source/WebKit2/Shared/NativeWebKeyboardEvent.h
@@ -1,5 +1,7 @@
/*
* Copyright (C) 2010 Apple Inc. All rights reserved.
+ * Portions Copyright (c) 2010 Motorola Mobility, Inc. All rights reserved.
+ * Copyright (C) 2011 Igalia S.L
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -33,6 +35,9 @@
OBJC_CLASS NSView;
#elif PLATFORM(QT)
#include <QKeyEvent>
+#elif PLATFORM(GTK)
+#include <GOwnPtrGtk.h>
+typedef union _GdkEvent GdkEvent;
#endif
namespace WebKit {
@@ -45,6 +50,9 @@ public:
NativeWebKeyboardEvent(HWND, UINT message, WPARAM, LPARAM);
#elif PLATFORM(QT)
explicit NativeWebKeyboardEvent(QKeyEvent*);
+#elif PLATFORM(GTK)
+ NativeWebKeyboardEvent(const NativeWebKeyboardEvent&);
+ NativeWebKeyboardEvent(GdkEvent*);
#endif
#if PLATFORM(MAC)
@@ -53,6 +61,8 @@ public:
const MSG* nativeEvent() const { return &m_nativeEvent; }
#elif PLATFORM(QT)
const QKeyEvent* nativeEvent() const { return &m_nativeEvent; }
+#elif PLATFORM(GTK)
+ const GdkEvent* nativeEvent() const { return m_nativeEvent.get(); }
#endif
private:
@@ -62,6 +72,8 @@ private:
MSG m_nativeEvent;
#elif PLATFORM(QT)
QKeyEvent m_nativeEvent;
+#elif PLATFORM(GTK)
+ GOwnPtr<GdkEvent> m_nativeEvent;
#endif
};