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

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

Issue 7740048: Chrome Linux DRT nativeKeyCode helper (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move keyboard_code_conversion_gtk.cc function comment to the header. Created 9 years, 4 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: ui/base/keycodes/keyboard_code_conversion_gtk.h
diff --git a/ui/base/keycodes/keyboard_code_conversion_gtk.h b/ui/base/keycodes/keyboard_code_conversion_gtk.h
index 6a9d293cb5b3f6165174334068c378610f98c723..7a4e16751537e64b10e66f632b97522cccf939b7 100644
--- a/ui/base/keycodes/keyboard_code_conversion_gtk.h
+++ b/ui/base/keycodes/keyboard_code_conversion_gtk.h
@@ -48,6 +48,11 @@ UI_EXPORT KeyboardCode WindowsKeyCodeForGdkKeyCode(int keycode);
UI_EXPORT int GdkKeyCodeForWindowsKeyCode(KeyboardCode keycode, bool shift);
+// For WebKit DRT testing: simulate the native keycode for the given
+// input |keycode|. Return the native keycode.
+UI_EXPORT int GdkNativeKeyCodeForWindowsKeyCode(KeyboardCode keycode,
+ bool shift);
+
UI_EXPORT KeyboardCode KeyboardCodeFromGdkEventKey(GdkEventKey* event);
} // namespace ui
« no previous file with comments | « no previous file | ui/base/keycodes/keyboard_code_conversion_gtk.cc » ('j') | ui/base/keycodes/keyboard_code_conversion_gtk.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698