mirror of
https://github.com/dsward2/macSVG.git
synced 2026-03-02 18:23:58 +01:00
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.
50 lines
1.5 KiB
Objective-C
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
|