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_ |