Accessibility related symbols

darlinghq/darling#445
This commit is contained in:
Andrew Hyatt 2019-01-16 13:51:29 -05:00
parent 7beb0626be
commit e8e5426fc4
10 changed files with 93 additions and 0 deletions

View File

@ -373,6 +373,7 @@ set(AppKit_sources
NSStepper.m
NSAccessibility.m
NSAppearance.m
NSAccessibilityElement.m
)
set_source_files_properties(${AppKit_sources} LANGUAGE C)

View File

@ -331,6 +331,9 @@ NSString *const NSAccessibilityMainThreadIdleNotification = @"AXMainThreadIdle";
NSString *const NSAccessibilitySupportsMainThreadIdleNotificationAttribute = @"AXSupportsMainThreadIdleNotification";
/* End undocumented */
NSString * const NSAccessibilityLayoutChangedNotification = @"AXLayoutChanged";
NSString * const NSAccessibilityUIElementsKey = @"AXUIElementsKey";
void NSAccessibilityPostNotification (
id element,
NSString *notification

View File

@ -0,0 +1,33 @@
/*
This file is part of Darling.
Copyright (C) 2019 Lubos Dolezel
Darling is free softwareyou can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Darling is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Darling. If not, see <http//www.gnu.org/licenses/>.
*/
#import <AppKit/NSAccessibilityElement.h>
#import <Foundation/Foundation.h>
@implementation NSAccessibilityElement
- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector {
return [NSMethodSignature signatureWithObjCTypes: "v@:"];
}
- (void)forwardInvocation:(NSInvocation *)anInvocation {
NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
}
@end

View File

@ -55,6 +55,8 @@ NSString * const NSWindowWillAnimateNotification=@"NSWindowWillAnimateNotificati
NSString * const NSWindowAnimatingNotification=@"NSWindowAnimatingNotification";
NSString * const NSWindowDidAnimateNotification=@"NSWindowDidAnimateNotification";
NSString * const NSWindowDidChangeScreenNotification = @"NSWindowDidChangeScreenNotification";
@interface CGWindow(private)
- (void)dirtyRect:(CGRect)rect;
@end

View File

@ -157,5 +157,6 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
#import <AppKit/NSWindowController.h>
#import <AppKit/NSWorkspace.h>
#import <AppKit/NSAppearance.h>
#import <AppKit/NSAccessibilityElement.h>
#import <ApplicationServices/ApplicationServices.h>

View File

@ -2,6 +2,7 @@
#import <AppKit/AppKitExport.h>
#import <AppKit/NSAccessibilityConstants.h>
#import <AppKit/NSAccessibilityProtocols.h>
APPKIT_EXPORT void NSAccessibilityPostNotification(
id element,

View File

@ -327,3 +327,5 @@ APPKIT_EXPORT NSString *const NSAccessibilitySupportsMainThreadIdleNotificationA
/* End undocumented */
APPKIT_EXPORT NSString *const NSAccessibilityErrorCodeExceptionInfo;
APPKIT_EXPORT NSString * const NSAccessibilityLayoutChangedNotification;
APPKIT_EXPORT NSString * const NSAccessibilityUIElementsKey;

View File

@ -0,0 +1,25 @@
/*
This file is part of Darling.
Copyright (C) 2019 Lubos Dolezel
Darling is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Darling is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Darling. If not, see <http://www.gnu.org/licenses/>.
*/
#import <Foundation/NSObject.h>
#import <AppKit/NSAccessibility.h>
@interface NSAccessibilityElement: NSObject <NSAccessibility>
@end

View File

@ -0,0 +1,23 @@
/*
This file is part of Darling.
Copyright (C) 2019 Lubos Dolezel
Darling is free softwareyou can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Darling is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Darling. If not, see <http//www.gnu.org/licenses/>.
*/
#import <Foundation/NSObject.h>
@protocol NSAccessibility <NSObject>
@end

View File

@ -102,6 +102,8 @@ APPKIT_EXPORT NSString *const NSWindowWillStartLiveResizeNotification;
APPKIT_EXPORT NSString *const NSWindowDidEndLiveResizeNotification;
APPKIT_EXPORT NSString *const NSWindowWillBeginSheetNotification;
APPKIT_EXPORT NSString * const NSWindowDidChangeScreenNotification;
@interface NSWindow : NSResponder {
NSRect _frame;
NSUInteger _styleMask;