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

Unified Diff: webkit/plugins/ppapi/usb_scan_code_conversion.cc

Issue 9359048: Calc USB scancodes for key events (linux only for now) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review comments Created 8 years, 10 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: webkit/plugins/ppapi/usb_scan_code_conversion.cc
diff --git a/webkit/plugins/ppapi/usb_scan_code_conversion.cc b/webkit/plugins/ppapi/usb_scan_code_conversion.cc
new file mode 100644
index 0000000000000000000000000000000000000000..e3315d2ea8b0c630b746c58373dbf03b21ae932f
--- /dev/null
+++ b/webkit/plugins/ppapi/usb_scan_code_conversion.cc
@@ -0,0 +1,24 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "webkit/plugins/ppapi/usb_scan_code_conversion.h"
+
+#include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h"
Wez 2012/02/17 01:35:30 nit: No need to include this since we don't use it
garykac 2012/02/22 21:31:07 Done.
+
+using WebKit::WebKeyboardEvent;
+
+namespace webkit {
+namespace ppapi {
+
+// TODO(garykac): Implement for Windows and Mac.
+#if !defined(OS_LINUX)
+
+uint32_t UsbScanCodeForKeyboardEvent(const WebKeyboardEvent& key_event) {
+ return 0;
+}
+
+#endif
+
+} // namespace ppapi
+} // namespace webkit

Powered by Google App Engine
This is Rietveld 408576698