2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Added missed OSX checking to touchbar's files.

This commit is contained in:
23rd
2020-07-13 17:46:50 +03:00
committed by John Preston
parent 87aa8a249f
commit 780b5555d7
13 changed files with 46 additions and 6 deletions

View File

@@ -7,6 +7,8 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
*/
#pragma once
#ifndef OS_OSX
#import <AppKit/NSPopoverTouchBarItem.h>
#import <AppKit/NSTouchBar.h>
@@ -14,3 +16,5 @@ API_AVAILABLE(macos(10.12.2))
@interface TextFormatPopover : NSPopoverTouchBarItem
- (id)init:(NSTouchBarItemIdentifier)identifier;
@end
#endif // OS_OSX

View File

@@ -7,6 +7,8 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
*/
#pragma once
#ifndef OS_OSX
#include <AppKit/NSImageView.h>
namespace Main {
@@ -18,3 +20,5 @@ API_AVAILABLE(macos(10.12.2))
- (id)init:(not_null<Main::Session*>)session
destroyEvent:(rpl::producer<>)touchBarSwitches;
@end
#endif // OS_OSX

View File

@@ -7,6 +7,8 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
*/
#pragma once
#ifndef OS_OSX
#import <AppKit/NSPopoverTouchBarItem.h>
#import <AppKit/NSTouchBar.h>
@@ -19,3 +21,5 @@ API_AVAILABLE(macos(10.12.2))
- (id)init:(not_null<Window::Controller*>)controller
identifier:(NSTouchBarItemIdentifier)identifier;
@end
#endif // OS_OSX