Fix the build with the public SDK.
[WebKit-https.git] / Source / WebKit / mac / WebCoreSupport / WebSelectionServiceController.mm
index 1dd24cbccce16fc0ffd7a5f6a4bd1d699cd8a752..daca9f6b6439749c4c6e887122f195a696d52a4e 100644 (file)
@@ -38,14 +38,19 @@ using namespace WebCore;
 #if __has_include(<AppKit/NSSharingService_Private.h>)
 #import <AppKit/NSSharingService_Private.h>
 #else
-typedef NS_ENUM(NSInteger, NSSharingServicePickerStyle) {
-    NSSharingServicePickerStyleMenu = 0,
-    NSSharingServicePickerStyleRollover = 1,
-    NSSharingServicePickerStyleTextSelection = 2,
-    NSSharingServicePickerStyleDataDetector = 3
+typedef NS_OPTIONS(NSUInteger, NSSharingServiceMask) {
+    NSSharingServiceMaskShare = (1 << NSSharingServiceTypeShare),
+    NSSharingServiceMaskViewer = (1 << NSSharingServiceTypeViewer),
+    NSSharingServiceMaskEditor = (1 << NSSharingServiceTypeEditor),
+    
+    NSSharingServiceMaskAllTypes = 0xFFFF
 } NS_ENUM_AVAILABLE_MAC(10_10);
 #endif
 
+@interface NSSharingService (WKDetails)
++ (NSArray *)sharingServicesForItems:(NSArray *)items mask:(NSSharingServiceMask)maskForFiltering;
+@end
+
 WebSelectionServiceController::WebSelectionServiceController(WebView *webView) 
     : m_webView(webView)
 {