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

Unified Diff: content/browser/tab_contents/tab_contents.cc

Issue 9347042: Introduce content::RenderWidgetHostViewPort (in content/port/browser). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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: content/browser/tab_contents/tab_contents.cc
diff --git a/content/browser/tab_contents/tab_contents.cc b/content/browser/tab_contents/tab_contents.cc
index 126019a7e7bb8c9af331ef6f0f4efd96b4791a72..64db85382a6e990aa875cfde254442dddf7b29e8 100644
--- a/content/browser/tab_contents/tab_contents.cc
+++ b/content/browser/tab_contents/tab_contents.cc
@@ -122,6 +122,7 @@ using content::NavigationEntry;
using content::NavigationEntryImpl;
using content::OpenURLParams;
using content::RenderViewHostDelegate;
+using content::RenderWidgetHostViewPort;
using content::SiteInstance;
using content::SSLStatus;
using content::UserMetricsAction;
@@ -292,7 +293,7 @@ TabContents::~TabContents() {
if (GetNativeView()) {
RenderViewHost* host = GetRenderViewHost();
if (host && host->view())
- RenderWidgetHostViewBase::FromRWHV(host->view())->WillWmDestroy();
+ RenderWidgetHostViewPort::FromRWHV(host->view())->WillWmDestroy();
}
#endif
@@ -761,8 +762,8 @@ void TabContents::NotifyNavigationStateChanged(unsigned changed_flags) {
void TabContents::DidBecomeSelected() {
controller_.SetActive(true);
- RenderWidgetHostViewBase* rwhv =
- RenderWidgetHostViewBase::FromRWHV(GetRenderWidgetHostView());
+ RenderWidgetHostViewPort* rwhv =
+ RenderWidgetHostViewPort::FromRWHV(GetRenderWidgetHostView());
if (rwhv) {
rwhv->DidBecomeSelected();
#if defined(OS_MACOSX)
@@ -795,8 +796,8 @@ void TabContents::WasHidden() {
// removes the |GetRenderViewHost()|; then when we actually destroy the
// window, OnWindowPosChanged() notices and calls HideContents() (which
// calls us).
- RenderWidgetHostViewBase* rwhv =
- RenderWidgetHostViewBase::FromRWHV(GetRenderWidgetHostView());
+ RenderWidgetHostViewPort* rwhv =
+ RenderWidgetHostViewPort::FromRWHV(GetRenderWidgetHostView());
if (rwhv)
rwhv->WasHidden();
}
@@ -808,8 +809,8 @@ void TabContents::WasHidden() {
}
void TabContents::ShowContents() {
- RenderWidgetHostViewBase* rwhv =
- RenderWidgetHostViewBase::FromRWHV(GetRenderWidgetHostView());
+ RenderWidgetHostViewPort* rwhv =
+ RenderWidgetHostViewPort::FromRWHV(GetRenderWidgetHostView());
if (rwhv)
rwhv->DidBecomeSelected();
}

Powered by Google App Engine
This is Rietveld 408576698