Fix the build with the public SDK.
authortimothy_horton@apple.com <timothy_horton@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 17 Oct 2014 21:12:46 +0000 (21:12 +0000)
committertimothy_horton@apple.com <timothy_horton@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 17 Oct 2014 21:12:46 +0000 (21:12 +0000)
* WebCoreSupport/WebSelectionServiceController.mm:
We should transition all this SPI to real SPI headers as soon as possible.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@174837 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebKit/mac/ChangeLog
Source/WebKit/mac/WebCoreSupport/WebSelectionServiceController.mm

index 20c80bf24357ab21167b7917c678a5f17425a603..6e280fea8b74011fc0d02d12fcbd927b2ec657c1 100644 (file)
@@ -1,3 +1,10 @@
+2014-10-17  Tim Horton  <timothy_horton@apple.com>
+
+        Fix the build with the public SDK.
+
+        * WebCoreSupport/WebSelectionServiceController.mm:
+        We should transition all this SPI to real SPI headers as soon as possible.
+
 2014-10-16  Tim Horton  <timothy_horton@apple.com>
 
         Implement selection services menu for Legacy WebKit
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)
 {