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

Unified Diff: content/browser/renderer_host/ime_adapter_android.cc

Issue 2755453004: Fix android key event timestamps (Closed)
Patch Set: event_time -> time_ms Created 3 years, 9 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 | « content/browser/renderer_host/ime_adapter_android.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/ime_adapter_android.cc
diff --git a/content/browser/renderer_host/ime_adapter_android.cc b/content/browser/renderer_host/ime_adapter_android.cc
index 3721d3640f0e478e0210226159baa0b6f6cc13a0..bb8a938a2b37f261362f96e56819d518d5ee921f 100644
--- a/content/browser/renderer_host/ime_adapter_android.cc
+++ b/content/browser/renderer_host/ime_adapter_android.cc
@@ -46,7 +46,7 @@ NativeWebKeyboardEvent NativeWebKeyboardEventFromKeyEvent(
const base::android::JavaRef<jobject>& java_key_event,
int type,
int modifiers,
- long time_ms,
+ jlong time_ms,
int key_code,
int scan_code,
bool is_system_key,
@@ -123,14 +123,14 @@ bool ImeAdapterAndroid::SendKeyEvent(
const JavaParamRef<jobject>& original_key_event,
int type,
int modifiers,
- long time_ms,
+ jlong time_ms,
int key_code,
int scan_code,
bool is_system_key,
int unicode_char) {
NativeWebKeyboardEvent event = NativeWebKeyboardEventFromKeyEvent(
- env, original_key_event, type, modifiers,
- time_ms / 1000.0, key_code, scan_code, is_system_key, unicode_char);
+ env, original_key_event, type, modifiers, time_ms, key_code, scan_code,
+ is_system_key, unicode_char);
rwhva_->SendKeyEvent(event);
return true;
}
« no previous file with comments | « content/browser/renderer_host/ime_adapter_android.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698