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

Unified Diff: chrome/browser/ui/cocoa/tabpose_window.mm

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/cocoa/tabpose_window.mm
diff --git a/chrome/browser/ui/cocoa/tabpose_window.mm b/chrome/browser/ui/cocoa/tabpose_window.mm
index a742eb05401c09c38862d43aeb9e73bd2b68c612..c0c16f005f1cdc1e84e2491f7b2c5f3680339612 100644
--- a/chrome/browser/ui/cocoa/tabpose_window.mm
+++ b/chrome/browser/ui/cocoa/tabpose_window.mm
@@ -255,12 +255,12 @@ void ThumbnailLoader::LoadThumbnail() {
DevToolsWindow::GetDevToolsContents(contents_->web_contents());
if (devToolsContents && devToolsContents->web_contents() &&
devToolsContents->web_contents()->GetRenderViewHost() &&
- devToolsContents->web_contents()->GetRenderViewHost()->view()) {
+ devToolsContents->web_contents()->GetRenderViewHost()->GetView()) {
// The devtool's size might not be up-to-date, but since its height doesn't
// change on window resize, and since most users don't use devtools, this is
// good enough.
bottomOffset +=
- devToolsContents->web_contents()->GetRenderViewHost()->view()->
+ devToolsContents->web_contents()->GetRenderViewHost()->GetView()->
GetViewBounds().height();
bottomOffset += 1; // :-( Divider line between web contents and devtools.
}
@@ -287,7 +287,7 @@ void ThumbnailLoader::LoadThumbnail() {
- (void)drawInContext:(CGContextRef)context {
RenderWidgetHost* rwh = contents_->web_contents()->GetRenderViewHost();
// NULL if renderer crashed.
- content::RenderWidgetHostView* rwhv = rwh ? rwh->view() : NULL;
+ content::RenderWidgetHostView* rwhv = rwh ? rwh->GetView() : NULL;
if (!rwhv) {
// TODO(thakis): Maybe draw a sad tab layer?
[super drawInContext:context];

Powered by Google App Engine
This is Rietveld 408576698