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

Unified Diff: content/browser/renderer_host/render_widget_host_view_mac.mm

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: compile fixes pt 2 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/render_widget_host_view_mac.mm
diff --git a/content/browser/renderer_host/render_widget_host_view_mac.mm b/content/browser/renderer_host/render_widget_host_view_mac.mm
index ec43a9dc0c87606ce66d72240d48b23638f917c7..9a9784e0453ad45729fab70cc936b5ae5a9c5de4 100644
--- a/content/browser/renderer_host/render_widget_host_view_mac.mm
+++ b/content/browser/renderer_host/render_widget_host_view_mac.mm
@@ -33,6 +33,7 @@
#include "content/common/edit_command.h"
#include "content/common/gpu/gpu_messages.h"
#include "content/common/plugin_messages.h"
+#include "content/common/view_input_messages.h"
#include "content/common/view_messages.h"
#include "content/port/browser/render_widget_host_view_frame_subscriber.h"
#include "content/public/browser/browser_thread.h"
@@ -1949,7 +1950,7 @@ gfx::Rect RenderWidgetHostViewMac::GetScaledOpenGLPixelRect(
delayEventUntilAfterImeCompostion = YES;
} else {
if (!editCommands_.empty()) {
- widgetHost->Send(new ViewMsg_SetEditCommandsForNextKeyEvent(
+ widgetHost->Send(new ViewInputMsg_SetEditCommandsForNextKeyEvent(
widgetHost->GetRoutingID(), editCommands_));
}
widgetHost->ForwardKeyboardEvent(event);
@@ -2015,7 +2016,7 @@ gfx::Rect RenderWidgetHostViewMac::GetScaledOpenGLPixelRect(
// thus it won't destroy the widget.
if (!editCommands_.empty()) {
- widgetHost->Send(new ViewMsg_SetEditCommandsForNextKeyEvent(
+ widgetHost->Send(new ViewInputMsg_SetEditCommandsForNextKeyEvent(
widgetHost->GetRoutingID(), editCommands_));
}
widgetHost->ForwardKeyboardEvent(event);
@@ -3077,7 +3078,9 @@ extern NSString *NSTextInputReplacementRangeAttributeName;
editCommands_.push_back(EditCommand(command, ""));
} else {
RenderWidgetHostImpl* rwh = renderWidgetHostView_->render_widget_host_;
- rwh->Send(new ViewMsg_ExecuteEditCommand(rwh->GetRoutingID(), command, ""));
+ rwh->Send(new ViewInputMsg_ExecuteEditCommand(rwh->GetRoutingID(),
+ command,
+ ""));
}
}

Powered by Google App Engine
This is Rietveld 408576698