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

Unified Diff: chrome/browser/ui/tab_contents/tab_contents_wrapper.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/ui/gtk/find_bar_gtk.cc ('k') | chrome/browser/ui/views/find_bar_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/tab_contents/tab_contents_wrapper.cc
===================================================================
--- chrome/browser/ui/tab_contents/tab_contents_wrapper.cc (revision 101850)
+++ chrome/browser/ui/tab_contents/tab_contents_wrapper.cc (working copy)
@@ -55,7 +55,6 @@
#include "content/browser/renderer_host/render_view_host.h"
#include "content/browser/tab_contents/tab_contents_view.h"
#include "content/common/notification_service.h"
-#include "content/common/view_messages.h"
#include "grit/generated_resources.h"
#include "grit/locale_settings.h"
#include "grit/platform_locale_settings.h"
@@ -604,8 +603,8 @@
StartsWithASCII(*pref_name_in, "webkit.webprefs.", true)) {
UpdateWebPreferences();
} else if (*pref_name_in == prefs::kDefaultZoomLevel) {
- Send(new ViewMsg_SetZoomLevel(
- routing_id(), tab_contents()->GetZoomLevel()));
+ tab_contents()->render_view_host()->SetZoomLevel(
+ tab_contents()->GetZoomLevel());
} else if (*pref_name_in == prefs::kEnableReferrers) {
UpdateRendererPreferences();
} else if (*pref_name_in == prefs::kSafeBrowsingEnabled) {
@@ -650,13 +649,13 @@
}
void TabContentsWrapper::UpdateAlternateErrorPageURL(RenderViewHost* rvh) {
- rvh->Send(new ViewMsg_SetAltErrorPageURL(
- rvh->routing_id(), GetAlternateErrorPageURL()));
+ rvh->SetAltErrorPageURL(GetAlternateErrorPageURL());
}
void TabContentsWrapper::UpdateWebPreferences() {
RenderViewHostDelegate* rvhd = tab_contents();
- Send(new ViewMsg_UpdateWebPreferences(routing_id(), rvhd->GetWebkitPrefs()));
+ tab_contents()->render_view_host()->UpdateWebkitPreferences(
+ rvhd->GetWebkitPrefs());
}
void TabContentsWrapper::UpdateRendererPreferences() {
@@ -685,5 +684,5 @@
}
void TabContentsWrapper::ExitFullscreenMode() {
- Send(new ViewMsg_ExitFullscreen(routing_id()));
+ tab_contents()->render_view_host()->ExitFullscreen();
}
« no previous file with comments | « chrome/browser/ui/gtk/find_bar_gtk.cc ('k') | chrome/browser/ui/views/find_bar_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698