| Index: runtime/embedders/android/input_handler.h
|
| diff --git a/runtime/embedders/android/input_handler.h b/runtime/embedders/android/input_handler.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..b3f80aed7a184bcef90d2e3cde544c3f91fe20ed
|
| --- /dev/null
|
| +++ b/runtime/embedders/android/input_handler.h
|
| @@ -0,0 +1,18 @@
|
| +// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| +// for details. All rights reserved. Use of this source code is governed by a
|
| +// BSD-style license that can be found in the LICENSE file.
|
| +
|
| +#ifndef EMBEDDERS_ANDROID_INPUT_HANDLER_H_
|
| +#define EMBEDDERS_ANDROID_INPUT_HANDLER_H_
|
| +
|
| +#include <android/input.h>
|
| +
|
| +class InputHandler {
|
| + public:
|
| + virtual int32_t Start() { return 0; }
|
| + virtual bool OnTouchEvent(AInputEvent* event) = 0;
|
| + virtual bool OnKeyEvent(AInputEvent* event) = 0;
|
| + virtual ~InputHandler() {}
|
| +};
|
| +
|
| +#endif // EMBEDDERS_ANDROID_INPUT_HANDLER_H_
|
|
|