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

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

Issue 2653283002: Route IME Events to Focused RenderWidgets (Android) (Closed)
Patch Set: Addressing creis@'s comments Created 3 years, 10 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
« no previous file with comments | « no previous file | content/browser/renderer_host/ime_adapter_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 57610c06644b5f6dd98a6133c485929ecdcf263a..288f4402ba759a1fc6ab4842c35e229d7f523209 100644
--- a/content/browser/renderer_host/ime_adapter_android.h
+++ b/content/browser/renderer_host/ime_adapter_android.h
@@ -11,6 +11,7 @@
#include "base/android/jni_weak_ref.h"
#include "base/strings/string16.h"
+#include "content/common/content_export.h"
#include "ui/gfx/geometry/rect_f.h"
namespace blink {
@@ -24,14 +25,13 @@ namespace content {
class RenderFrameHost;
class RenderWidgetHostImpl;
class RenderWidgetHostViewAndroid;
-class WebContents;
// This class is in charge of dispatching key events from the java side
// and forward to renderer along with input method results via
// corresponding host view.
// Ownership of these objects remains on the native side (see
// RenderWidgetHostViewAndroid).
-class ImeAdapterAndroid {
+class CONTENT_EXPORT ImeAdapterAndroid {
public:
explicit ImeAdapterAndroid(RenderWidgetHostViewAndroid* rwhva);
~ImeAdapterAndroid();
@@ -86,10 +86,14 @@ class ImeAdapterAndroid {
void FocusedNodeChanged(bool is_editable_node);
void SetCharacterBounds(const std::vector<gfx::RectF>& rects);
+ base::android::ScopedJavaLocalRef<jobject> java_ime_adapter_for_testing(
+ JNIEnv* env) {
+ return java_ime_adapter_.get(env);
+ }
+
private:
- RenderWidgetHostImpl* GetRenderWidgetHostImpl();
+ RenderWidgetHostImpl* GetFocusedWidget();
RenderFrameHost* GetFocusedFrame();
- WebContents* GetWebContents();
std::vector<blink::WebCompositionUnderline> GetUnderlinesFromSpans(
JNIEnv* env,
const base::android::JavaParamRef<jobject>& obj,
« 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