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

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

Issue 56643003: Start using FocusedNodedChanged to restartInput. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Changes based on jamesr comments 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"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 void DeleteSurroundingText(JNIEnv*, jobject, int before, int after); 49 void DeleteSurroundingText(JNIEnv*, jobject, int before, int after);
50 void Unselect(JNIEnv*, jobject); 50 void Unselect(JNIEnv*, jobject);
51 void SelectAll(JNIEnv*, jobject); 51 void SelectAll(JNIEnv*, jobject);
52 void Cut(JNIEnv*, jobject); 52 void Cut(JNIEnv*, jobject);
53 void Copy(JNIEnv*, jobject); 53 void Copy(JNIEnv*, jobject);
54 void Paste(JNIEnv*, jobject); 54 void Paste(JNIEnv*, jobject);
55 void ResetImeAdapter(JNIEnv*, jobject); 55 void ResetImeAdapter(JNIEnv*, jobject);
56 56
57 // Called from native -> java 57 // Called from native -> java
58 void CancelComposition(); 58 void CancelComposition();
59 void FocusedNodeChanged(bool is_editable_node);
59 60
60 private: 61 private:
61 RenderWidgetHostImpl* GetRenderWidgetHostImpl(); 62 RenderWidgetHostImpl* GetRenderWidgetHostImpl();
62 63
63 RenderWidgetHostViewAndroid* rwhva_; 64 RenderWidgetHostViewAndroid* rwhva_;
64 JavaObjectWeakGlobalRef java_ime_adapter_; 65 JavaObjectWeakGlobalRef java_ime_adapter_;
65 }; 66 };
66 67
67 bool RegisterImeAdapter(JNIEnv* env); 68 bool RegisterImeAdapter(JNIEnv* env);
68 69
69 } // namespace content 70 } // namespace content
70 71
71 #endif // CONTENT_BROWSER_RENDERER_HOST_IME_ADAPTER_ANDROID_H_ 72 #endif // CONTENT_BROWSER_RENDERER_HOST_IME_ADAPTER_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698