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

Unified Diff: chrome/browser/renderer_host/render_widget_host_view_views.cc

Issue 7972006: Removed sending of the content IPC messages from chrome and replaced them with corresponding APIs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 3 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 | « chrome/browser/printing/print_dialog_cloud.cc ('k') | chrome/browser/ui/cocoa/rwhvm_editcommand_helper.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/renderer_host/render_widget_host_view_views.cc
===================================================================
--- chrome/browser/renderer_host/render_widget_host_view_views.cc (revision 101850)
+++ chrome/browser/renderer_host/render_widget_host_view_views.cc (working copy)
@@ -389,8 +389,7 @@
gfx::Rect screen_bounds = GetScreenBounds();
gfx::Rect intersecting_rect = screen_bounds.Intersect(keyboard_rect);
gfx::Rect available_rect = screen_bounds.Subtract(intersecting_rect);
- host_->Send(new ViewMsg_ScrollFocusedEditableNodeIntoRect(
- host_->routing_id(), available_rect));
+ host_->ScrollFocusedEditableNodeIntoRect(available_rect);
}
#endif
}
@@ -407,7 +406,7 @@
void RenderWidgetHostViewViews::SetBackground(const SkBitmap& background) {
RenderWidgetHostView::SetBackground(background);
if (host_)
- host_->Send(new ViewMsg_SetBackground(host_->routing_id(), background));
+ host_->SetBackground(background);
}
void RenderWidgetHostViewViews::SetVisuallyDeemphasized(
@@ -430,7 +429,7 @@
void RenderWidgetHostViewViews::SelectRect(const gfx::Point& start,
const gfx::Point& end) {
if (host_)
- host_->Send(new ViewMsg_SelectRange(host_->routing_id(), start, end));
+ host_->SelectRange(start, end);
}
bool RenderWidgetHostViewViews::IsCommandIdChecked(int command_id) const {
@@ -472,19 +471,19 @@
void RenderWidgetHostViewViews::ExecuteCommand(int command_id) {
switch (command_id) {
case IDS_APP_CUT:
- host_->Send(new ViewMsg_Cut(host_->routing_id()));
+ host_->Cut();
break;
case IDS_APP_COPY:
- host_->Send(new ViewMsg_Copy(host_->routing_id()));
+ host_->Copy();
break;
case IDS_APP_PASTE:
- host_->Send(new ViewMsg_Paste(host_->routing_id()));
+ host_->Paste();
break;
case IDS_APP_DELETE:
- host_->Send(new ViewMsg_Delete(host_->routing_id()));
+ host_->Delete();
break;
case IDS_APP_SELECT_ALL:
- host_->Send(new ViewMsg_SelectAll(host_->routing_id()));
+ host_->SelectAll();
break;
default:
NOTREACHED();
« no previous file with comments | « chrome/browser/printing/print_dialog_cloud.cc ('k') | chrome/browser/ui/cocoa/rwhvm_editcommand_helper.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698