#include <jni.h>
-#include "base/android/jni_helper.h"
+#include <vector>
+
+#include "base/android/jni_weak_ref.h"
+#include "ui/gfx/geometry/rect.h"
namespace content {
class RenderFrameHost;
class RenderWidgetHostImpl;
class RenderWidgetHostViewAndroid;
+class WebContents;
struct NativeWebKeyboardEvent;
// This class is in charge of dispatching key events from the java side
int event_type,
long timestamp_ms,
int native_key_code,
+ int modifiers,
int unicode_char);
- void SetComposingText(JNIEnv*, jobject, jstring text, int new_cursor_pos);
- void CommitText(JNIEnv*, jobject, jstring text);
+ void SetComposingText(JNIEnv*,
+ jobject obj,
+ jobject text,
+ jstring text_str,
+ int new_cursor_pos);
+ void CommitText(JNIEnv*, jobject, jstring text_str);
void FinishComposingText(JNIEnv* env, jobject);
void AttachImeAdapter(JNIEnv*, jobject java_object);
void SetEditableSelectionOffsets(JNIEnv*, jobject, int start, int end);
// Called from native -> java
void CancelComposition();
void FocusedNodeChanged(bool is_editable_node);
+ void SetCharacterBounds(const std::vector<gfx::Rect>& rects);
private:
RenderWidgetHostImpl* GetRenderWidgetHostImpl();
RenderFrameHost* GetFocusedFrame();
+ WebContents* GetWebContents();
RenderWidgetHostViewAndroid* rwhva_;
JavaObjectWeakGlobalRef java_ime_adapter_;