aec31578d4
Review URL: https://codereview.chromium.org//11467028 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16869 260f80e4-7a28-3924-810f-c04153c831b5
19 lines
594 B
C++
19 lines
594 B
C++
// 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_
|