From deff96a1b0252ac4e47a8c9db825d66702fd0824 Mon Sep 17 00:00:00 2001 From: Jeremy Apthorp Date: Wed, 9 Jan 2019 15:25:31 -0800 Subject: [PATCH] NativeWidgetMac::CreateNSWindow params changed https://chromium-review.googlesource.com/c/1295251 --- atom/browser/ui/cocoa/atom_native_widget_mac.h | 2 +- atom/browser/ui/cocoa/atom_native_widget_mac.mm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/atom/browser/ui/cocoa/atom_native_widget_mac.h b/atom/browser/ui/cocoa/atom_native_widget_mac.h index c41d102fcd7..a86e239c1eb 100644 --- a/atom/browser/ui/cocoa/atom_native_widget_mac.h +++ b/atom/browser/ui/cocoa/atom_native_widget_mac.h @@ -21,7 +21,7 @@ class AtomNativeWidgetMac : public views::NativeWidgetMac { protected: // NativeWidgetMac: NativeWidgetMacNSWindow* CreateNSWindow( - const views::Widget::InitParams& params) override; + const views_bridge_mac::mojom::CreateWindowParams* params) override; private: NativeWindowMac* shell_; diff --git a/atom/browser/ui/cocoa/atom_native_widget_mac.mm b/atom/browser/ui/cocoa/atom_native_widget_mac.mm index 0eccfb093e4..5b5f2206e03 100644 --- a/atom/browser/ui/cocoa/atom_native_widget_mac.mm +++ b/atom/browser/ui/cocoa/atom_native_widget_mac.mm @@ -19,7 +19,7 @@ AtomNativeWidgetMac::AtomNativeWidgetMac( AtomNativeWidgetMac::~AtomNativeWidgetMac() {} NativeWidgetMacNSWindow* AtomNativeWidgetMac::CreateNSWindow( - const views::Widget::InitParams& params) { + const views_bridge_mac::mojom::CreateWindowParams* params) { return [[[AtomNSWindow alloc] initWithShell:shell_ styleMask:style_mask_] autorelease]; }