[macOS] Fix new xtro failures introduced by the xcode9 branch (#2741)

This commit is contained in:
Timothy Risi 2017-09-25 09:50:44 -08:00 коммит произвёл GitHub
Родитель 90d0d978d9
Коммит 65daac9573
9 изменённых файлов: 91 добавлений и 6 удалений

Просмотреть файл

@ -873,7 +873,7 @@ namespace XamCore.AVFoundation {
CannotDoInCurrentContext = 2
}
[TV (11,0), NoWatch, Mac (10,13), iOS (11,0)]
[TV (11,0), NoWatch, NoMac, iOS (11,0)]
[Native]
public enum AVAudioSessionRouteSharingPolicy : nuint {
Default = 0,

Просмотреть файл

@ -91,7 +91,13 @@ namespace XamCore.AppKit {
// Untyped enum (NSAttributedString.h). Only used as a convience enum in our API.
[Flags]
public enum NSSpellingState : int {
public enum NSSpellingState :
#if XAMCORE_4_0
nint
#else
int
#endif
{
None = 0x0,
Spelling = 0x1,
Grammar = 0x2

Просмотреть файл

@ -12173,12 +12173,12 @@ namespace XamCore.AVFoundation {
AVContentKeyResponse Create (NSData keyData, [NullAllowed] NSData initializationVector);
}
[TV (11,0), NoWatch, Mac (10,13), iOS (11,0)]
[TV (11,0), NoWatch, NoMac, iOS (11,0)]
[DisableDefaultCtor]
[BaseType (typeof(NSObject))]
interface AVRouteDetector {
[Notification]
[TV (11, 0), NoWatch, Mac (10, 13), iOS (11, 0)]
[TV (11, 0), NoWatch, NoMac, iOS (11, 0)]
[Field ("AVRouteDetectorMultipleRoutesDetectedDidChangeNotification")]
NSString MultipleRoutesDetectedDidChange { get; }

Просмотреть файл

@ -287,6 +287,7 @@ namespace XamCore.Metal {
[Export ("renderCommandEncoderWithDescriptor:")]
IMTLRenderCommandEncoder CreateRenderCommandEncoder (MTLRenderPassDescriptor renderPassDescriptor);
#if !XAMCORE_4_0 || !MONOMAC // These were incorrectly released as available for mac, but are actually iOS/tvOS only. Have to wait for XAMCORE_4_0 to remove the mac availability since it's a breaking change.
#if XAMCORE_4_0
[Abstract] // @required but we can't add abstract members in C# and keep binary compatibility
#endif
@ -314,6 +315,7 @@ namespace XamCore.Metal {
[iOS (10,3)][TV (10,2)][Mac (10,12,4, onlyOn64 : true)]
[Export ("GPUEndTime")]
double /* CFTimeInterval */ GpuEndTime { get; }
#endif // !XAMCORE_4_0 || !MONOMAC
[Mac (10,13, onlyOn64: true), iOS (11,0), TV (11,0), NoWatch]
#if XAMCORE_4_0

Просмотреть файл

@ -77,6 +77,7 @@ namespace Extrospection {
// not enums
{ "NSMutableURLRequest", "NSMutableUrlRequest" },
{ "UIImagePickerControllerImageURLExportPreset", "UIImagePickerControllerImageUrlExportPreset" },
{ "NSURLSessionDelayedRequestDisposition", "NSUrlSessionDelayedRequestDisposition" },
};
public static string GetManagedName (string nativeName)

Просмотреть файл

@ -278,3 +278,7 @@
!missing-enum! PDFTextAnnotationIconType not bound
!missing-enum! PDFWidgetCellState not bound
!missing-enum! PDFWidgetControlType not bound
# WebKit
## Header file missing from umbrella header, but used by WKWebView, which IS included in the umbrella.
!unknown-type! WKSnapshotConfiguration bound

Просмотреть файл

@ -343,7 +343,64 @@
!incorrect-protocol-member! NSProgressReporting::progress is REQUIRED and should be abstract
# fixed in XAMCORE_4_0 - API Break
!incorrect-protocol-member! MTLBlitCommandEncoder::updateFence: is REQUIRED and should be abstract
!incorrect-protocol-member! MTLBlitCommandEncoder::waitForFence: is REQUIRED and should be abstract
!incorrect-protocol-member! MTLCommandBuffer::GPUEndTime is REQUIRED and should be abstract
!incorrect-protocol-member! MTLCommandBuffer::GPUStartTime is REQUIRED and should be abstract
!incorrect-protocol-member! MTLCommandBuffer::kernelEndTime is REQUIRED and should be abstract
!incorrect-protocol-member! MTLCommandBuffer::kernelStartTime is REQUIRED and should be abstract
!incorrect-protocol-member! MTLCommandBuffer::popDebugGroup is REQUIRED and should be abstract
!incorrect-protocol-member! MTLCommandBuffer::pushDebugGroup: is REQUIRED and should be abstract
!incorrect-protocol-member! MTLComputeCommandEncoder::dispatchThreads:threadsPerThreadgroup: is REQUIRED and should be abstract
!incorrect-protocol-member! MTLComputeCommandEncoder::updateFence: is REQUIRED and should be abstract
!incorrect-protocol-member! MTLComputeCommandEncoder::useHeap: is REQUIRED and should be abstract
!incorrect-protocol-member! MTLComputeCommandEncoder::useHeaps:count: is REQUIRED and should be abstract
!incorrect-protocol-member! MTLComputeCommandEncoder::useResource:usage: is REQUIRED and should be abstract
!incorrect-protocol-member! MTLComputeCommandEncoder::useResources:count:usage: is REQUIRED and should be abstract
!incorrect-protocol-member! MTLComputeCommandEncoder::waitForFence: is REQUIRED and should be abstract
!incorrect-protocol-member! MTLComputePipelineState::label is REQUIRED and should be abstract
!incorrect-protocol-member! MTLComputePipelineState::staticThreadgroupMemoryLength is REQUIRED and should be abstract
!incorrect-protocol-member! MTLDevice::areProgrammableSamplePositionsSupported is REQUIRED and should be abstract
!incorrect-protocol-member! MTLDevice::areRasterOrderGroupsSupported is REQUIRED and should be abstract
!incorrect-protocol-member! MTLDevice::argumentBuffersSupport is REQUIRED and should be abstract
!incorrect-protocol-member! MTLDevice::currentAllocatedSize is REQUIRED and should be abstract
!incorrect-protocol-member! MTLDevice::getDefaultSamplePositions:count: is REQUIRED and should be abstract
!incorrect-protocol-member! MTLDevice::heapBufferSizeAndAlignWithLength:options: is REQUIRED and should be abstract
!incorrect-protocol-member! MTLDevice::heapTextureSizeAndAlignWithDescriptor: is REQUIRED and should be abstract
!incorrect-protocol-member! MTLDevice::isRemovable is REQUIRED and should be abstract
!incorrect-protocol-member! MTLDevice::maxThreadgroupMemoryLength is REQUIRED and should be abstract
!incorrect-protocol-member! MTLDevice::minimumLinearTextureAlignmentForPixelFormat: is REQUIRED and should be abstract
!incorrect-protocol-member! MTLDevice::newArgumentEncoderWithArguments: is REQUIRED and should be abstract
!incorrect-protocol-member! MTLDevice::newFence is REQUIRED and should be abstract
!incorrect-protocol-member! MTLDevice::newHeapWithDescriptor: is REQUIRED and should be abstract
!incorrect-protocol-member! MTLDevice::newLibraryWithURL:error: is REQUIRED and should be abstract
!incorrect-protocol-member! MTLDevice::newTextureWithDescriptor:iosurface:plane: is REQUIRED and should be abstract
!incorrect-protocol-member! MTLDevice::readWriteTextureSupport is REQUIRED and should be abstract
!incorrect-protocol-member! MTLDevice::registryID is REQUIRED and should be abstract
!incorrect-protocol-member! MTLFunction::newArgumentEncoderWithBufferIndex: is REQUIRED and should be abstract
!incorrect-protocol-member! MTLFunction::newArgumentEncoderWithBufferIndex:reflection: is REQUIRED and should be abstract
!incorrect-protocol-member! MTLHeap::currentAllocatedSize is REQUIRED and should be abstract
!incorrect-protocol-member! MTLParallelRenderCommandEncoder::setColorStoreActionOptions:atIndex: is REQUIRED and should be abstract
!incorrect-protocol-member! MTLParallelRenderCommandEncoder::setDepthStoreActionOptions: is REQUIRED and should be abstract
!incorrect-protocol-member! MTLParallelRenderCommandEncoder::setStencilStoreActionOptions: is REQUIRED and should be abstract
!incorrect-protocol-member! MTLRenderCommandEncoder::setColorStoreActionOptions:atIndex: is REQUIRED and should be abstract
!incorrect-protocol-member! MTLRenderCommandEncoder::setDepthStoreActionOptions: is REQUIRED and should be abstract
!incorrect-protocol-member! MTLRenderCommandEncoder::setScissorRects:count: is REQUIRED and should be abstract
!incorrect-protocol-member! MTLRenderCommandEncoder::setStencilStoreActionOptions: is REQUIRED and should be abstract
!incorrect-protocol-member! MTLRenderCommandEncoder::setViewports:count: is REQUIRED and should be abstract
!incorrect-protocol-member! MTLRenderCommandEncoder::updateFence:afterStages: is REQUIRED and should be abstract
!incorrect-protocol-member! MTLRenderCommandEncoder::useHeap: is REQUIRED and should be abstract
!incorrect-protocol-member! MTLRenderCommandEncoder::useHeaps:count: is REQUIRED and should be abstract
!incorrect-protocol-member! MTLRenderCommandEncoder::useResource:usage: is REQUIRED and should be abstract
!incorrect-protocol-member! MTLRenderCommandEncoder::useResources:count:usage: is REQUIRED and should be abstract
!incorrect-protocol-member! MTLRenderCommandEncoder::waitForFence:beforeStages: is REQUIRED and should be abstract
!incorrect-protocol-member! MTLResource::allocatedSize is REQUIRED and should be abstract
!incorrect-protocol-member! MTLResource::heap is REQUIRED and should be abstract
!incorrect-protocol-member! MTLResource::isAliasable is REQUIRED and should be abstract
!incorrect-protocol-member! MTLResource::makeAliasable is REQUIRED and should be abstract
!incorrect-protocol-member! MTLTexture::iosurface is REQUIRED and should be abstract
!incorrect-protocol-member! MTLTexture::iosurfacePlane is REQUIRED and should be abstract
# not public
!missing-type! NSConstantString not bound

Просмотреть файл

@ -444,4 +444,4 @@
## PDFKit
# The following enums are bound as PdfFoo, lowercase Pdf prefix
!missing-enum! PDFPrintScalingMode not bound
!missing-enum! PDFPrintScalingMode not bound

Просмотреть файл

@ -344,6 +344,21 @@
!unknown-native-enum! NSType bound
!unknown-native-enum! SLComposeViewControllerResult bound
!wrong-base-type! MDLVoxelArray expected MDLObject actual NSObject
!incorrect-protocol-member! NSAccessibility::accessibilityChildrenInNavigationOrder is REQUIRED and should be abstract
!incorrect-protocol-member! NSAccessibility::accessibilityCustomActions is REQUIRED and should be abstract
!incorrect-protocol-member! NSAccessibility::accessibilityCustomRotors is REQUIRED and should be abstract
!incorrect-protocol-member! NSAccessibility::setAccessibilityChildrenInNavigationOrder: is REQUIRED and should be bstract
!incorrect-protocol-member! NSAccessibility::setAccessibilityCustomActions: is REQUIRED and should be abstract
!incorrect-protocol-member! NSAccessibility::setAccessibilityCustomRotors: is REQUIRED and should be abstract
!incorrect-protocol-member! CIImageProcessorInput::surface is REQUIRED and should be abstract
!incorrect-protocol-member! CIImageProcessorOutput::surface is REQUIRED and should be abstract
!incorrect-protocol-member! INSpeakable::alternativeSpeakableMatches is REQUIRED and should be abstract
!incorrect-protocol-member! INSpeakable::vocabularyIdentifier is REQUIRED and should be abstract
!wrong-enum-size! NSSpellingState managed 4 vs native 8
!extra-protocol-member! unexpected selector MTLCommandBuffer::GPUEndTime found
!extra-protocol-member! unexpected selector MTLCommandBuffer::GPUStartTime found
!extra-protocol-member! unexpected selector MTLCommandBuffer::kernelEndTime found
!extra-protocol-member! unexpected selector MTLCommandBuffer::kernelStartTime found
# Bound but commented out until we can test w\ template
!missing-selector! +SFSafariExtensionManager::getStateOfSafariExtensionWithIdentifier:completionHandler: not bound