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

Unified Diff: runtime/embedders/android/input_service.cc

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/input_service.h ('k') | runtime/embedders/android/log.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/embedders/android/input_service.cc
diff --git a/samples/android_sample/jni/input_service.cc b/runtime/embedders/android/input_service.cc
similarity index 91%
rename from samples/android_sample/jni/input_service.cc
rename to runtime/embedders/android/input_service.cc
index f09c1c2cbd6405f2a13a1bbf7cb109c576120e81..68410f1c64aa47ea224b3a28a514a0d4b1f9f3da 100644
--- a/samples/android_sample/jni/input_service.cc
+++ b/runtime/embedders/android/input_service.cc
@@ -5,8 +5,8 @@
#include <android_native_app_glue.h>
#include <cmath>
-#include "jni/input_service.h"
-#include "jni/log.h"
+#include "embedders/android/input_service.h"
+#include "embedders/android/log.h"
InputService::InputService(android_app* application,
VMGlue* vm_glue,
@@ -97,13 +97,14 @@ bool InputService::OnKeyEvent(AInputEvent* event) {
* that have occurred. */
int32_t repeat = AKeyEvent_getRepeatCount(event);
- /* Get the time of the most recent key down event, in the
- * java.lang.System.nanoTime() time base. If this is a down event,
- * this will be the same as eventTime.
- * Note that when chording keys, this value is the down time of the most
- * recently pressed key, which may not be the same physical key of this
- * event. */
- int64_t key_down_time = AKeyEvent_getDownTime(event);
+ /* Get the time of the most recent key down event, in the
+ * java.lang.System.nanoTime() time base. If this is a down event,
+ * this will be the same as eventTime.
+ * Note that when chording keys, this value is the down time of the most
+ * recently pressed key, which may not be the same physical key of this
+ * event. */
+ // TODO(gram): Use or remove this.
+ // int64_t key_down_time = AKeyEvent_getDownTime(event);
/* Get the time this event occurred, in the
* java.lang.System.nanoTime() time base. */
« no previous file with comments | « runtime/embedders/android/input_service.h ('k') | runtime/embedders/android/log.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698