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

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: Merge to LKGR. 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 aa47af5bd1763cf9bd880c7355a603633c692b9b..fb517592bb6276b0862a244e2cc91834b0164022 100644
--- a/chrome/browser/ui/cocoa/tabpose_window.mm
+++ b/chrome/browser/ui/cocoa/tabpose_window.mm
@@ -254,12 +254,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.
}
@@ -269,7 +269,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];
« no previous file with comments | « chrome/browser/ui/cocoa/tab_contents/tab_contents_controller.mm ('k') | chrome/browser/ui/constrained_window_tab_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698