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

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: Tweaks based on feedback. 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..7da4b633a9f1e7f851639cd9f64e19948ae01291
--- /dev/null
+++ b/examples/media_test/keystroke.h
@@ -0,0 +1,22 @@
+// 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 mojo {
+namespace media {
+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
+} // namespace media
+} // namespace mojo
+
+#endif // EXAMPLES_MEDIA_TEST_KEYSTROKE_H_

Powered by Google App Engine
This is Rietveld 408576698