2019-04-29 16:41:51 +03:00
|
|
|
/*
|
|
|
|
This file is part of Telegram Desktop,
|
|
|
|
the official desktop application for the Telegram messaging service.
|
2019-05-27 15:39:19 +03:00
|
|
|
|
2019-04-29 16:41:51 +03: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>
|
|
|
|
|
2019-05-27 15:39:19 +03:00
|
|
|
namespace Platform {
|
2019-04-29 19:55:11 +03:00
|
|
|
enum class TouchBarType {
|
2019-04-30 21:31:42 +03:00
|
|
|
None,
|
2019-04-29 19:55:11 +03:00
|
|
|
Main,
|
|
|
|
AudioPlayer,
|
2019-05-04 12:43:22 +03:00
|
|
|
AudioPlayerForce,
|
2019-04-29 19:55:11 +03:00
|
|
|
};
|
|
|
|
} // namespace
|
|
|
|
|
2019-05-27 17:21:29 +03:00
|
|
|
@interface TouchBar : NSTouchBar
|
2019-04-29 16:41:51 +03:00
|
|
|
|
2019-05-27 15:39:19 +03:00
|
|
|
@property(retain) NSDictionary * _Nullable touchBarItems;
|
2019-05-07 20:08:00 +03:00
|
|
|
|
2019-04-30 21:31:42 +03:00
|
|
|
- (id _Nonnull) init:(NSView * _Nonnull)view;
|
2019-05-27 15:39:19 +03:00
|
|
|
- (void) handleTrackStateChange:(Media::Player::TrackState)state;
|
|
|
|
- (void) setTouchBar:(Platform::TouchBarType)type;
|
2019-04-29 16:41:51 +03:00
|
|
|
|
|
|
|
@end
|