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

Unified Diff: examples/media_test/keystroke.h

Issue 1809703003: Motown: Add examples/media_test, a command line media player app. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 9 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: examples/media_test/keystroke.h
diff --git a/examples/media_test/keystroke.h b/examples/media_test/keystroke.h
new file mode 100644
index 0000000000000000000000000000000000000000..258b067ae9e6acab0ce8344720b51149930fe842
--- /dev/null
+++ b/examples/media_test/keystroke.h
@@ -0,0 +1,18 @@
+// 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 EXAMPLES_MEDIA_TEST_KEYSTROKE_H_
+#define EXAMPLES_MEDIA_TEST_KEYSTROKE_H_
+
+namespace examples {
+
+// Returns keystroke or 0 if no key has been pressed. This is non-blocking,
+// but requires the user to hit enter and doesn't suppress echo. Enter alone
+// produces a newline ('\n'). If non-newline characters are entered, the
+// terminating newline is suppressed.
+char Keystroke();
+
+} // namespace examples
+
+#endif // EXAMPLES_MEDIA_TEST_KEYSTROKE_H_

Powered by Google App Engine
This is Rietveld 408576698