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

Side by Side Diff: chrome/browser/ui/views/notifications/balloon_view_host.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. Created 8 years, 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/views/notifications/balloon_view_host.h" 5 #include "chrome/browser/ui/views/notifications/balloon_view_host.h"
6 6
7 #include "chrome/browser/notifications/balloon.h" 7 #include "chrome/browser/notifications/balloon.h"
8 #include "content/browser/renderer_host/render_view_host.h" 8 #include "content/browser/renderer_host/render_view_host.h"
9 #include "content/public/browser/content_browser_client.h" 9 #include "content/public/browser/content_browser_client.h"
10 #include "content/public/browser/render_widget_host_view.h" 10 #include "content/public/browser/render_widget_host_view.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 42
43 BalloonViewHost::~BalloonViewHost() { 43 BalloonViewHost::~BalloonViewHost() {
44 Shutdown(); 44 Shutdown();
45 } 45 }
46 46
47 void BalloonViewHost::Init(gfx::NativeView parent_native_view) { 47 void BalloonViewHost::Init(gfx::NativeView parent_native_view) {
48 parent_native_view_ = parent_native_view; 48 parent_native_view_ = parent_native_view;
49 BalloonHost::Init(); 49 BalloonHost::Init();
50 50
51 content::RenderWidgetHostView* render_widget_host_view = 51 content::RenderWidgetHostView* render_widget_host_view =
52 web_contents_->GetRenderViewHost()->view(); 52 web_contents_->GetRenderViewHost()->GetView();
53 53
54 native_host_->Attach(render_widget_host_view->GetNativeView()); 54 native_host_->Attach(render_widget_host_view->GetNativeView());
55 } 55 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698