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

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

Issue 63253002: Rename WebKit namespace to blink (part 3) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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 | Annotate | Revision Log
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 "base/android/jni_helper.h" 10 #include "base/android/jni_helper.h"
11 11
12 namespace content { 12 namespace content {
13 13
14 class RenderWidgetHostImpl; 14 class RenderWidgetHostImpl;
15 class RenderWidgetHostViewAndroid; 15 class RenderWidgetHostViewAndroid;
16 struct NativeWebKeyboardEvent; 16 struct NativeWebKeyboardEvent;
17 17
18 // This class is in charge of dispatching key events from the java side 18 // This class is in charge of dispatching key events from the java side
19 // and forward to renderer along with input method results via 19 // and forward to renderer along with input method results via
20 // corresponding host view. 20 // corresponding host view.
21 // Ownership of these objects remains on the native side (see 21 // Ownership of these objects remains on the native side (see
22 // RenderWidgetHostViewAndroid). 22 // RenderWidgetHostViewAndroid).
23 class ImeAdapterAndroid { 23 class ImeAdapterAndroid {
24 public: 24 public:
25 explicit ImeAdapterAndroid(RenderWidgetHostViewAndroid* rwhva); 25 explicit ImeAdapterAndroid(RenderWidgetHostViewAndroid* rwhva);
26 ~ImeAdapterAndroid(); 26 ~ImeAdapterAndroid();
27 27
28 // Called from java -> native 28 // Called from java -> native
29 // The java side is responsible to translate android KeyEvent various enums 29 // The java side is responsible to translate android KeyEvent various enums
30 // and values into the corresponding WebKit::WebInputEvent. 30 // and values into the corresponding blink::WebInputEvent.
31 bool SendKeyEvent(JNIEnv* env, jobject, 31 bool SendKeyEvent(JNIEnv* env, jobject,
32 jobject original_key_event, 32 jobject original_key_event,
33 int action, int meta_state, 33 int action, int meta_state,
34 long event_time, int key_code, 34 long event_time, int key_code,
35 bool is_system_key, int unicode_text); 35 bool is_system_key, int unicode_text);
36 // |event_type| is a value of WebInputEvent::Type. 36 // |event_type| is a value of WebInputEvent::Type.
37 bool SendSyntheticKeyEvent(JNIEnv*, 37 bool SendSyntheticKeyEvent(JNIEnv*,
38 jobject, 38 jobject,
39 int event_type, 39 int event_type,
40 long timestamp_ms, 40 long timestamp_ms,
(...skipping 21 matching lines...) Expand all
62 62
63 RenderWidgetHostViewAndroid* rwhva_; 63 RenderWidgetHostViewAndroid* rwhva_;
64 JavaObjectWeakGlobalRef java_ime_adapter_; 64 JavaObjectWeakGlobalRef java_ime_adapter_;
65 }; 65 };
66 66
67 bool RegisterImeAdapter(JNIEnv* env); 67 bool RegisterImeAdapter(JNIEnv* env);
68 68
69 } // namespace content 69 } // namespace content
70 70
71 #endif // CONTENT_BROWSER_RENDERER_HOST_IME_ADAPTER_ANDROID_H_ 71 #endif // CONTENT_BROWSER_RENDERER_HOST_IME_ADAPTER_ANDROID_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/image_transport_factory_android.cc ('k') | content/browser/renderer_host/ime_adapter_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698