Define HAVE_LINK_PREVIEW in WebKit2
authormitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 13 Sep 2015 19:13:41 +0000 (19:13 +0000)
committermitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 13 Sep 2015 19:13:41 +0000 (19:13 +0000)
https://bugs.webkit.org/show_bug.cgi?id=149099

Reviewed by Sam Weinig.

* Platform/spi/ios/UIKitSPI.h:
* UIProcess/WKImagePreviewViewController.mm:
* config.h:

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

Source/WebKit2/ChangeLog
Source/WebKit2/Platform/spi/ios/UIKitSPI.h
Source/WebKit2/UIProcess/WKImagePreviewViewController.mm
Source/WebKit2/config.h

index 8fe956a..c98a4fa 100644 (file)
@@ -1,3 +1,14 @@
+2015-09-13  Dan Bernstein  <mitz@apple.com>
+
+        Define HAVE_LINK_PREVIEW in WebKit2
+        https://bugs.webkit.org/show_bug.cgi?id=149099
+
+        Reviewed by Sam Weinig.
+
+        * Platform/spi/ios/UIKitSPI.h:
+        * UIProcess/WKImagePreviewViewController.mm:
+        * config.h:
+
 2015-09-12  Myles C. Maxfield  <mmaxfield@apple.com>
 
         [Cocoa] Allow testing with the system language
index ed44f39..dedc17f 100644 (file)
@@ -74,8 +74,6 @@
 #import <UIKit/_UINavigationInteractiveTransition.h>
 #import <UIKit/_UINavigationParallaxTransition.h>
 
-#import <WebKitAdditions/LinkPreviewDefines.h>
-
 #if HAVE(LINK_PREVIEW)
 #import <UIKit/UIPreviewItemController.h>
 #endif
index e422fd8..61b86bf 100644 (file)
@@ -30,9 +30,6 @@
 
 #import <UIKitSPI.h>
 #import <WebCore/IntSize.h>
-#if USE(APPLE_INTERNAL_SDK)
-#import <WebKitAdditions/LinkPreviewDefines.h>
-#endif
 #import <_WKElementAction.h>
 
 @implementation WKImagePreviewViewController {
index 1c2a9a6..f532517 100644 (file)
 #define HAVE_SAFARI_SERVICES_FRAMEWORK 0
 #endif
 #endif
+
+#ifndef HAVE_LINK_PREVIEW
+#if defined TARGET_OS_IOS && TARGET_OS_IOS
+#define HAVE_LINK_PREVIEW 1
+#else
+#define HAVE_LINK_PREVIEW 0
+#endif
+#endif