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

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

Issue 1278593004: Introduce ThreadedInputConnection behind a switch (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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 "base/android/jni_weak_ref.h" 10 #include "base/android/jni_weak_ref.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 jobject obj, 47 jobject obj,
48 jobject text, 48 jobject text,
49 jstring text_str, 49 jstring text_str,
50 int new_cursor_pos); 50 int new_cursor_pos);
51 void CommitText(JNIEnv*, jobject, jstring text_str); 51 void CommitText(JNIEnv*, jobject, jstring text_str);
52 void FinishComposingText(JNIEnv* env, jobject); 52 void FinishComposingText(JNIEnv* env, jobject);
53 void AttachImeAdapter(JNIEnv*, jobject java_object); 53 void AttachImeAdapter(JNIEnv*, jobject java_object);
54 void SetEditableSelectionOffsets(JNIEnv*, jobject, int start, int end); 54 void SetEditableSelectionOffsets(JNIEnv*, jobject, int start, int end);
55 void SetComposingRegion(JNIEnv*, jobject, int start, int end); 55 void SetComposingRegion(JNIEnv*, jobject, int start, int end);
56 void DeleteSurroundingText(JNIEnv*, jobject, int before, int after); 56 void DeleteSurroundingText(JNIEnv*, jobject, int before, int after);
57 void RequestTextInputStateUpdate(JNIEnv*, jobject);
57 void ResetImeAdapter(JNIEnv*, jobject); 58 void ResetImeAdapter(JNIEnv*, jobject);
58 59
59 // Called from native -> java 60 // Called from native -> java
60 void CancelComposition(); 61 void CancelComposition();
61 void FocusedNodeChanged(bool is_editable_node); 62 void FocusedNodeChanged(bool is_editable_node);
62 63
63 private: 64 private:
64 RenderWidgetHostImpl* GetRenderWidgetHostImpl(); 65 RenderWidgetHostImpl* GetRenderWidgetHostImpl();
65 RenderFrameHost* GetFocusedFrame(); 66 RenderFrameHost* GetFocusedFrame();
66 WebContents* GetWebContents(); 67 WebContents* GetWebContents();
67 68
68 RenderWidgetHostViewAndroid* rwhva_; 69 RenderWidgetHostViewAndroid* rwhva_;
69 JavaObjectWeakGlobalRef java_ime_adapter_; 70 JavaObjectWeakGlobalRef java_ime_adapter_;
70 }; 71 };
71 72
72 bool RegisterImeAdapter(JNIEnv* env); 73 bool RegisterImeAdapter(JNIEnv* env);
73 74
74 } // namespace content 75 } // namespace content
75 76
76 #endif // CONTENT_BROWSER_RENDERER_HOST_IME_ADAPTER_ANDROID_H_ 77 #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