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

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

Issue 16836004: Route Android InputMsg operations through RenderWidgetHost (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Also fix RWHVA Created 7 years, 6 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/render_widget_host_impl.h » ('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.cc
diff --git a/content/browser/renderer_host/ime_adapter_android.cc b/content/browser/renderer_host/ime_adapter_android.cc
index 7818e594fa567218a83279f01f39b6a54c35b99d..fccd8773e73df92a6c372628122459cc17deea1a 100644
--- a/content/browser/renderer_host/ime_adapter_android.cc
+++ b/content/browser/renderer_host/ime_adapter_android.cc
@@ -13,7 +13,6 @@
#include "base/time.h"
#include "content/browser/renderer_host/render_widget_host_impl.h"
#include "content/browser/renderer_host/render_widget_host_view_android.h"
-#include "content/common/input_messages.h"
#include "content/common/view_messages.h"
#include "content/public/browser/native_web_keyboard_event.h"
#include "jni/ImeAdapter_jni.h"
@@ -228,7 +227,7 @@ void ImeAdapterAndroid::Unselect(JNIEnv* env, jobject) {
if (!rwhi)
return;
- rwhi->Send(new InputMsg_Unselect(rwhi->GetRoutingID()));
+ rwhi->Unselect();
}
void ImeAdapterAndroid::SelectAll(JNIEnv* env, jobject) {
@@ -237,7 +236,7 @@ void ImeAdapterAndroid::SelectAll(JNIEnv* env, jobject) {
if (!rwhi)
return;
- rwhi->Send(new InputMsg_SelectAll(rwhi->GetRoutingID()));
+ rwhi->SelectAll();
}
void ImeAdapterAndroid::Cut(JNIEnv* env, jobject) {
@@ -246,7 +245,7 @@ void ImeAdapterAndroid::Cut(JNIEnv* env, jobject) {
if (!rwhi)
return;
- rwhi->Send(new InputMsg_Cut(rwhi->GetRoutingID()));
+ rwhi->Cut();
}
void ImeAdapterAndroid::Copy(JNIEnv* env, jobject) {
@@ -255,7 +254,7 @@ void ImeAdapterAndroid::Copy(JNIEnv* env, jobject) {
if (!rwhi)
return;
- rwhi->Send(new InputMsg_Copy(rwhi->GetRoutingID()));
+ rwhi->Copy();
}
void ImeAdapterAndroid::Paste(JNIEnv* env, jobject) {
@@ -264,7 +263,7 @@ void ImeAdapterAndroid::Paste(JNIEnv* env, jobject) {
if (!rwhi)
return;
- rwhi->Send(new InputMsg_Paste(rwhi->GetRoutingID()));
+ rwhi->Paste();
}
void ImeAdapterAndroid::ResetImeAdapter(JNIEnv* env, jobject) {
« no previous file with comments | « no previous file | content/browser/renderer_host/render_widget_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698