tdesktop/Telegram/SourceFiles/platform/mac/mac_touchbar.h

32 lines
771 B
C
Raw Normal View History

2019-04-29 13:41:51 +00:00
/*
This file is part of Telegram Desktop,
the official desktop application for the Telegram messaging service.
2019-04-29 13:41:51 +00:00
For license and copyright information please follow this link:
https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
*/
#include "platform/platform_specific.h"
#include "media/audio/media_audio.h"
#include "media/player/media_player_instance.h"
#import <Cocoa/Cocoa.h>
namespace Platform {
enum class TouchBarType {
None,
Main,
AudioPlayer,
AudioPlayerForce,
};
} // namespace
@interface TouchBar : NSTouchBar
2019-04-29 13:41:51 +00:00
@property(retain) NSDictionary * _Nullable touchBarItems;
- (id _Nonnull) init:(NSView * _Nonnull)view;
- (void) handleTrackStateChange:(Media::Player::TrackState)state;
- (void) setTouchBar:(Platform::TouchBarType)type;
2019-04-29 13:41:51 +00:00
@end