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

Unified Diff: chrome/browser/ui/cocoa/extensions/extension_view_mac.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/extensions/extension_view_mac.mm
diff --git a/chrome/browser/ui/cocoa/extensions/extension_view_mac.mm b/chrome/browser/ui/cocoa/extensions/extension_view_mac.mm
index 17b2c5887fe79d6b775f9dc0da29a8b6e5f65aea..0c02beed51e745d108c03905f485dae8c964f311 100644
--- a/chrome/browser/ui/cocoa/extensions/extension_view_mac.mm
+++ b/chrome/browser/ui/cocoa/extensions/extension_view_mac.mm
@@ -48,8 +48,8 @@ void ExtensionViewMac::DidStopLoading() {
}
void ExtensionViewMac::SetBackground(const SkBitmap& background) {
- if (!pending_background_.empty() && render_view_host()->view()) {
- render_view_host()->view()->SetBackground(background);
+ if (!pending_background_.empty() && render_view_host()->GetView()) {
+ render_view_host()->GetView()->SetBackground(background);
} else {
pending_background_ = background;
}
@@ -70,15 +70,15 @@ void ExtensionViewMac::RenderViewCreated() {
CGSizeMake(ExtensionViewMac::kMaxWidth, ExtensionViewMac::kMaxHeight));
extension_host_->DisableScrollbarsForSmallWindows(largest_popup_size);
- if (!pending_background_.empty() && render_view_host()->view()) {
- render_view_host()->view()->SetBackground(pending_background_);
+ if (!pending_background_.empty() && render_view_host()->GetView()) {
+ render_view_host()->GetView()->SetBackground(pending_background_);
pending_background_.reset();
}
}
void ExtensionViewMac::WindowFrameChanged() {
- if (render_view_host()->view())
- render_view_host()->view()->WindowFrameChanged();
+ if (render_view_host()->GetView())
+ render_view_host()->GetView()->WindowFrameChanged();
}
void ExtensionViewMac::CreateWidgetHostView() {
« no previous file with comments | « chrome/browser/ui/browser_navigator.cc ('k') | chrome/browser/ui/cocoa/tab_contents/tab_contents_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698