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

Unified Diff: apps/moterm/key_util.h

Issue 1130093003: Moterm part 4: Add input event -> input character conversion function. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 7 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
« no previous file with comments | « apps/moterm/BUILD.gn ('k') | apps/moterm/key_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: apps/moterm/key_util.h
diff --git a/apps/moterm/key_util.h b/apps/moterm/key_util.h
new file mode 100644
index 0000000000000000000000000000000000000000..d08a8367d96a73cb2add60adcad13bab3649739f
--- /dev/null
+++ b/apps/moterm/key_util.h
@@ -0,0 +1,19 @@
+// Copyright 2015 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 APPS_MOTERM_KEY_UTIL_H_
+#define APPS_MOTERM_KEY_UTIL_H_
+
+#include <string>
+
+namespace mojo {
+class Event;
+}
+
+// Gets an appropriate sequence of characters to generate for the given key
+// pressed event (|key_event| must have |action| value
+// |EVENT_TYPE_KEY_PRESSED|). (Here, "appropriate" means VT100/xterm-ish.)
+std::string GetInputSequenceForKeyPressedEvent(const mojo::Event& key_event);
+
+#endif // APPS_MOTERM_KEY_UTIL_H_
« no previous file with comments | « apps/moterm/BUILD.gn ('k') | apps/moterm/key_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698