Title: [162120] trunk/Source
Revision
162120
Author
[email protected]
Date
2014-01-16 02:22:48 -0800 (Thu, 16 Jan 2014)

Log Message

[iOS] Fix build issues with exported headers

Source/WebCore:

* Configurations/WebCore.xcconfig: Allowed UIKit to link against
WebCore.
* page/ios/WebEventRegion.h: Removed ENABLE(TOUCH_EVENTS), which are
always enabled on iOS.

Source/WebKit:

* WebKit.xcodeproj/project.pbxproj: Removed WebPluginPrivate.h from
the project.

Source/WebKit/ios:

* Misc/WebNSStringExtrasIOS.h: Changed PLATFORM(IOS) to
TARGET_OS_IPHONE.

Source/WebKit/mac:

* DOM/WebDOMOperationsPrivate.h: Changed PLATFORM(IOS) to
TARGET_OS_IPHONE.
* MigrateHeaders.make: Excluded WAKScrollView.h from normal replacement
rules so that WebCoreFrameScrollView won't inadvertently get changed to
WebKitFrameScrollView.
* Plugins/WebPlugin.h: Moved contents of WebPluginPrivate.h to here in
order to maintain source compatibility.
* Plugins/WebPluginController.mm: Removed an import of WebPluginPrivate.h.
* Plugins/WebPluginPrivate.h: Removed.
* Storage/WebDatabaseManagerPrivate.h: Replaced ENABLE(SQL_DATABASE)
with ENABLE_SQL_DATABASE.
* WebView/WebViewPrivate.h: Added declaration of
-[WebView _touchEventRegions] for source compatibility.

Modified Paths

Removed Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (162119 => 162120)


--- trunk/Source/WebCore/ChangeLog	2014-01-16 09:09:08 UTC (rev 162119)
+++ trunk/Source/WebCore/ChangeLog	2014-01-16 10:22:48 UTC (rev 162120)
@@ -1,3 +1,12 @@
+2014-01-16  Andy Estes  <[email protected]>
+
+        [iOS] Fix build issues with exported headers
+
+        * Configurations/WebCore.xcconfig: Allowed UIKit to link against
+        WebCore.
+        * page/ios/WebEventRegion.h: Removed ENABLE(TOUCH_EVENTS), which are
+        always enabled on iOS.
+
 2014-01-16  Dirk Schulze  <[email protected]>
 
         Rename functions in SVGDocumentExtension

Modified: trunk/Source/WebCore/Configurations/WebCore.xcconfig (162119 => 162120)


--- trunk/Source/WebCore/Configurations/WebCore.xcconfig	2014-01-16 09:09:08 UTC (rev 162119)
+++ trunk/Source/WebCore/Configurations/WebCore.xcconfig	2014-01-16 10:22:48 UTC (rev 162120)
@@ -72,7 +72,7 @@
 OTHER_LDFLAGS_BASE = -lsqlite3 -lobjc -lANGLE -allowable_client WebCoreTestSupport;
 OTHER_LDFLAGS = $(inherited) $(OTHER_LDFLAGS_$(PLATFORM_NAME));
 OTHER_LDFLAGS_iphoneos = $(OTHER_LDFLAGS_iphonesimulator) -framework IOSurface;
-OTHER_LDFLAGS_iphonesimulator = $(OTHER_LDFLAGS_BASE) -framework CFNetwork -framework CoreGraphics -framework CoreText -framework Foundation -framework GraphicsServices -framework ImageIO -framework OpenGLES -lMobileGestalt -allowable_client WebKit2 -allowable_client WebKit;
+OTHER_LDFLAGS_iphonesimulator = $(OTHER_LDFLAGS_BASE) -framework CFNetwork -framework CoreGraphics -framework CoreText -framework Foundation -framework GraphicsServices -framework ImageIO -framework OpenGLES -lMobileGestalt -allowable_client WebKit2 -allowable_client WebKit -allowable_client UIKit;
 OTHER_LDFLAGS_macosx = $(OTHER_LDFLAGS_BASE) -sub_library libobjc -umbrella WebKit -allowable_client WebKit2 -framework ApplicationServices -framework AudioUnit -framework Carbon -framework Cocoa -framework IOSurface -framework OpenGL;
 
 NORMAL_WEBCORE_FRAMEWORKS_DIR = $(NORMAL_WEBCORE_FRAMEWORKS_DIR_$(PLATFORM_NAME));

Modified: trunk/Source/WebCore/page/ios/WebEventRegion.h (162119 => 162120)


--- trunk/Source/WebCore/page/ios/WebEventRegion.h	2014-01-16 09:09:08 UTC (rev 162119)
+++ trunk/Source/WebCore/page/ios/WebEventRegion.h	2014-01-16 10:22:48 UTC (rev 162120)
@@ -26,8 +26,6 @@
 #ifndef WebEventRegion_h
 #define WebEventRegion_h
 
-#if ENABLE(TOUCH_EVENTS)
-
 #import <CoreGraphics/CGGeometry.h>
 #import <Foundation/NSObject.h>
 
@@ -39,6 +37,4 @@
 - (BOOL)hitTest:(CGPoint)point;
 @end
 
-#endif // ENABLE(TOUCH_EVENTS)
-
 #endif // WebEventRegion_h

Modified: trunk/Source/WebKit/ChangeLog (162119 => 162120)


--- trunk/Source/WebKit/ChangeLog	2014-01-16 09:09:08 UTC (rev 162119)
+++ trunk/Source/WebKit/ChangeLog	2014-01-16 10:22:48 UTC (rev 162120)
@@ -1,3 +1,10 @@
+2014-01-16  Andy Estes  <[email protected]>
+
+        [iOS] Fix build issues with exported headers
+
+        * WebKit.xcodeproj/project.pbxproj: Removed WebPluginPrivate.h from
+        the project.
+
 2014-01-15  Ryuan Choi  <[email protected]>
 
         [EFL][WK1] Implement ProgressTrackerClientEfl to fix the crash

Modified: trunk/Source/WebKit/WebKit.xcodeproj/project.pbxproj (162119 => 162120)


--- trunk/Source/WebKit/WebKit.xcodeproj/project.pbxproj	2014-01-16 09:09:08 UTC (rev 162119)
+++ trunk/Source/WebKit/WebKit.xcodeproj/project.pbxproj	2014-01-16 10:22:48 UTC (rev 162120)
@@ -76,7 +76,6 @@
 		1CCFFD130B1F81F2002EE926 /* OldWebAssertions.c in Sources */ = {isa = PBXBuildFile; fileRef = 1CCFFD120B1F81F2002EE926 /* OldWebAssertions.c */; };
 		224100F3091818D900D2D266 /* WebPluginsPrivate.h in Headers */ = {isa = PBXBuildFile; fileRef = 224100F2091818D900D2D266 /* WebPluginsPrivate.h */; settings = {ATTRIBUTES = (Private, ); }; };
 		224100F90918190100D2D266 /* WebPluginsPrivate.m in Sources */ = {isa = PBXBuildFile; fileRef = 224100F80918190100D2D266 /* WebPluginsPrivate.m */; };
-		225F881509F97E8A00423A40 /* WebPluginPrivate.h in Headers */ = {isa = PBXBuildFile; fileRef = 225F881409F97E8A00423A40 /* WebPluginPrivate.h */; settings = {ATTRIBUTES = (Private, ); }; };
 		22F219CC08D236730030E078 /* WebBackForwardListPrivate.h in Headers */ = {isa = PBXBuildFile; fileRef = 22F219CB08D236730030E078 /* WebBackForwardListPrivate.h */; settings = {ATTRIBUTES = (Private, ); }; };
 		29AEF960134C76FB00FE5096 /* OutlookQuirksUserScript.js in Resources */ = {isa = PBXBuildFile; fileRef = 29AEF95D134C755400FE5096 /* OutlookQuirksUserScript.js */; };
 		312E2FE514E48182007CCA18 /* WebNotification.h in Headers */ = {isa = PBXBuildFile; fileRef = 312E2FE314E48182007CCA18 /* WebNotification.h */; settings = {ATTRIBUTES = (Private, ); }; };
@@ -520,7 +519,6 @@
 		1CCFFD120B1F81F2002EE926 /* OldWebAssertions.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = OldWebAssertions.c; sourceTree = "<group>"; };
 		224100F2091818D900D2D266 /* WebPluginsPrivate.h */ = {isa = PBXFileReference; fileEncoding = 4; indentWidth = 4; lastKnownFileType = sourcecode.c.h; path = WebPluginsPrivate.h; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; };
 		224100F80918190100D2D266 /* WebPluginsPrivate.m */ = {isa = PBXFileReference; fileEncoding = 4; indentWidth = 4; lastKnownFileType = sourcecode.c.objc; path = WebPluginsPrivate.m; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; };
-		225F881409F97E8A00423A40 /* WebPluginPrivate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WebPluginPrivate.h; sourceTree = "<group>"; };
 		22F219CB08D236730030E078 /* WebBackForwardListPrivate.h */ = {isa = PBXFileReference; fileEncoding = 4; indentWidth = 4; lastKnownFileType = sourcecode.c.h; path = WebBackForwardListPrivate.h; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; };
 		2568C72C0174912D0ECA149E /* WebKit.h */ = {isa = PBXFileReference; fileEncoding = 4; indentWidth = 4; lastKnownFileType = sourcecode.c.h; path = WebKit.h; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; };
 		29AEF95D134C755400FE5096 /* OutlookQuirksUserScript.js */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode._javascript_; path = OutlookQuirksUserScript.js; sourceTree = "<group>"; };
@@ -1260,7 +1258,6 @@
 				83E4AF4B036659440000E506 /* WebPluginPackage.h */,
 				83E4AF4C036659440000E506 /* WebPluginPackage.mm */,
 				A17A11B0180DC84800E5498C /* WebPluginPackagePrivate.h */,
-				225F881409F97E8A00423A40 /* WebPluginPrivate.h */,
 				848DFF860365FE6A00CA2ACA /* WebPluginViewFactory.h */,
 				83E679780726D7CF006C7A36 /* WebPluginViewFactoryPrivate.h */,
 			);
@@ -1862,7 +1859,6 @@
 				7C1FB3C21846E8E1001A03D8 /* WebAllowDenyPolicyListener.h in Headers */,
 				939810380824BF01008DF038 /* WebPluginDatabase.h in Headers */,
 				939810390824BF01008DF038 /* WebPluginPackage.h in Headers */,
-				225F881509F97E8A00423A40 /* WebPluginPrivate.h in Headers */,
 				1A77B02E0EE7730500C8A1F9 /* WebPluginRequest.h in Headers */,
 				224100F3091818D900D2D266 /* WebPluginsPrivate.h in Headers */,
 				9398103A0824BF01008DF038 /* WebPluginViewFactory.h in Headers */,

Modified: trunk/Source/WebKit/ios/ChangeLog (162119 => 162120)


--- trunk/Source/WebKit/ios/ChangeLog	2014-01-16 09:09:08 UTC (rev 162119)
+++ trunk/Source/WebKit/ios/ChangeLog	2014-01-16 10:22:48 UTC (rev 162120)
@@ -1,3 +1,10 @@
+2014-01-16  Andy Estes  <[email protected]>
+
+        [iOS] Fix build issues with exported headers
+
+        * Misc/WebNSStringExtrasIOS.h: Changed PLATFORM(IOS) to
+        TARGET_OS_IPHONE.
+
 2014-01-14  Simon Fraser  <[email protected]>
 
         Avoid PLATFORM() macros in exported headers.

Modified: trunk/Source/WebKit/ios/Misc/WebNSStringExtrasIOS.h (162119 => 162120)


--- trunk/Source/WebKit/ios/Misc/WebNSStringExtrasIOS.h	2014-01-16 09:09:08 UTC (rev 162119)
+++ trunk/Source/WebKit/ios/Misc/WebNSStringExtrasIOS.h	2014-01-16 10:22:48 UTC (rev 162120)
@@ -23,7 +23,7 @@
  * THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#if PLATFORM(IOS)
+#if TARGET_OS_IPHONE
 
 #import <Foundation/Foundation.h>
 
@@ -35,4 +35,4 @@
 
 @end
 
-#endif // PLATFORM(IOS)
+#endif

Modified: trunk/Source/WebKit/mac/ChangeLog (162119 => 162120)


--- trunk/Source/WebKit/mac/ChangeLog	2014-01-16 09:09:08 UTC (rev 162119)
+++ trunk/Source/WebKit/mac/ChangeLog	2014-01-16 10:22:48 UTC (rev 162120)
@@ -1,3 +1,21 @@
+2014-01-16  Andy Estes  <[email protected]>
+
+        [iOS] Fix build issues with exported headers
+
+        * DOM/WebDOMOperationsPrivate.h: Changed PLATFORM(IOS) to
+        TARGET_OS_IPHONE.
+        * MigrateHeaders.make: Excluded WAKScrollView.h from normal replacement
+        rules so that WebCoreFrameScrollView won't inadvertently get changed to
+        WebKitFrameScrollView.
+        * Plugins/WebPlugin.h: Moved contents of WebPluginPrivate.h to here in
+        order to maintain source compatibility.
+        * Plugins/WebPluginController.mm: Removed an import of WebPluginPrivate.h.
+        * Plugins/WebPluginPrivate.h: Removed.
+        * Storage/WebDatabaseManagerPrivate.h: Replaced ENABLE(SQL_DATABASE)
+        with ENABLE_SQL_DATABASE.
+        * WebView/WebViewPrivate.h: Added declaration of
+        -[WebView _touchEventRegions] for source compatibility.
+
 2014-01-15  Benjamin Poulain  <[email protected]>
 
         Fix the iOS build after r162114

Modified: trunk/Source/WebKit/mac/DOM/WebDOMOperationsPrivate.h (162119 => 162120)


--- trunk/Source/WebKit/mac/DOM/WebDOMOperationsPrivate.h	2014-01-16 09:09:08 UTC (rev 162119)
+++ trunk/Source/WebKit/mac/DOM/WebDOMOperationsPrivate.h	2014-01-16 10:22:48 UTC (rev 162120)
@@ -29,7 +29,7 @@
 #import <WebKit/WebDOMOperations.h>
 #import <_javascript_Core/JSBase.h>
 
-#if PLATFORM(IOS)
+#if TARGET_OS_IPHONE
 #import <Foundation/NSGeometry.h>
 #endif
 

Modified: trunk/Source/WebKit/mac/MigrateHeaders.make (162119 => 162120)


--- trunk/Source/WebKit/mac/MigrateHeaders.make	2014-01-16 09:09:08 UTC (rev 162119)
+++ trunk/Source/WebKit/mac/MigrateHeaders.make	2014-01-16 10:22:48 UTC (rev 162120)
@@ -221,6 +221,13 @@
     $(PRIVATE_HEADERS_DIR)/WebCoreThreadRun.h \
     $(PRIVATE_HEADERS_DIR)/WebEvent.h \
     $(PRIVATE_HEADERS_DIR)/WebEventRegion.h
+
+
+# Special case WAKScrollView.h, which contains the protocol named
+# <WebCoreFrameScrollView> and shouldn't be changed by the default rule.
+$(PRIVATE_HEADERS_DIR)/WAKScrollView.h : WAKScrollView.h MigrateHeaders.make
+	cat $< > $@
+
 endif
 
 REPLACE_RULES = -e s/\<WebCore/\<WebKit/ -e s/DOMDOMImplementation/DOMImplementation/

Modified: trunk/Source/WebKit/mac/Plugins/WebPlugin.h (162119 => 162120)


--- trunk/Source/WebKit/mac/Plugins/WebPlugin.h	2014-01-16 09:09:08 UTC (rev 162119)
+++ trunk/Source/WebKit/mac/Plugins/WebPlugin.h	2014-01-16 10:22:48 UTC (rev 162120)
@@ -135,4 +135,37 @@
 */
 - (void)webPlugInMainResourceDidFinishLoading WEBKIT_AVAILABLE_MAC(10_6);
 
+#if TARGET_OS_IPHONE
+
+// FIXME: Comment me
+- (Class)webPlugInFullScreenWindowClass;
+
+// FIXME: Comment me
+- (void)webPlugInWillEnterFullScreenWithFrame:(CGRect)newFrame;
+
+// FIXME: Comment me
+- (void)webPlugInWillLeaveFullScreenWithFrame:(CGRect)newFrame;
+
+// FIXME: Comment me
+- (BOOL)webPlugInReceivesEventsDirectly;
+
+// FIXME: Comment me
+- (void)webPlugInLayout;
+
+// FIXME: Comment me
+- (void)webPlugInDidDraw;
+
+/*!
+ @method webPlugInStopForPageCache
+ @abstract Tell the plug-in to stop normal operation because the page the plug-in
+ belongs to is entering a cache.
+ @discussion A page in the PageCache can be quickly resumed. This is much like
+ pausing and resuming a plug-in except the frame containing the plug-in will
+ not be visible, is not active, and may even have been torn down. The API contract
+ for messages before and after this message are the same as -webPlugInStop.
+ */
+- (void)webPlugInStopForPageCache;
+
+#endif
+
 @end

Modified: trunk/Source/WebKit/mac/Plugins/WebPluginController.mm (162119 => 162120)


--- trunk/Source/WebKit/mac/Plugins/WebPluginController.mm	2014-01-16 09:09:08 UTC (rev 162119)
+++ trunk/Source/WebKit/mac/Plugins/WebPluginController.mm	2014-01-16 10:22:48 UTC (rev 162120)
@@ -44,7 +44,6 @@
 #import "WebPluginContainer.h"
 #import "WebPluginContainerCheck.h"
 #import "WebPluginPackage.h"
-#import "WebPluginPrivate.h"
 #import "WebPluginViewFactory.h"
 #import "WebUIDelegate.h"
 #import "WebViewInternal.h"

Deleted: trunk/Source/WebKit/mac/Plugins/WebPluginPrivate.h (162119 => 162120)


--- trunk/Source/WebKit/mac/Plugins/WebPluginPrivate.h	2014-01-16 09:09:08 UTC (rev 162119)
+++ trunk/Source/WebKit/mac/Plugins/WebPluginPrivate.h	2014-01-16 10:22:48 UTC (rev 162120)
@@ -1,64 +0,0 @@
-/*
- * Copyright (C) 2004 Apple Computer, Inc.  All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * 1.  Redistributions of source code must retain the above copyright
- *     notice, this list of conditions and the following disclaimer. 
- * 2.  Redistributions in binary form must reproduce the above copyright
- *     notice, this list of conditions and the following disclaimer in the
- *     documentation and/or other materials provided with the distribution. 
- * 3.  Neither the name of Apple Computer, Inc. ("Apple") nor the names of
- *     its contributors may be used to endorse or promote products derived
- *     from this software without specific prior written permission. 
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
- * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
- * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
- * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-@interface NSObject (WebPlugInPrivate)
-
-#if TARGET_OS_IPHONE
-
-// FIXME: Comment me
-- (Class)webPlugInFullScreenWindowClass;
-
-// FIXME: Comment me
-- (void)webPlugInWillEnterFullScreenWithFrame:(CGRect)newFrame;
-
-// FIXME: Comment me
-- (void)webPlugInWillLeaveFullScreenWithFrame:(CGRect)newFrame;
-
-// FIXME: Comment me
-- (BOOL)webPlugInReceivesEventsDirectly;
-
-// FIXME: Comment me
-- (void)webPlugInLayout;
-
-// FIXME: Comment me
-- (void)webPlugInDidDraw;
-
-/*!
- @method webPlugInStopForPageCache
- @abstract Tell the plug-in to stop normal operation because the page the plug-in
- belongs to is entering a cache.
- @discussion A page in the PageCache can be quickly resumed. This is much like
- pausing and resuming a plug-in except the frame containing the plug-in will
- not be visible, is not active, and may even have been torn down. The API contract
- for messages before and after this message are the same as -webPlugInStop.
- */
-- (void)webPlugInStopForPageCache;
-
-#endif
-
-@end

Modified: trunk/Source/WebKit/mac/Storage/WebDatabaseManagerPrivate.h (162119 => 162120)


--- trunk/Source/WebKit/mac/Storage/WebDatabaseManagerPrivate.h	2014-01-16 09:09:08 UTC (rev 162119)
+++ trunk/Source/WebKit/mac/Storage/WebDatabaseManagerPrivate.h	2014-01-16 10:22:48 UTC (rev 162120)
@@ -26,9 +26,12 @@
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-// FIXME: We shouldn't use ENABLE() macros in exported headers
-#if ENABLE(SQL_DATABASE)
+#if !defined(ENABLE_SQL_DATABASE)
+#define ENABLE_SQL_DATABASE 1
+#endif
 
+#if ENABLE_SQL_DATABASE
+
 extern NSString *WebDatabaseDirectoryDefaultsKey;
 
 extern NSString *WebDatabaseDisplayNameKey;
@@ -76,4 +79,4 @@
 #endif
 @end
 
-#endif
+#endif // ENABLE_SQL_DATABASE

Modified: trunk/Source/WebKit/mac/WebView/WebViewPrivate.h (162119 => 162120)


--- trunk/Source/WebKit/mac/WebView/WebViewPrivate.h	2014-01-16 09:09:08 UTC (rev 162119)
+++ trunk/Source/WebKit/mac/WebView/WebViewPrivate.h	2014-01-16 10:22:48 UTC (rev 162120)
@@ -579,6 +579,8 @@
 
 - (void)_viewGeometryDidChange;
 - (void)_overflowScrollPositionChangedTo:(CGPoint)offset forNode:(DOMNode *)node isUserScroll:(BOOL)userScroll;
+
+- (NSArray *)_touchEventRegions;
 #endif
 
 #if !TARGET_OS_IPHONE
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to