Files
macSVG-mirror/macSVG/Application Classes/WebKitInterface.h
dsward2 2f547e6a37 macOS 10.15 Catalina will be released soon, and apparently will include the WebKit Legacy framework, so this commit will make some initial changes to macSVG for Catalina.
The Generate HTML5 Video command should be working again for Macs that don't use Xeon processors.

The biggest set of changes is to suppress the warning messages for deprecated WebKit APIs.  This is done by wrapping some conditional code around the deprecated code, e.g.,

#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
// deprecated APIs used here
#pragma clang diagnostic pop

More work needs to be done on this.

Several other deprecated macOS APIs were identified, and several were updated.

A subsequent commit is planned to update some third-party code, like CocoaAsyncSocket, CocoaHTTPServer, etc.
2019-10-04 02:49:42 -05:00

50 lines
1.5 KiB
Objective-C

//
// WebKitInterface.h
// TransformAttributeEditor
//
// Created by Douglas Ward on 7/9/13.
//
//
#import <Foundation/Foundation.h>
#import <JavaScriptCore/JavaScriptCore.h>
@class DOMDocument;
@class DOMElement;
@class DOMNode;
@class WebView;
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
@interface WebKitInterface : NSObject
{
}
- (NSRect)bBoxForDOMElement:(DOMElement *)aDOMElement;
- (NSRect)bBoxForDOMElement:(DOMElement *)aDOMElement webView:(WebView *)webView;
- (NSRect)bBoxForDOMElement:(DOMElement *)aDOMElement globalContext:(JSContextRef)globalContext;
- (NSRect)pageRectForElement:(DOMElement *)aDOMElement svgRootElement:(DOMElement *)svgRootElement;
- (NSRect)getRectForElement:(DOMElement *)aElement;
- (void)setRect:(NSRect)aRect forElement:(DOMElement *)aElement;
- (void)setPoint:(NSPoint)aPoint forElement:(DOMElement *)aElement;
- (NSPoint)transformPoint:(NSPoint)aMousePoint fromElement:(DOMElement *)sourceElement toElement:(DOMElement *)targetElement;
- (float)getCurrentTimeForSvgElement:(DOMElement *)svgElement;
- (BOOL)animationsPausedForSvgElement:(DOMElement *)svgElement;
- (void)pauseAnimationsForSvgElement:(DOMElement *)svgElement;
- (void)unpauseAnimationsForSvgElement:(DOMElement *)svgElement;
- (DOMElement *)replaceDOMElement:(DOMElement *)domElement domDocument:(DOMDocument *)domDocument;
- (float)currentScaleForSvgElement:(DOMNode *)svgElement;
@end
#pragma clang diagnostic pop