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

Unified Diff: headless/lib/browser/headless_browser_impl_mac.mm

Issue 2787373002: [headless] Use individual aura::WindowTreeHosts per WebContents. (Closed)
Patch Set: Created 3 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 side-by-side diff with in-line comments
Download patch
Index: headless/lib/browser/headless_browser_impl_mac.mm
diff --git a/headless/lib/browser/headless_browser_impl_mac.mm b/headless/lib/browser/headless_browser_impl_mac.mm
index e1911162d6e0b7e137cff2676e2aa8f73b329e81..f5f5f7e83e749fa40498a41c2f9efe5254e9261f 100644
--- a/headless/lib/browser/headless_browser_impl_mac.mm
+++ b/headless/lib/browser/headless_browser_impl_mac.mm
@@ -15,8 +15,8 @@ void HeadlessBrowserImpl::PlatformCreateWindow() {}
void HeadlessBrowserImpl::PlatformInitializeWebContents(
const gfx::Size& initial_size,
- content::WebContents* web_contents) {
- NSView* web_view = web_contents->GetNativeView();
+ HeadlessWebContentsImpl* web_contents) {
+ NSView* web_view = web_contents->web_contents()->GetNativeView();
[web_view setAutoresizingMask:(NSViewWidthSizable | NSViewHeightSizable)];
NSRect frame = NSMakeRect(0, 0, initial_size.width(), initial_size.height());

Powered by Google App Engine
This is Rietveld 408576698