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

Unified Diff: ui/base/keycodes/keyboard_code_conversion_x.h

Issue 8834014: Move CreateFakeXEvent to x11_util.{h,cc}. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix build break on linux and win Created 9 years 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: ui/base/keycodes/keyboard_code_conversion_x.h
diff --git a/ui/base/keycodes/keyboard_code_conversion_x.h b/ui/base/keycodes/keyboard_code_conversion_x.h
index 77794835c5b9d0e4c608993dbf188bb5d45708da..19a1fe2a6ba103010a97b28511c5379b0565b1d7 100644
--- a/ui/base/keycodes/keyboard_code_conversion_x.h
+++ b/ui/base/keycodes/keyboard_code_conversion_x.h
@@ -5,6 +5,7 @@
#ifndef UI_BASE_KEYCODES_KEYBOARD_CODE_CONVERSION_X_H_
#define UI_BASE_KEYCODES_KEYBOARD_CODE_CONVERSION_X_H_
+#include "ui/base/events.h"
#include "ui/base/keycodes/keyboard_codes_posix.h"
#include "ui/base/ui_export.h"
@@ -25,6 +26,11 @@ UI_EXPORT int XKeysymForWindowsKeyCode(KeyboardCode keycode, bool shift);
// Converts an X keycode into an X KeySym.
unsigned int DefaultXKeysymFromHardwareKeycode(unsigned int keycode);
+// Creates a fake XEvent for testing. The caller must delete the returned value.
+XEvent* CreateXEventForTesting(EventType type,
+ KeyboardCode key_code,
+ int flags);
+
} // namespace ui
#endif // UI_BASE_KEYCODES_KEYBOARD_CODE_CONVERSION_X_H_

Powered by Google App Engine
This is Rietveld 408576698