From eb7ccf8afa99cba93a71a7606d51ea707e069751 Mon Sep 17 00:00:00 2001 From: Jeremy Apthorp Date: Tue, 17 Apr 2018 16:46:33 -0700 Subject: [PATCH] Bring mac code into conformance with -Wobjc-missing-property-synthesis --- atom/browser/native_browser_view_mac.mm | 2 ++ atom/browser/native_window_mac.mm | 10 ++++++++++ atom/browser/ui/file_dialog_mac.mm | 3 +++ 3 files changed, 15 insertions(+) diff --git a/atom/browser/native_browser_view_mac.mm b/atom/browser/native_browser_view_mac.mm index bf285249b682..ed0c8892bada 100644 --- a/atom/browser/native_browser_view_mac.mm +++ b/atom/browser/native_browser_view_mac.mm @@ -25,6 +25,8 @@ const NSAutoresizingMaskOptions kDefaultAutoResizingMask = @implementation DragRegionView +@synthesize initialLocation; + - (BOOL)mouseDownCanMoveWindow { return NO; diff --git a/atom/browser/native_window_mac.mm b/atom/browser/native_window_mac.mm index e832c25261aa..046a349eecf8 100644 --- a/atom/browser/native_window_mac.mm +++ b/atom/browser/native_window_mac.mm @@ -425,6 +425,9 @@ bool ScopedDisableResize::disable_resize_ = false; @implementation AtomPreviewItem +@synthesize previewItemURL; +@synthesize previewItemTitle; + - (id)initWithURL:(NSURL*)url title:(NSString*)title { self = [super init]; if (self) { @@ -480,6 +483,13 @@ enum { @implementation AtomNSWindow +@synthesize acceptsFirstMouse; +@synthesize disableAutoHideCursor; +@synthesize disableKeyOrMainWindow; +@synthesize windowButtonsOffset; +@synthesize quickLookItem; +@synthesize vibrantView; + - (void)setShell:(atom::NativeWindowMac*)shell { shell_ = shell; } diff --git a/atom/browser/ui/file_dialog_mac.mm b/atom/browser/ui/file_dialog_mac.mm index c412864aec35..5fd394637226 100644 --- a/atom/browser/ui/file_dialog_mac.mm +++ b/atom/browser/ui/file_dialog_mac.mm @@ -27,6 +27,9 @@ @implementation PopUpButtonHandler +@synthesize savePanel; +@synthesize fileTypesList; + - (instancetype)initWithPanel:(NSSavePanel*)panel andTypesList:(NSArray*)typesList { self = [super init];