OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef EXAMPLES_MEDIA_TEST_KEYSTROKE_H_ |
| 6 #define EXAMPLES_MEDIA_TEST_KEYSTROKE_H_ |
| 7 |
| 8 namespace examples { |
| 9 |
| 10 // Returns keystroke or 0 if no key has been pressed. This is non-blocking, |
| 11 // but requires the user to hit enter and doesn't suppress echo. Enter alone |
| 12 // produces a newline ('\n'). If non-newline characters are entered, the |
| 13 // terminating newline is suppressed. |
| 14 char Keystroke(); |
| 15 |
| 16 } // namespace examples |
| 17 |
| 18 #endif // EXAMPLES_MEDIA_TEST_KEYSTROKE_H_ |
OLD | NEW |