Chromium Code Reviews| 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 87% |
| rename from samples/android_sample/jni/input_service.cc |
| rename to runtime/embedders/android/input_service.cc |
| index f09c1c2cbd6405f2a13a1bbf7cb109c576120e81..0c4e53965047c0fd617c8325079818380a54353e 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,14 +97,6 @@ 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); |
| - |
|
gram
2013/01/09 17:51:36
Could we leave this in, and just comment out the l
vsm
2013/01/09 18:41:24
Done - added a TODO to use or remove.
On 2013/01/
|
| /* Get the time this event occurred, in the |
| * java.lang.System.nanoTime() time base. */ |
| int64_t when = AKeyEvent_getEventTime(event); |