Index: webkit/support/webkit_support.cc |
diff --git webkit/support/webkit_support.cc webkit/support/webkit_support.cc |
index 8f8a514..d877325 100644 |
--- webkit/support/webkit_support.cc |
+++ 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" |
@@ -612,6 +615,14 @@ void OpenFileSystem(WebFrame* frame, WebFileSystem::Type type, |
fileSystem->OpenFileSystem(frame, type, size, create, callbacks); |
} |
+// Keyboard code |
+#if defined(OS_LINUX) |
+int NativeKeyCodeForWindowsKeyCode(int keycode, bool shift) { |
+ ui::KeyboardCode code = static_cast<ui::KeyboardCode>(keycode); |
+ return ui::GdkNativeKeyCodeForWindowsKeyCode(code, shift); |
+} |
+#endif |
+ |
// Timers |
double GetForegroundTabTimerInterval() { |
return webkit_glue::kForegroundTabTimerInterval; |