Browse Source

macosx: SPMediaKeyTap: Move ivars out of header

pull/73/head
Marvin Scholz 8 years ago
parent
commit
5e4bf8dbef
  1. 13
      modules/gui/macosx/SPMediaKeyTap.h
  2. 13
      modules/gui/macosx/SPMediaKeyTap.m

13
modules/gui/macosx/SPMediaKeyTap.h

@ -29,17 +29,8 @@
#define SPSystemDefinedEventMediaKeys 8
@interface SPMediaKeyTap : NSObject {
EventHandlerRef _app_switching_ref;
EventHandlerRef _app_terminating_ref;
CFMachPortRef _eventPort;
CFRunLoopSourceRef _eventPortSource;
CFRunLoopRef _tapThreadRL;
BOOL _shouldInterceptMediaKeyEvents;
id _delegate;
// The app that is frontmost in this list owns media keys
NSMutableArray *_mediaKeyAppList;
}
@interface SPMediaKeyTap : NSObject
+ (NSArray*)defaultMediaKeyUserBundleIdentifiers;
- (id)initWithDelegate:(id)delegate;

13
modules/gui/macosx/SPMediaKeyTap.m

@ -25,7 +25,18 @@
#import "SPMediaKeyTap.h"
#import "SPInvocationGrabbing.h"
@interface SPMediaKeyTap ()
@interface SPMediaKeyTap () {
EventHandlerRef _app_switching_ref;
EventHandlerRef _app_terminating_ref;
CFMachPortRef _eventPort;
CFRunLoopSourceRef _eventPortSource;
CFRunLoopRef _tapThreadRL;
BOOL _shouldInterceptMediaKeyEvents;
id _delegate;
// The app that is frontmost in this list owns media keys
NSMutableArray *_mediaKeyAppList;
}
- (BOOL)shouldInterceptMediaKeyEvents;
- (void)setShouldInterceptMediaKeyEvents:(BOOL)newSetting;
- (void)startWatchingAppSwitching;

Loading…
Cancel
Save