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

Side by Side Diff: content/browser/renderer_host/ime_adapter_android.h

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 unified diff | Download patch
« no previous file with comments | « no previous file | content/browser/renderer_host/ime_adapter_android.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_RENDERER_HOST_IME_ADAPTER_ANDROID_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_IME_ADAPTER_ANDROID_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_IME_ADAPTER_ANDROID_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_IME_ADAPTER_ANDROID_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 9
10 #include <vector> 10 #include <vector>
(...skipping 25 matching lines...) Expand all
36 explicit ImeAdapterAndroid(RenderWidgetHostViewAndroid* rwhva); 36 explicit ImeAdapterAndroid(RenderWidgetHostViewAndroid* rwhva);
37 ~ImeAdapterAndroid(); 37 ~ImeAdapterAndroid();
38 38
39 // Called from java -> native 39 // Called from java -> native
40 bool SendKeyEvent( 40 bool SendKeyEvent(
41 JNIEnv* env, 41 JNIEnv* env,
42 const base::android::JavaParamRef<jobject>&, 42 const base::android::JavaParamRef<jobject>&,
43 const base::android::JavaParamRef<jobject>& original_key_event, 43 const base::android::JavaParamRef<jobject>& original_key_event,
44 int type, 44 int type,
45 int modifiers, 45 int modifiers,
46 long event_time, 46 jlong time_ms,
47 int key_code, 47 int key_code,
48 int scan_code, 48 int scan_code,
49 bool is_system_key, 49 bool is_system_key,
50 int unicode_text); 50 int unicode_text);
51 void SetComposingText(JNIEnv* env, 51 void SetComposingText(JNIEnv* env,
52 const base::android::JavaParamRef<jobject>& obj, 52 const base::android::JavaParamRef<jobject>& obj,
53 const base::android::JavaParamRef<jobject>& text, 53 const base::android::JavaParamRef<jobject>& text,
54 const base::android::JavaParamRef<jstring>& text_str, 54 const base::android::JavaParamRef<jstring>& text_str,
55 int relative_cursor_pos); 55 int relative_cursor_pos);
56 void CommitText(JNIEnv* env, 56 void CommitText(JNIEnv* env,
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 107
108 RenderWidgetHostViewAndroid* rwhva_; 108 RenderWidgetHostViewAndroid* rwhva_;
109 JavaObjectWeakGlobalRef java_ime_adapter_; 109 JavaObjectWeakGlobalRef java_ime_adapter_;
110 }; 110 };
111 111
112 bool RegisterImeAdapter(JNIEnv* env); 112 bool RegisterImeAdapter(JNIEnv* env);
113 113
114 } // namespace content 114 } // namespace content
115 115
116 #endif // CONTENT_BROWSER_RENDERER_HOST_IME_ADAPTER_ANDROID_H_ 116 #endif // CONTENT_BROWSER_RENDERER_HOST_IME_ADAPTER_ANDROID_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/renderer_host/ime_adapter_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698