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

Unified Diff: remoting/client/jni/android_keymap.h

Issue 21120005: Add Android Chromoting client keyboard input (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add missing keymappings and default case for switch (findbugs-enforced) Created 7 years, 5 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: remoting/client/jni/android_keymap.h
diff --git a/remoting/client/jni/android_keymap.h b/remoting/client/jni/android_keymap.h
new file mode 100644
index 0000000000000000000000000000000000000000..9aa341faa77183f14dfc0d6b68074f1623d3f346
--- /dev/null
+++ b/remoting/client/jni/android_keymap.h
@@ -0,0 +1,22 @@
+// Copyright 2013 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.
+
+#ifndef REMOTING_CLIENT_JNI_ANDROID_KEYMAP_H_
+#define REMOTING_CLIENT_JNI_ANDROID_KEYMAP_H_
+
+#include "base/basictypes.h"
+#include "base/memory/scoped_ptr.h"
+
+namespace remoting {
+
+// This is a temporary hack to convert Android's virtual keycodes into USB
+// scancodes. Unfortunately, the current solution uses key mappings whose
+// layout is determined according to the client device's input locale instead
+// of the host's internationalization preferences. The whole process needs to
+// be rethought to accomplish this in an localizable and future-proof way.
garykac 2013/07/30 17:45:26 Please file a bug for this and add a TODO that ref
solb 2013/07/30 18:17:39 265945
+uint32 AndroidKeycodeToUsbKeycode(int android);
+
+} // namespace remoting
+
+#endif

Powered by Google App Engine
This is Rietveld 408576698