Merge pull request #9074 from electron/tabbing-mode-version-guard

Only define NSWindowTabbingModeDisallowed on pre-10.12 SDKs
This commit is contained in:
Kevin Sawicki 2017-03-31 12:09:54 -07:00 committed by GitHub
commit 0faa15c6ca

View file

@ -336,14 +336,19 @@ bool ScopedDisableResize::disable_resize_ = false;
@end
#if !defined(MAC_OS_X_VERSION_10_12)
enum {
NSWindowTabbingModeDisallowed = 2
};
@interface NSWindow (SierraSDK)
- (void)setTabbingMode:(NSInteger)mode;
- (void)setTabbingIdentifier:(NSString *)identifier;
- (void)setTabbingIdentifier:(NSString*)identifier;
@end
#endif // MAC_OS_X_VERSION_10_12
@interface AtomNSWindow : EventDispatchingWindow<QLPreviewPanelDataSource, QLPreviewPanelDelegate, NSTouchBarDelegate> {
@private
atom::NativeWindowMac* shell_;