Index: content/browser/renderer_host/render_widget_host_view_gtk.cc |
=================================================================== |
--- content/browser/renderer_host/render_widget_host_view_gtk.cc (revision 101850) |
+++ content/browser/renderer_host/render_widget_host_view_gtk.cc (working copy) |
@@ -929,7 +929,7 @@ |
void RenderWidgetHostViewGtk::SetBackground(const SkBitmap& background) { |
RenderWidgetHostView::SetBackground(background); |
- host_->Send(new ViewMsg_SetBackground(host_->routing_id(), background)); |
+ host_->SetBackground(background); |
} |
void RenderWidgetHostViewGtk::ModifyEventForEdgeDragging( |
@@ -1192,8 +1192,7 @@ |
EditCommands edit_commands; |
if (!event.skip_in_browser && |
key_bindings_handler_->Match(event, &edit_commands)) { |
- host_->Send(new ViewMsg_SetEditCommandsForNextKeyEvent( |
- host_->routing_id(), edit_commands)); |
+ host_->SetEditCommandsForNextKeyEvent(edit_commands); |
NativeWebKeyboardEvent copy_event(event); |
copy_event.match_edit_command = true; |
host_->ForwardKeyboardEvent(copy_event); |