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

Unified Diff: runtime/embedders/android/input_handler.h

Issue 11467028: Migrate files to embedder. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Code review fixes Created 7 years, 11 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
« no previous file with comments | « runtime/embedders/android/graphics.cc ('k') | runtime/embedders/android/input_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« no previous file with comments | « runtime/embedders/android/graphics.cc ('k') | runtime/embedders/android/input_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698