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

Unified Diff: content/browser/renderer_host/render_widget_host_view_aura.cc

Issue 9473001: Extract minimal RenderViewHost interface for embedders, leaving (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to LKGR, fix a weird runtime issue. 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/renderer_host/render_widget_host_view_aura.cc
diff --git a/content/browser/renderer_host/render_widget_host_view_aura.cc b/content/browser/renderer_host/render_widget_host_view_aura.cc
index 435a4dadfcaddb3dbe11542ea162b7c3f13c139e..a05471d9c5a8eac52c542b57d57286e95d4b7470 100644
--- a/content/browser/renderer_host/render_widget_host_view_aura.cc
+++ b/content/browser/renderer_host/render_widget_host_view_aura.cc
@@ -119,7 +119,8 @@ class RenderWidgetHostViewAura::WindowObserver : public aura::WindowObserver {
// RenderWidgetHostViewAura, public:
RenderWidgetHostViewAura::RenderWidgetHostViewAura(RenderWidgetHost* host)
- : ALLOW_THIS_IN_INITIALIZER_LIST(window_(new aura::Window(this))),
+ : host_(host->AsRWHImpl()),
+ ALLOW_THIS_IN_INITIALIZER_LIST(window_(new aura::Window(this))),
is_fullscreen_(false),
popup_parent_host_view_(NULL),
popup_child_host_view_(NULL),
@@ -130,7 +131,6 @@ RenderWidgetHostViewAura::RenderWidgetHostViewAura(RenderWidgetHost* host)
current_surface_(0),
paint_canvas_(NULL),
synthetic_move_sent_(false) {
- host_ = static_cast<RenderWidgetHostImpl*>(host);
host_->SetView(this);
window_observer_.reset(new WindowObserver(this));
window_->AddObserver(window_observer_.get());

Powered by Google App Engine
This is Rietveld 408576698