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

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

Issue 1589953005: Support InputMethodManager#updateCursorAnchorInfo for Android 5.0 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments in #38 Created 4 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
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>
11
10 #include "base/android/jni_weak_ref.h" 12 #include "base/android/jni_weak_ref.h"
13 #include "ui/gfx/geometry/rect_f.h"
11 14
12 namespace content { 15 namespace content {
13 16
14 class RenderFrameHost; 17 class RenderFrameHost;
15 class RenderWidgetHostImpl; 18 class RenderWidgetHostImpl;
16 class RenderWidgetHostViewAndroid; 19 class RenderWidgetHostViewAndroid;
17 class WebContents; 20 class WebContents;
18 struct NativeWebKeyboardEvent; 21 struct NativeWebKeyboardEvent;
19 22
20 // This class is in charge of dispatching key events from the java side 23 // This class is in charge of dispatching key events from the java side
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 int before, 78 int before,
76 int after); 79 int after);
77 void ResetImeAdapter(JNIEnv*, const base::android::JavaParamRef<jobject>&); 80 void ResetImeAdapter(JNIEnv*, const base::android::JavaParamRef<jobject>&);
78 bool RequestTextInputStateUpdate(JNIEnv*, 81 bool RequestTextInputStateUpdate(JNIEnv*,
79 const base::android::JavaParamRef<jobject>&); 82 const base::android::JavaParamRef<jobject>&);
80 bool IsImeThreadEnabled(JNIEnv*, const base::android::JavaParamRef<jobject>&); 83 bool IsImeThreadEnabled(JNIEnv*, const base::android::JavaParamRef<jobject>&);
81 84
82 // Called from native -> java 85 // Called from native -> java
83 void CancelComposition(); 86 void CancelComposition();
84 void FocusedNodeChanged(bool is_editable_node); 87 void FocusedNodeChanged(bool is_editable_node);
88 void SetCharacterBounds(const std::vector<gfx::RectF>& rects);
85 89
86 private: 90 private:
87 RenderWidgetHostImpl* GetRenderWidgetHostImpl(); 91 RenderWidgetHostImpl* GetRenderWidgetHostImpl();
88 RenderFrameHost* GetFocusedFrame(); 92 RenderFrameHost* GetFocusedFrame();
89 WebContents* GetWebContents(); 93 WebContents* GetWebContents();
90 94
91 RenderWidgetHostViewAndroid* rwhva_; 95 RenderWidgetHostViewAndroid* rwhva_;
92 JavaObjectWeakGlobalRef java_ime_adapter_; 96 JavaObjectWeakGlobalRef java_ime_adapter_;
93 }; 97 };
94 98
95 bool RegisterImeAdapter(JNIEnv* env); 99 bool RegisterImeAdapter(JNIEnv* env);
96 100
97 } // namespace content 101 } // namespace content
98 102
99 #endif // CONTENT_BROWSER_RENDERER_HOST_IME_ADAPTER_ANDROID_H_ 103 #endif // CONTENT_BROWSER_RENDERER_HOST_IME_ADAPTER_ANDROID_H_
OLDNEW
« 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