Index: ui/base/x/x11_util.h |
diff --git a/ui/base/x/x11_util.h b/ui/base/x/x11_util.h |
index 6c87e732d7820d8907ccfe251c2abd5af5819610..0147108b0f04680109464377787630a3eb6ff30e 100644 |
--- a/ui/base/x/x11_util.h |
+++ b/ui/base/x/x11_util.h |
@@ -16,6 +16,7 @@ |
#include <vector> |
#include "base/basictypes.h" |
+#include "ui/base/events.h" |
#include "ui/base/ui_export.h" |
typedef unsigned long Atom; |
@@ -235,6 +236,12 @@ int GetMappedButton(int button); |
// received. |
UI_EXPORT void UpdateButtonMap(); |
+// Initializes a XEvent that holds XKeyEvent for testing. |
+UI_EXPORT void InitXKeyEventForTesting(EventType type, |
+ KeyboardCode key_code, |
+ int flags, |
+ XEvent* event); |
+ |
} // namespace ui |
#endif // UI_BASE_X_X11_UTIL_H_ |