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

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

Issue 643193003: Support InputMethodManager#updateCursorAnchorInfo for Android 5.0 (C++ version) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Send ImeCompositionRangeChanged only when necessary Created 5 years, 11 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
Index: content/browser/renderer_host/ime_adapter_android.h
diff --git a/content/browser/renderer_host/ime_adapter_android.h b/content/browser/renderer_host/ime_adapter_android.h
index 1621811f02ca365b4ebdc79b9302b5afc66e170e..0b9f0002f8e44beb09e289764d048dfdff67cb03 100644
--- a/content/browser/renderer_host/ime_adapter_android.h
+++ b/content/browser/renderer_host/ime_adapter_android.h
@@ -8,6 +8,8 @@
#include <jni.h>
#include "base/android/jni_weak_ref.h"
+#include "base/android/scoped_java_ref.h"
+#include "ui/gfx/geometry/rect.h"
namespace content {
@@ -54,6 +56,9 @@ class ImeAdapterAndroid {
void SetEditableSelectionOffsets(JNIEnv*, jobject, int start, int end);
void SetComposingRegion(JNIEnv*, jobject, int start, int end);
void DeleteSurroundingText(JNIEnv*, jobject, int before, int after);
+ bool RequestCursorUpdates(JNIEnv* env,
+ jobject obj,
+ int cursor_update_mode);
void Unselect(JNIEnv*, jobject);
void SelectAll(JNIEnv*, jobject);
void Cut(JNIEnv*, jobject);
@@ -64,6 +69,8 @@ class ImeAdapterAndroid {
// Called from native -> java
void CancelComposition();
void FocusedNodeChanged(bool is_editable_node);
+ void UpdateCursorAnchorInfo(
+ const base::android::ScopedJavaLocalRef<jobject>& cursor_anchor_info);
private:
RenderWidgetHostImpl* GetRenderWidgetHostImpl();
« no previous file with comments | « content/browser/android/content_view_core_impl.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