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

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

Issue 14487003: Add a new pair of IPC categories for messages that need handling as input events (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: addresses feedback Created 7 years, 8 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.cc
diff --git a/content/browser/renderer_host/ime_adapter_android.cc b/content/browser/renderer_host/ime_adapter_android.cc
index 10fcb98dad06063387c57bb63640e03c11a2f628..6de2598aad799e1080ef2defbcd0ed2c104952b3 100644
--- a/content/browser/renderer_host/ime_adapter_android.cc
+++ b/content/browser/renderer_host/ime_adapter_android.cc
@@ -13,6 +13,7 @@
#include "base/utf_string_conversions.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"
@@ -227,7 +228,7 @@ void ImeAdapterAndroid::Unselect(JNIEnv* env, jobject) {
if (!rwhi)
return;
- rwhi->Send(new ViewMsg_Unselect(rwhi->GetRoutingID()));
+ rwhi->Send(new InputMsg_Unselect(rwhi->GetRoutingID()));
}
void ImeAdapterAndroid::SelectAll(JNIEnv* env, jobject) {
@@ -236,7 +237,7 @@ void ImeAdapterAndroid::SelectAll(JNIEnv* env, jobject) {
if (!rwhi)
return;
- rwhi->Send(new ViewMsg_SelectAll(rwhi->GetRoutingID()));
+ rwhi->Send(new InputMsg_SelectAll(rwhi->GetRoutingID()));
}
void ImeAdapterAndroid::Cut(JNIEnv* env, jobject) {
@@ -245,7 +246,7 @@ void ImeAdapterAndroid::Cut(JNIEnv* env, jobject) {
if (!rwhi)
return;
- rwhi->Send(new ViewMsg_Cut(rwhi->GetRoutingID()));
+ rwhi->Send(new InputMsg_Cut(rwhi->GetRoutingID()));
}
void ImeAdapterAndroid::Copy(JNIEnv* env, jobject) {
@@ -254,7 +255,7 @@ void ImeAdapterAndroid::Copy(JNIEnv* env, jobject) {
if (!rwhi)
return;
- rwhi->Send(new ViewMsg_Copy(rwhi->GetRoutingID()));
+ rwhi->Send(new InputMsg_Copy(rwhi->GetRoutingID()));
}
void ImeAdapterAndroid::Paste(JNIEnv* env, jobject) {
@@ -263,7 +264,7 @@ void ImeAdapterAndroid::Paste(JNIEnv* env, jobject) {
if (!rwhi)
return;
- rwhi->Send(new ViewMsg_Paste(rwhi->GetRoutingID()));
+ rwhi->Send(new InputMsg_Paste(rwhi->GetRoutingID()));
}
void ImeAdapterAndroid::ResetImeAdapter(JNIEnv* env, jobject) {
« no previous file with comments | « content/browser/browser_plugin/browser_plugin_guest.cc ('k') | content/browser/renderer_host/render_view_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698