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

Unified Diff: chrome/browser/ui/views/tab_contents/tab_contents_view_views.cc

Issue 9473001: Extract minimal RenderViewHost interface for embedders, leaving (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Ready for initial review. Created 8 years, 10 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: chrome/browser/ui/views/tab_contents/tab_contents_view_views.cc
diff --git a/chrome/browser/ui/views/tab_contents/tab_contents_view_views.cc b/chrome/browser/ui/views/tab_contents/tab_contents_view_views.cc
index 2413f51f757cb1d865f19ab2f1a455a1d7c5a54b..6a0db26b367b4d345531ab2a00cb18ab05b3211d 100644
--- a/chrome/browser/ui/views/tab_contents/tab_contents_view_views.cc
+++ b/chrome/browser/ui/views/tab_contents/tab_contents_view_views.cc
@@ -79,14 +79,14 @@ void TabContentsViewViews::CreateView(const gfx::Size& initial_size) {
RenderWidgetHostView* TabContentsViewViews::CreateViewForWidget(
RenderWidgetHost* render_widget_host) {
- if (render_widget_host->view()) {
+ if (render_widget_host->GetView()) {
// During testing, the view will already be set up in most cases to the
// test view, so we don't want to clobber it with a real one. To verify that
// this actually is happening (and somebody isn't accidentally creating the
// view twice), we check for the RVH Factory, which will be set when we're
// making special ones (which go along with the special views).
DCHECK(RenderViewHostFactory::has_factory());
- return render_widget_host->view();
+ return render_widget_host->GetView();
}
return native_tab_contents_view_->CreateRenderWidgetHostView(
@@ -296,7 +296,7 @@ void TabContentsViewViews::TakeFocus(bool reverse) {
void TabContentsViewViews::CloseTab() {
RenderViewHost* rvh = web_contents_->GetRenderViewHost();
- rvh->delegate()->Close(rvh);
+ rvh->GetDelegate()->Close(rvh);
}
void TabContentsViewViews::CreateNewWindow(

Powered by Google App Engine
This is Rietveld 408576698