Index: webkit/support/webkit_support.cc |
diff --git a/webkit/support/webkit_support.cc b/webkit/support/webkit_support.cc |
index 8f8a5142fdf8961c7d82e61a293cf2ff8de2c86f..aeba7369d6ad0c79cce19cae5c0da14c14c90d72 100644 |
--- a/webkit/support/webkit_support.cc |
+++ b/webkit/support/webkit_support.cc |
@@ -37,6 +37,9 @@ |
#include "third_party/WebKit/Source/WebKit/chromium/public/WebKit.h" |
#include "third_party/WebKit/Source/WebKit/chromium/public/WebPluginParams.h" |
#include "third_party/WebKit/Source/WebKit/chromium/public/WebURLError.h" |
+#if defined(OS_LINUX) |
+#include "ui/base/keycodes/keyboard_code_conversion_gtk.h" |
+#endif |
#include "ui/gfx/gl/gl_context.h" |
#include "ui/gfx/gl/gl_implementation.h" |
#include "ui/gfx/gl/gl_surface.h" |
@@ -617,4 +620,11 @@ double GetForegroundTabTimerInterval() { |
return webkit_glue::kForegroundTabTimerInterval; |
} |
+#if defined(OS_LINUX) |
+int NativeKeyCodeForWindowsKeyCode(int keycode, bool shift) { |
+ ui::KeyboardCode code = static_cast<ui::KeyboardCode>(keycode); |
+ return ui::GdkNativeKeyCodeForWindowsKeyCode(code, shift); |
+} |
+#endif |
+ |
} // namespace webkit_support |