Add more WEBCORE_EXPORT macros for iOS.
authorachristensen@apple.com <achristensen@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 10 Feb 2015 23:07:47 +0000 (23:07 +0000)
committerachristensen@apple.com <achristensen@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 10 Feb 2015 23:07:47 +0000 (23:07 +0000)
https://bugs.webkit.org/show_bug.cgi?id=141430

Reviewed by Tim Horton.

* bindings/objc/WebScriptObject.h:
* bindings/scripts/CodeGeneratorObjC.pm:
(GenerateHeader):
* dom/Event.h:
* dom/Node.h:
* editing/FrameSelection.h:
* html/HTMLFormControlElement.h:
* html/HTMLMediaSession.h:
* page/Frame.h:
* page/FrameView.h:
* platform/ScrollView.h:
* platform/ios/PasteboardIOS.mm:
* platform/ios/wak/WAKAppKitStubs.h:
* platform/ios/wak/WAKClipView.h:
* platform/ios/wak/WAKScrollView.h:
* platform/ios/wak/WAKView.h:
* platform/ios/wak/WAKWindow.h:
* platform/ios/wak/WAKWindow.mm:
* platform/ios/wak/WKContentObservation.h:
* platform/ios/wak/WKGraphics.h:
* platform/ios/wak/WebCoreThread.h:
* platform/ios/wak/WebCoreThread.mm:
* platform/ios/wak/WebCoreThreadRun.h:
* platform/ios/wak/WebCoreThreadSystemInterface.h:
* platform/network/ios/QuickLook.h:
* platform/text/TextBreakIterator.h:

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

26 files changed:
Source/WebCore/ChangeLog
Source/WebCore/bindings/objc/WebScriptObject.h
Source/WebCore/bindings/scripts/CodeGeneratorObjC.pm
Source/WebCore/dom/Event.h
Source/WebCore/dom/Node.h
Source/WebCore/editing/FrameSelection.h
Source/WebCore/html/HTMLFormControlElement.h
Source/WebCore/html/HTMLMediaSession.h
Source/WebCore/page/Frame.h
Source/WebCore/page/FrameView.h
Source/WebCore/platform/ScrollView.h
Source/WebCore/platform/ios/PasteboardIOS.mm
Source/WebCore/platform/ios/wak/WAKAppKitStubs.h
Source/WebCore/platform/ios/wak/WAKClipView.h
Source/WebCore/platform/ios/wak/WAKScrollView.h
Source/WebCore/platform/ios/wak/WAKView.h
Source/WebCore/platform/ios/wak/WAKWindow.h
Source/WebCore/platform/ios/wak/WAKWindow.mm
Source/WebCore/platform/ios/wak/WKContentObservation.h
Source/WebCore/platform/ios/wak/WKGraphics.h
Source/WebCore/platform/ios/wak/WebCoreThread.h
Source/WebCore/platform/ios/wak/WebCoreThread.mm
Source/WebCore/platform/ios/wak/WebCoreThreadRun.h
Source/WebCore/platform/ios/wak/WebCoreThreadSystemInterface.h
Source/WebCore/platform/network/ios/QuickLook.h
Source/WebCore/platform/text/TextBreakIterator.h

index 1735c9f..258573d 100644 (file)
@@ -1,3 +1,37 @@
+2015-02-10  Alex Christensen  <achristensen@webkit.org>
+
+        Add more WEBCORE_EXPORT macros for iOS.
+        https://bugs.webkit.org/show_bug.cgi?id=141430
+
+        Reviewed by Tim Horton.
+
+        * bindings/objc/WebScriptObject.h:
+        * bindings/scripts/CodeGeneratorObjC.pm:
+        (GenerateHeader):
+        * dom/Event.h:
+        * dom/Node.h:
+        * editing/FrameSelection.h:
+        * html/HTMLFormControlElement.h:
+        * html/HTMLMediaSession.h:
+        * page/Frame.h:
+        * page/FrameView.h:
+        * platform/ScrollView.h:
+        * platform/ios/PasteboardIOS.mm:
+        * platform/ios/wak/WAKAppKitStubs.h:
+        * platform/ios/wak/WAKClipView.h:
+        * platform/ios/wak/WAKScrollView.h:
+        * platform/ios/wak/WAKView.h:
+        * platform/ios/wak/WAKWindow.h:
+        * platform/ios/wak/WAKWindow.mm:
+        * platform/ios/wak/WKContentObservation.h:
+        * platform/ios/wak/WKGraphics.h:
+        * platform/ios/wak/WebCoreThread.h:
+        * platform/ios/wak/WebCoreThread.mm:
+        * platform/ios/wak/WebCoreThreadRun.h:
+        * platform/ios/wak/WebCoreThreadSystemInterface.h:
+        * platform/network/ios/QuickLook.h:
+        * platform/text/TextBreakIterator.h:
+
 2015-02-09  David Hyatt  <hyatt@apple.com>
 
         text-underline-position: under is broken
index ccce173..b6fc113 100644 (file)
         - (void)setWebScriptValueAtIndex:(unsigned)index value:(id)value;
 */
 WEBKIT_CLASS_AVAILABLE_MAC(10_4)
-@interface WebScriptObject : NSObject
+WEBCORE_EXPORT @interface WebScriptObject : NSObject
 {
     WebScriptObjectPrivate *_private;
 }
index 704343b..fc8fff0 100644 (file)
@@ -831,7 +831,7 @@ sub GenerateHeader
     }
 
     # - Begin @interface or @protocol
-    my $interfaceDeclaration = ($isProtocol ? "\@protocol $className" : "\@interface $className : $parentName");
+    my $interfaceDeclaration = ($isProtocol ? "\@protocol $className" : "WEBCORE_EXPORT \@interface $className : $parentName");
     $interfaceDeclaration .= " <" . join(", ", @protocolsToImplement) . ">" if @protocolsToImplement > 0;
     $interfaceDeclaration .= "\n";
 
index a7c8cd2..3786e3d 100644 (file)
@@ -180,7 +180,7 @@ public:
 
 protected:
     Event();
-    Event(const AtomicString& type, bool canBubble, bool cancelable);
+    WEBCORE_EXPORT Event(const AtomicString& type, bool canBubble, bool cancelable);
     Event(const AtomicString& type, bool canBubble, bool cancelable, double timestamp);
     Event(const AtomicString& type, const EventInit&);
 
index 5525e4a..f750103 100644 (file)
@@ -690,7 +690,7 @@ private:
     bool hasTreeSharedParent() const { return !!parentNode(); }
 
     enum EditableLevel { Editable, RichlyEditable };
-    bool hasEditableStyle(EditableLevel, UserSelectAllTreatment = UserSelectAllIsAlwaysNonEditable) const;
+    WEBCORE_EXPORT bool hasEditableStyle(EditableLevel, UserSelectAllTreatment = UserSelectAllIsAlwaysNonEditable) const;
     WEBCORE_EXPORT bool isEditableToAccessibility(EditableLevel) const;
 
     virtual void refEventTarget() override;
index e52e79a..e642045 100644 (file)
@@ -137,7 +137,7 @@ public:
     WEBCORE_EXPORT Element* rootEditableElementOrDocumentElement() const;
      
     void moveTo(const Range*);
-    void moveTo(const VisiblePosition&, EUserTriggered = NotUserTriggered, CursorAlignOnScroll = AlignCursorOnScrollIfNeeded);
+    WEBCORE_EXPORT void moveTo(const VisiblePosition&, EUserTriggered = NotUserTriggered, CursorAlignOnScroll = AlignCursorOnScrollIfNeeded);
     WEBCORE_EXPORT void moveTo(const VisiblePosition&, const VisiblePosition&, EUserTriggered = NotUserTriggered);
     void moveTo(const Position&, EAffinity, EUserTriggered = NotUserTriggered);
     void moveTo(const Position&, const Position&, EAffinity, EUserTriggered = NotUserTriggered);
index 23fdc08..8669bdc 100644 (file)
@@ -90,10 +90,10 @@ public:
     virtual void setActivatedSubmit(bool) { }
 
 #if ENABLE(IOS_AUTOCORRECT_AND_AUTOCAPITALIZE)
-    bool autocorrect() const;
+    WEBCORE_EXPORT bool autocorrect() const;
     void setAutocorrect(bool);
 
-    WebAutocapitalizeType autocapitalizeType() const;
+    WEBCORE_EXPORT WebAutocapitalizeType autocapitalizeType() const;
     const AtomicString& autocapitalize() const;
     void setAutocapitalize(const AtomicString&);
 #endif
index d42eda5..a90f08a 100644 (file)
@@ -61,7 +61,7 @@ public:
     void setHasPlaybackTargetAvailabilityListeners(const HTMLMediaElement&, bool);
 #endif
     bool requiresFullscreenForVideoPlayback(const HTMLMediaElement&) const;
-    bool allowsAlternateFullscreen(const HTMLMediaElement&) const;
+    WEBCORE_EXPORT bool allowsAlternateFullscreen(const HTMLMediaElement&) const;
     MediaPlayer::Preload effectivePreloadForElement(const HTMLMediaElement&) const;
 
     void applyMediaPlayerRestrictions(const HTMLMediaElement&);
index ca7801a..5534d34 100644 (file)
@@ -252,7 +252,7 @@ namespace WebCore {
         WEBCORE_EXPORT void clearRangedSelectionInitialExtent();
         WEBCORE_EXPORT void setRangedSelectionInitialExtentToCurrentSelectionStart();
         WEBCORE_EXPORT void setRangedSelectionInitialExtentToCurrentSelectionEnd();
-        VisibleSelection rangedSelectionBase() const;
+        WEBCORE_EXPORT VisibleSelection rangedSelectionBase() const;
         WEBCORE_EXPORT VisibleSelection rangedSelectionInitialExtent() const;
         WEBCORE_EXPORT void recursiveSetUpdateAppearanceEnabled(bool);
         WEBCORE_EXPORT NSArray* interpretationsForCurrentRoot() const;
index f8f0ef1..27bf40c 100644 (file)
@@ -244,7 +244,7 @@ public:
     void delayedScrollEventTimerFired();
 
     void viewportContentsChanged();
-    void resumeVisibleImageAnimationsIncludingSubframes();
+    WEBCORE_EXPORT void resumeVisibleImageAnimationsIncludingSubframes();
 
     // This is different than visibleContentRect() in that it ignores negative (or overly positive)
     // offsets from rubber-banding, and it takes zooming into account. 
index 851e83b..b6a6eb8 100644 (file)
@@ -180,7 +180,7 @@ public:
     // Parts of the document can be visible through transparent or blured UI widgets of the chrome. Those parts
     // contribute to painting but not to the scrollable area.
     // The unobscuredContentRect is the area that is not covered by UI elements.
-    IntRect unobscuredContentRect(VisibleContentRectIncludesScrollbars = ExcludeScrollbars) const;
+    WEBCORE_EXPORT IntRect unobscuredContentRect(VisibleContentRectIncludesScrollbars = ExcludeScrollbars) const;
 #if PLATFORM(IOS)
     IntRect unobscuredContentRectIncludingScrollbars() const { return unobscuredContentRect(IncludeScrollbars); }
 #else
index 77a5248..cba736c 100644 (file)
@@ -96,7 +96,7 @@ SOFT_LINK_CONSTANT(MobileCoreServices, kUTTypeRTF, CFStringRef)
 namespace WebCore {
 
 // FIXME: Does this need to be declared in the header file?
-NSString *WebArchivePboardType = @"Apple Web Archive pasteboard type";
+WEBCORE_EXPORT NSString *WebArchivePboardType = @"Apple Web Archive pasteboard type";
 
 // Making this non-inline so that WebKit 2's decoding doesn't have to include SharedBuffer.h.
 PasteboardWebContent::PasteboardWebContent()
index 9a60afb..fc90d29 100644 (file)
@@ -209,7 +209,7 @@ typedef enum _NSSelectionDirection {
     NSSelectingPrevious
 } NSSelectionDirection;
 
-@interface NSCursor : NSObject
+WEBCORE_EXPORT @interface NSCursor : NSObject
 + (void)setHiddenUntilMouseMoves:(BOOL)flag;
 @end
 
index afbf8af..80d40aa 100644 (file)
@@ -30,7 +30,7 @@
 
 #import "WAKView.h"
 
-@interface WAKClipView : WAKView
+WEBCORE_EXPORT @interface WAKClipView : WAKView
 
 @property (nonatomic, readonly) WAKView *documentView;
 @property (nonatomic, assign) BOOL copiesOnScroll;
index 590a210..b769aa8 100644 (file)
@@ -34,7 +34,7 @@
 
 @class WAKClipView;
 
-@interface WAKScrollView : WAKView <WebCoreFrameScrollView>
+WEBCORE_EXPORT @interface WAKScrollView : WAKView <WebCoreFrameScrollView>
 {
     WAKView *_documentView;  // Only here so the ObjC instance stays around.
     WAKClipView *_contentView;
index b058e4a..bbd5f81 100644 (file)
@@ -38,7 +38,7 @@ extern NSString *WAKViewDidScrollNotification;
 
 @class WAKWindow;
 
-@interface WAKView : WAKResponder
+WEBCORE_EXPORT @interface WAKView : WAKResponder
 
 + (WAKView *)focusView;
 
index 3d960e0..4bc22f4 100644 (file)
@@ -66,7 +66,7 @@ typedef enum {
 extern NSString * const WAKWindowScreenScaleDidChangeNotification;
 extern NSString * const WAKWindowVisibilityDidChangeNotification;
 
-@interface WAKWindow : WAKResponder
+WEBCORE_EXPORT @interface WAKWindow : WAKResponder
 {
     CALayer* _hostLayer;
     LegacyTileCache* _tileCache;
index 674a3e4..0e1ce78 100644 (file)
@@ -38,8 +38,8 @@
 #import <QuartzCore/QuartzCore.h>
 #import <wtf/TCSpinLock.h>
 
-NSString * const WAKWindowScreenScaleDidChangeNotification = @"WAKWindowScreenScaleDidChangeNotification";
-NSString * const WAKWindowVisibilityDidChangeNotification = @"WAKWindowVisibilityDidChangeNotification";
+WEBCORE_EXPORT NSString * const WAKWindowScreenScaleDidChangeNotification = @"WAKWindowScreenScaleDidChangeNotification";
+WEBCORE_EXPORT NSString * const WAKWindowVisibilityDidChangeNotification = @"WAKWindowVisibilityDidChangeNotification";
 
 using namespace WebCore;
 
index 4c18f42..a5ca672 100644 (file)
@@ -44,7 +44,7 @@ bool WKObservingContentChanges(void);
 WEBCORE_EXPORT void WKStopObservingContentChanges(void);
 WEBCORE_EXPORT void WKBeginObservingContentChanges(bool allowsIntedeterminateChanges);
 
-WKContentChange WKObservedContentChange(void);
+WEBCORE_EXPORT WKContentChange WKObservedContentChange(void);
 void WKSetObservedContentChange(WKContentChange aChange);
 
 WEBCORE_EXPORT int WebThreadCountOfObservedContentModifiers(void);
index 7c40bc4..f6fc042 100644 (file)
@@ -37,10 +37,10 @@ typedef uint32_t CGFontAntialiasingStyle;
 extern "C" {
 #endif
 
-CGContextRef WKGetCurrentGraphicsContext(void);
-void WKSetCurrentGraphicsContext(CGContextRef context);
+WEBCORE_EXPORT CGContextRef WKGetCurrentGraphicsContext(void);
+WEBCORE_EXPORT void WKSetCurrentGraphicsContext(CGContextRef);
 
-void WKRectFill(CGContextRef context, CGRect aRect);
+WEBCORE_EXPORT void WKRectFill(CGContextRef, CGRect aRect);
 void WKRectFillUsingOperation(CGContextRef, CGRect, WKCompositeOperation);
 
 CGImageRef WKGraphicsCreateImageFromBundleWithName(const char *image_file);
index 4def270..efb8d7a 100644 (file)
@@ -49,7 +49,7 @@ class NSRunLoop;
 // The lock is automatically freed at the bottom of the runloop. No need to unlock.
 // Note that calling this function may hang your UI for several seconds. Don't use
 // unless you have to.
-void WebThreadLock(void);
+WEBCORE_EXPORT void WebThreadLock(void);
     
 // This is a no-op for compatibility only. It will go away. Please don't use.
 WEBCORE_EXPORT void WebThreadUnlock(void);
index d9d1396..e9a6323 100644 (file)
@@ -135,7 +135,7 @@ static unsigned mainThreadLockCount;
 static unsigned otherThreadLockCount;
 static unsigned sMainThreadModalCount;
 
-volatile bool webThreadShouldYield;
+WEBCORE_EXPORT volatile bool webThreadShouldYield;
 
 static pthread_mutex_t WebCoreReleaseLock;
 static void WebCoreObjCDeallocOnWebThreadImpl(id self, SEL _cmd);
index 5a88e81..74e47b9 100644 (file)
@@ -45,7 +45,7 @@ extern "C" {
 //   WebThreadRunSync(^{ code; });
 // will queue the block and wait for its execution to finish.
 
-void WebThreadRun(void (^block)());
+WEBCORE_EXPORT void WebThreadRun(void (^block)());
 void WebThreadRunSync(void (^block)());
 
 #if defined(__cplusplus)
index 431e0ba..c2ed421 100644 (file)
@@ -29,7 +29,7 @@
 extern "C" {
 #endif
 
-void InitWebCoreThreadSystemInterface(void);
+WEBCORE_EXPORT void InitWebCoreThreadSystemInterface(void);
 
 #ifdef __cplusplus
 }
index ca1cff2..f5762f0 100644 (file)
@@ -61,7 +61,7 @@ Class QLPreviewConverterClass();
 NSString *QLTypeCopyBestMimeTypeForFileNameAndMimeType(NSString *fileName, NSString *mimeType);
 NSString *QLTypeCopyBestMimeTypeForURLAndMimeType(NSURL *, NSString *mimeType);
 
-NSSet *QLPreviewGetSupportedMIMETypesSet();
+WEBCORE_EXPORT NSSet *QLPreviewGetSupportedMIMETypesSet();
 
 // Used for setting the permissions on the saved QL content
 NSDictionary *QLFileAttributes();
@@ -95,7 +95,7 @@ public:
     WEBCORE_EXPORT ~QuickLookHandle();
 
     WEBCORE_EXPORT bool didReceiveDataArray(CFArrayRef);
-    bool didReceiveData(CFDataRef);
+    WEBCORE_EXPORT bool didReceiveData(CFDataRef);
     WEBCORE_EXPORT bool didFinishLoading();
     WEBCORE_EXPORT void didFail();
 
index 6ba28f9..6a1c235 100644 (file)
@@ -64,7 +64,7 @@ bool isWordTextBreak(TextBreakIterator*);
 
 const int TextBreakDone = -1;
 
-bool isCJKLocale(const AtomicString&);
+WEBCORE_EXPORT bool isCJKLocale(const AtomicString&);
 
 class LazyLineBreakIterator {
 public: