Changeset 163886 in webkit
- Timestamp:
- Feb 11, 2014 10:00:45 AM (10 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 2 added
- 1 deleted
- 46 edited
- 1 copied
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r163877 r163886 1 2014-02-11 Dan Bernstein <mitz@apple.com> 2 3 Stop using PLATFORM(MAC) in WebKit2/Shared except where it means “OS X but not iOS” 4 https://bugs.webkit.org/show_bug.cgi?id=128582 5 6 Reviewed by Darin Adler. 7 8 * Shared/API/c/WKContextMenuItem.cpp: Removed workaround for Mac Safari 6 compatibility. 9 (WKContextMenuItemGetTag): 10 * Shared/API/c/WKDeprecatedFunctions.cpp: Added && !PLATFORM(IOS), because these functions 11 are not needed on iOS. 12 * Shared/API/c/WKSharedAPICast.h: Changed PLATFORM(MAC) to PLATFORM(COCOA). 13 (WebKit::toAPI): 14 (WebKit::toImpl): 15 * Shared/APIObject.h: Ditto. 16 * Shared/ChildProcess.cpp: Ditto. 17 * Shared/ChildProcess.h: Changed PLATFORM(MAC) to PLATFORM(COCOA) around 18 setApplicationIsDaemon and setQOS. Changed it to USE(APPKIT) around stopNSAppRunLoop. 19 * Shared/CommandLine.h: Changed PLATFORM(MAC) to OS(UNIX) around parse(). 20 * Shared/DictionaryPopupInfo.cpp: Changed PLATFORM(MAC) to PLATFORM(COCOA). 21 (WebKit::DictionaryPopupInfo::encode): 22 (WebKit::DictionaryPopupInfo::decode): 23 * Shared/DictionaryPopupInfo.h: Changed PLATFORM(MAC) to PLATFORM(COCOA). 24 * Shared/Downloads/Download.h: Ditto. 25 * Shared/DrawingAreaInfo.h: Changed PLATFORM(MAC) to PLATFORM(COCOA). 26 * Shared/FontInfo.cpp: Changed PLATFORM(MAC) to PLATFORM(COCOA). 27 (WebKit::FontInfo::encode): 28 (WebKit::FontInfo::decode): 29 * Shared/FontInfo.h: Ditto. 30 * Shared/LayerTreeContext.h: Ditto. 31 * Shared/NativeWebKeyboardEvent.h: Changed PLATFORM(MAC) to USE(APPKIT) around 32 forward-declaration of NSView. 33 * Shared/NativeWebMouseEvent.h: Ditto. 34 * Shared/NativeWebWheelEvent.h: Ditto. 35 * Shared/Network/CustomProtocols/Cocoa: Renamed from mac. 36 * Shared/Network/CustomProtocols/Cocoa/CustomProtocolManagerCocoa.mm: Renamed from CustomProtocolManagerMac.mm. 37 * Shared/Network/CustomProtocols/Cocoa/CustomProtocolManagerMac.mm: Removed. 38 * Shared/Network/CustomProtocols/CustomProtocolManager.h: Changed PLATFORM(MAC) to 39 PLATFORM(COCOA). 40 * Shared/Network/CustomProtocols/mac: Removed. 41 * Shared/Network/CustomProtocols/mac/CustomProtocolManagerMac.mm: Removed. 42 * Shared/PlatformPopupMenuData.cpp: Changed PLATFORM(MAC) to PLATFORM(COCOA). 43 (WebKit::PlatformPopupMenuData::encode): 44 (WebKit::PlatformPopupMenuData::decode): 45 * Shared/PlatformPopupMenuData.h: Ditto. 46 * Shared/Plugins/Netscape/PluginInformation.cpp: Ditto. 47 * Shared/Plugins/PluginModuleInfo.h: Ditto. 48 * Shared/Plugins/PluginProcessCreationParameters.cpp: Ditto. 49 (WebKit::PluginProcessCreationParameters::encode): 50 (WebKit::PluginProcessCreationParameters::decode): 51 * Shared/Plugins/PluginProcessCreationParameters.h: Ditto. 52 * Shared/PrintInfo.h: Changed PLATFORM(MAC) to USE(APPKIT) around forward declaration of 53 NSPrintInfo. 54 * Shared/SandboxInitializationParameters.h: Changed PLATFORM(MAC) to PLATFORM(COCOA). 55 * Shared/TextCheckerState.h: Changed PLATFORM(MAC) to USE(APPKIT). 56 * Shared/WebArchive.cpp: Changed PLATFORM(MAC) to PLATFORM(COCOA). 57 * Shared/WebArchive.h: Ditto. 58 * Shared/WebArchiveResource.cpp: Ditto. 59 * Shared/WebArchiveResource.h: Ditto. 60 * Shared/WebCoreArgumentCoders.cpp: Ditto. 61 (IPC::ArgumentCoder<ResourceResponse>::encode): 62 (IPC::ArgumentCoder<ResourceResponse>::decode): 63 * Shared/WebCoreArgumentCoders.h: Ditto. 64 * Shared/WebEvent.h: Ditto. 65 * Shared/WebEventConversion.cpp: Ditto. 66 (WebKit::WebKit2PlatformWheelEvent::WebKit2PlatformWheelEvent): 67 * Shared/WebKit2Initialize.cpp: Ditto. 68 (WebKit::InitializeWebKit2): 69 * Shared/WebPageCreationParameters.cpp: Ditto. 70 (WebKit::WebPageCreationParameters::encode): 71 (WebKit::WebPageCreationParameters::decode): 72 * Shared/WebPageCreationParameters.h: Ditto. 73 * Shared/WebPreferencesStore.h: Ditto. 74 * Shared/WebProcessCreationParameters.cpp: Ditto. 75 (WebKit::WebProcessCreationParameters::WebProcessCreationParameters): 76 (WebKit::WebProcessCreationParameters::encode): 77 (WebKit::WebProcessCreationParameters::decode): 78 * Shared/WebProcessCreationParameters.h: Ditto. 79 * Shared/WebWheelEvent.cpp: Ditto. 80 (WebKit::WebWheelEvent::WebWheelEvent): 81 (WebKit::WebWheelEvent::encode): 82 (WebKit::WebWheelEvent::decode): 83 * Shared/cf/ArgumentCodersCF.cpp: Changed PLATFORM(MAC) to USE(FOUNDATION). 84 (IPC::decode): 85 * Shared/mac/CommandLineMac.cpp: Removed. 86 * Shared/mac/PDFKitImports.h: Removed PLATFORM(MAC) 87 * Shared/posix: Added. 88 * Shared/posix/CommandLinePOSIX.cpp: Renamed from mac/CommandLineMac.cpp and removed 89 comment. 90 * WebKit2.xcodeproj/project.pbxproj: Updated for moves and renames. 91 1 92 2014-02-11 Brady Eidson <beidson@apple.com> 2 93 -
trunk/Source/WebKit2/Shared/API/c/WKContextMenuItem.cpp
r160432 r163886 32 32 #include "WKAPICast.h" 33 33 #include "WKContextMenuItemTypes.h" 34 35 #if PLATFORM(MAC)36 #import <mach-o/dyld.h>37 #endif38 34 39 35 using namespace WebCore; … … 95 91 } 96 92 97 #if ENABLE(CONTEXT_MENUS)98 #if PLATFORM(MAC)99 static WKContextMenuItemTag compatibleContextMenuItemTag(WKContextMenuItemTag tag)100 {101 static bool needsWorkaround = ^bool {102 const int32_t safariFrameworkVersionWithIncompatibleContextMenuItemTags = 0x02181900; // 536.25.0 (Safari 6.0)103 return NSVersionOfRunTimeLibrary("Safari") == safariFrameworkVersionWithIncompatibleContextMenuItemTags;104 }();105 106 if (!needsWorkaround)107 return tag;108 109 // kWKContextMenuItemTagDictationAlternative was inserted before kWKContextMenuItemTagInspectElement.110 // DictationAlternative is now at the end like it should have been. To be compatible we need to return111 // InspectElement for DictationAlternative and shift InspectElement and after by one.112 if (tag == kWKContextMenuItemTagDictationAlternative)113 return kWKContextMenuItemTagInspectElement;114 if (tag >= kWKContextMenuItemTagInspectElement && tag < kWKContextMenuItemBaseApplicationTag)115 return tag + 1;116 return tag;117 }118 #endif119 #endif // ENABLE(CONTEXT_MENUS)120 121 93 WKContextMenuItemTag WKContextMenuItemGetTag(WKContextMenuItemRef itemRef) 122 94 { 123 95 #if ENABLE(CONTEXT_MENUS) 124 #if PLATFORM(MAC)125 return compatibleContextMenuItemTag(toAPI(toImpl(itemRef)->data()->action()));126 #else127 96 return toAPI(toImpl(itemRef)->data()->action()); 128 #endif129 97 #else 130 98 UNUSED_PARAM(itemRef); -
trunk/Source/WebKit2/Shared/API/c/WKDeprecatedFunctions.cpp
r163821 r163886 31 31 #include "WKSharedAPICast.h" 32 32 33 #if PLATFORM(MAC) 33 #if PLATFORM(MAC) && !PLATFORM(IOS) 34 34 #include "WKContextPrivateMac.h" 35 35 #endif … … 48 48 WK_EXPORT void WKDictionaryRemoveItem(WKMutableDictionaryRef dictionary, WKStringRef key); 49 49 50 #if PLATFORM(MAC) 50 #if PLATFORM(MAC) && !PLATFORM(IOS) 51 51 WK_EXPORT CGContextRef WKGraphicsContextGetCGContext(WKGraphicsContextRef graphicsContext); 52 52 #endif … … 77 77 } 78 78 79 #if PLATFORM(MAC) 79 #if PLATFORM(MAC) && !PLATFORM(IOS) 80 80 CGContextRef WKGraphicsContextGetCGContext(WKGraphicsContextRef graphicsContext) 81 81 { -
trunk/Source/WebKit2/Shared/API/c/WKSharedAPICast.h
r161542 r163886 119 119 template<> struct APITypeInfo<WKMutableArrayRef> { typedef API::Array* ImplType; }; 120 120 121 #if PLATFORM( MAC)121 #if PLATFORM(COCOA) 122 122 WK_ADD_API_MAPPING(WKWebArchiveRef, WebArchive) 123 123 WK_ADD_API_MAPPING(WKWebArchiveResourceRef, WebArchiveResource) … … 483 483 case WebCore::ContextMenuItemTagMediaMute: 484 484 return kWKContextMenuItemTagMediaMute; 485 #if PLATFORM( MAC)485 #if PLATFORM(COCOA) 486 486 case WebCore::ContextMenuItemTagCorrectSpellingAutomatically: 487 487 return kWKContextMenuItemTagCorrectSpellingAutomatically; … … 677 677 case kWKContextMenuItemTagMediaMute: 678 678 return WebCore::ContextMenuItemTagMediaMute; 679 #if PLATFORM( MAC)679 #if PLATFORM(COCOA) 680 680 case kWKContextMenuItemTagCorrectSpellingAutomatically: 681 681 return WebCore::ContextMenuItemTagCorrectSpellingAutomatically; -
trunk/Source/WebKit2/Shared/APIObject.h
r162449 r163886 32 32 #include <wtf/ThreadSafeRefCounted.h> 33 33 34 #if PLATFORM( MAC)34 #if PLATFORM(COCOA) 35 35 #include "WKFoundation.h" 36 36 #ifdef __OBJC__ … … 39 39 #endif 40 40 41 #define DELEGATE_REF_COUNTING_TO_COCOA (PLATFORM( MAC) && WK_API_ENABLED)41 #define DELEGATE_REF_COUNTING_TO_COCOA (PLATFORM(COCOA) && WK_API_ENABLED) 42 42 43 43 #if DELEGATE_REF_COUNTING_TO_COCOA -
trunk/Source/WebKit2/Shared/ChildProcess.cpp
r163591 r163886 164 164 } 165 165 166 #if !PLATFORM( MAC)166 #if !PLATFORM(COCOA) 167 167 void ChildProcess::platformInitialize() 168 168 { -
trunk/Source/WebKit2/Shared/ChildProcess.h
r163591 r163886 66 66 bool processSuppressionEnabled() const { return !m_processSuppressionDisabled.isActive(); } 67 67 68 #if PLATFORM( MAC)68 #if PLATFORM(COCOA) 69 69 void setApplicationIsDaemon(); 70 70 void setQOS(int latencyQOS, int throughputQOS); … … 91 91 virtual void stopRunLoop(); 92 92 93 #if PLATFORM(MAC)93 #if USE(APPKIT) 94 94 static void stopNSAppRunLoop(); 95 95 #endif -
trunk/Source/WebKit2/Shared/CommandLine.h
r139023 r163886 38 38 class CommandLine { 39 39 public: 40 #if PLATFORM(MAC)40 #if OS(UNIX) 41 41 bool parse(int argc, char** argv); 42 42 #endif -
trunk/Source/WebKit2/Shared/DictionaryPopupInfo.cpp
r161148 r163886 29 29 #include "WebCoreArgumentCoders.h" 30 30 31 #if PLATFORM( MAC)31 #if PLATFORM(COCOA) 32 32 #include "ArgumentCodersCF.h" 33 33 #endif … … 39 39 encoder << origin; 40 40 41 #if PLATFORM( MAC)41 #if PLATFORM(COCOA) 42 42 bool hadOptions = options; 43 43 encoder << hadOptions; … … 51 51 if (!decoder.decode(result.origin)) 52 52 return false; 53 #if PLATFORM( MAC)53 #if PLATFORM(COCOA) 54 54 bool hadOptions; 55 55 if (!decoder.decode(hadOptions)) -
trunk/Source/WebKit2/Shared/DictionaryPopupInfo.h
r161148 r163886 29 29 #include <WebCore/FloatPoint.h> 30 30 31 #if PLATFORM( MAC)31 #if PLATFORM(COCOA) 32 32 #include <wtf/RetainPtr.h> 33 33 #endif … … 45 45 46 46 WebCore::FloatPoint origin; 47 #if PLATFORM( MAC)47 #if PLATFORM(COCOA) 48 48 RetainPtr<CFDictionaryRef> options; 49 49 #endif -
trunk/Source/WebKit2/Shared/Downloads/Download.h
r162139 r163886 31 31 #include <wtf/Noncopyable.h> 32 32 33 #if PLATFORM( MAC)33 #if PLATFORM(COCOA) 34 34 #include <wtf/RetainPtr.h> 35 35 … … 120 120 RefPtr<SandboxExtension> m_sandboxExtension; 121 121 122 #if PLATFORM( MAC)122 #if PLATFORM(COCOA) 123 123 RetainPtr<NSURLDownload> m_nsURLDownload; 124 124 RetainPtr<WKDownloadAsDelegate> m_delegate; -
trunk/Source/WebKit2/Shared/DrawingAreaInfo.h
r160031 r163886 30 30 31 31 enum DrawingAreaType { 32 #if PLATFORM( MAC)32 #if PLATFORM(COCOA) 33 33 #if !PLATFORM(IOS) 34 34 DrawingAreaTypeTiledCoreAnimation, -
trunk/Source/WebKit2/Shared/FontInfo.cpp
r161148 r163886 29 29 #include "WebCoreArgumentCoders.h" 30 30 31 #if PLATFORM( MAC)31 #if PLATFORM(COCOA) 32 32 #include "ArgumentCodersCF.h" 33 33 #endif … … 37 37 void FontInfo::encode(IPC::ArgumentEncoder& encoder) const 38 38 { 39 #if PLATFORM( MAC)39 #if PLATFORM(COCOA) 40 40 encoder << static_cast<bool>(fontAttributeDictionary); 41 41 if (fontAttributeDictionary) … … 48 48 bool FontInfo::decode(IPC::ArgumentDecoder& decoder, FontInfo& fontInfo) 49 49 { 50 #if PLATFORM( MAC)50 #if PLATFORM(COCOA) 51 51 bool hasFontAttributeDictionary; 52 52 if (!decoder.decode(hasFontAttributeDictionary)) -
trunk/Source/WebKit2/Shared/FontInfo.h
r161148 r163886 27 27 #define FontInfo_h 28 28 29 #if PLATFORM( MAC)29 #if PLATFORM(COCOA) 30 30 #include <wtf/RetainPtr.h> 31 31 #endif … … 42 42 static bool decode(IPC::ArgumentDecoder&, FontInfo&); 43 43 44 #if PLATFORM( MAC)44 #if PLATFORM(COCOA) 45 45 RetainPtr<CFDictionaryRef> fontAttributeDictionary; 46 46 #endif -
trunk/Source/WebKit2/Shared/LayerTreeContext.h
r163218 r163886 53 53 bool isEmpty() const; 54 54 55 #if PLATFORM( MAC)55 #if PLATFORM(COCOA) 56 56 uint32_t contextID; 57 57 #elif PLATFORM(GTK) -
trunk/Source/WebKit2/Shared/NativeWebKeyboardEvent.h
r162599 r163886 31 31 #include "WebEvent.h" 32 32 33 #if PLATFORM(MAC)33 #if USE(APPKIT) 34 34 #include <wtf/RetainPtr.h> 35 35 OBJC_CLASS NSView; 36 #elif PLATFORM(GTK) 36 #endif 37 38 #if PLATFORM(EFL) 39 #include <Evas.h> 40 #endif 41 42 #if PLATFORM(GTK) 37 43 #include <WebCore/CompositionResults.h> 38 44 #include <WebCore/GUniquePtrGtk.h> 39 45 #include <WebCore/GtkInputMethodFilter.h> 40 46 typedef union _GdkEvent GdkEvent; 41 #elif PLATFORM(EFL)42 #include <Evas.h>43 47 #endif 44 48 45 49 #if PLATFORM(IOS) 50 #include <wtf/RetainPtr.h> 46 51 OBJC_CLASS WebIOSEvent; 47 52 #endif -
trunk/Source/WebKit2/Shared/NativeWebMouseEvent.h
r162599 r163886 29 29 #include "WebEvent.h" 30 30 31 #if PLATFORM(MAC)31 #if USE(APPKIT) 32 32 #include <wtf/RetainPtr.h> 33 33 OBJC_CLASS NSView; 34 #elif PLATFORM(GTK) 34 #endif 35 36 #if PLATFORM(EFL) 37 #include <Evas.h> 38 #include <WebCore/AffineTransform.h> 39 #endif 40 41 #if PLATFORM(GTK) 35 42 #include <WebCore/GUniquePtrGtk.h> 36 43 typedef union _GdkEvent GdkEvent; 37 #elif PLATFORM(EFL)38 #include <Evas.h>39 #include <WebCore/AffineTransform.h>40 44 #endif 41 45 -
trunk/Source/WebKit2/Shared/NativeWebWheelEvent.h
r162599 r163886 29 29 #include "WebEvent.h" 30 30 31 #if PLATFORM(MAC)31 #if USE(APPKIT) 32 32 #include <wtf/RetainPtr.h> 33 33 OBJC_CLASS NSView; 34 #elif PLATFORM(GTK) 34 #endif 35 36 #if PLATFORM(EFL) 37 #include <Evas.h> 38 #include <WebCore/AffineTransform.h> 39 #endif 40 41 #if PLATFORM(GTK) 35 42 #include <WebCore/GUniquePtrGtk.h> 36 43 typedef union _GdkEvent GdkEvent; 37 #elif PLATFORM(EFL)38 #include <Evas.h>39 #include <WebCore/AffineTransform.h>40 44 #endif 41 45 -
trunk/Source/WebKit2/Shared/Network/CustomProtocols/CustomProtocolManager.h
r162449 r163886 35 35 #include <wtf/text/WTFString.h> 36 36 37 #if PLATFORM( MAC)37 #if PLATFORM(COCOA) 38 38 #include <wtf/HashMap.h> 39 39 #include <wtf/HashSet.h> … … 72 72 bool supportsScheme(const String&); 73 73 74 #if PLATFORM( MAC)74 #if PLATFORM(COCOA) 75 75 void addCustomProtocol(WKCustomProtocol *); 76 76 void removeCustomProtocol(WKCustomProtocol *); … … 100 100 RefPtr<WorkQueue> m_messageQueue; 101 101 102 #if PLATFORM( MAC)102 #if PLATFORM(COCOA) 103 103 HashSet<String> m_registeredSchemes; 104 104 Mutex m_registeredSchemesMutex; -
trunk/Source/WebKit2/Shared/PlatformPopupMenuData.cpp
r161148 r163886 37 37 void PlatformPopupMenuData::encode(IPC::ArgumentEncoder& encoder) const 38 38 { 39 #if PLATFORM( MAC)39 #if PLATFORM(COCOA) 40 40 encoder << fontInfo; 41 41 encoder << shouldPopOver; … … 47 47 bool PlatformPopupMenuData::decode(IPC::ArgumentDecoder& decoder, PlatformPopupMenuData& data) 48 48 { 49 #if PLATFORM( MAC)49 #if PLATFORM(COCOA) 50 50 if (!decoder.decode(data.fontInfo)) 51 51 return false; -
trunk/Source/WebKit2/Shared/PlatformPopupMenuData.h
r161148 r163886 44 44 static bool decode(IPC::ArgumentDecoder&, PlatformPopupMenuData&); 45 45 46 #if PLATFORM( MAC)46 #if PLATFORM(COCOA) 47 47 FontInfo fontInfo; 48 48 bool shouldPopOver; -
trunk/Source/WebKit2/Shared/Plugins/Netscape/PluginInformation.cpp
r160969 r163886 165 165 } 166 166 167 #if !PLATFORM( MAC)167 #if !PLATFORM(COCOA) 168 168 void getPlatformPluginModuleInformation(const PluginModuleInfo&, ImmutableDictionary::MapType&) 169 169 { -
trunk/Source/WebKit2/Shared/Plugins/PluginModuleInfo.h
r151767 r163886 29 29 #include <WebCore/PluginData.h> 30 30 31 #if PLATFORM( MAC)31 #if PLATFORM(COCOA) 32 32 #include <mach/machine.h> 33 33 #endif … … 51 51 WebCore::PluginInfo info; 52 52 53 #if PLATFORM( MAC)53 #if PLATFORM(COCOA) 54 54 cpu_type_t pluginArchitecture; 55 55 String bundleIdentifier; -
trunk/Source/WebKit2/Shared/Plugins/PluginProcessCreationParameters.cpp
r161148 r163886 44 44 encoder << minimumLifetime; 45 45 encoder << terminationTimeout; 46 #if PLATFORM( MAC)46 #if PLATFORM(COCOA) 47 47 encoder << acceleratedCompositingPort; 48 48 #endif … … 59 59 if (!decoder.decode(result.terminationTimeout)) 60 60 return false; 61 #if PLATFORM( MAC)61 #if PLATFORM(COCOA) 62 62 if (!decoder.decode(result.acceleratedCompositingPort)) 63 63 return false; -
trunk/Source/WebKit2/Shared/Plugins/PluginProcessCreationParameters.h
r161148 r163886 31 31 #include "PluginProcessAttributes.h" 32 32 33 #if PLATFORM( MAC)33 #if PLATFORM(COCOA) 34 34 #include "MachPort.h" 35 35 #endif … … 54 54 double terminationTimeout; 55 55 56 #if PLATFORM( MAC)56 #if PLATFORM(COCOA) 57 57 IPC::MachPort acceleratedCompositingPort; 58 58 #endif -
trunk/Source/WebKit2/Shared/PrintInfo.h
r161148 r163886 27 27 #define PrintInfo_h 28 28 29 #if PLATFORM(MAC)29 #if USE(APPKIT) 30 30 OBJC_CLASS NSPrintInfo; 31 31 #elif PLATFORM(GTK) -
trunk/Source/WebKit2/Shared/SandboxInitializationParameters.h
r153070 r163886 30 30 #include <wtf/text/WTFString.h> 31 31 32 #if PLATFORM( MAC)32 #if PLATFORM(COCOA) 33 33 OBJC_CLASS NSString; 34 34 #endif … … 42 42 ~SandboxInitializationParameters(); 43 43 44 #if PLATFORM( MAC)44 #if PLATFORM(COCOA) 45 45 // Name must be a literal. 46 46 void addConfDirectoryParameter(const char* name, int confID); … … 92 92 93 93 private: 94 #if PLATFORM( MAC)94 #if PLATFORM(COCOA) 95 95 void appendPathInternal(const char* name, const char* path); 96 96 … … 103 103 }; 104 104 105 #if !PLATFORM( MAC)105 #if !PLATFORM(COCOA) 106 106 SandboxInitializationParameters::SandboxInitializationParameters() 107 107 { -
trunk/Source/WebKit2/Shared/TextCheckerState.h
r161148 r163886 35 35 bool isGrammarCheckingEnabled; 36 36 37 #if PLATFORM(MAC)37 #if USE(APPKIT) 38 38 bool isAutomaticSpellingCorrectionEnabled; 39 39 bool isAutomaticQuoteSubstitutionEnabled; -
trunk/Source/WebKit2/Shared/WebArchive.cpp
r160653 r163886 27 27 #include "WebArchive.h" 28 28 29 #if PLATFORM( MAC)29 #if PLATFORM(COCOA) 30 30 31 31 #include "APIArray.h" … … 158 158 } // namespace WebKit 159 159 160 #endif // PLATFORM( MAC)160 #endif // PLATFORM(COCOA) -
trunk/Source/WebKit2/Shared/WebArchive.h
r160653 r163886 27 27 #define WebArchive_h 28 28 29 #if PLATFORM( MAC)29 #if PLATFORM(COCOA) 30 30 31 31 #include "APIObject.h" … … 77 77 } // namespace WebKit 78 78 79 #endif // PLATFORM( MAC)79 #endif // PLATFORM(COCOA) 80 80 81 81 #endif // WebArchive_h -
trunk/Source/WebKit2/Shared/WebArchiveResource.cpp
r160653 r163886 27 27 #include "WebArchiveResource.h" 28 28 29 #if PLATFORM( MAC)29 #if PLATFORM(COCOA) 30 30 31 31 #include "APIData.h" … … 100 100 } // namespace WebKit 101 101 102 #endif // PLATFORM( MAC)102 #endif // PLATFORM(COCOA) -
trunk/Source/WebKit2/Shared/WebArchiveResource.h
r160969 r163886 27 27 #define WebArchiveResource_h 28 28 29 #if PLATFORM( MAC)29 #if PLATFORM(COCOA) 30 30 31 31 #include "APIObject.h" … … 68 68 } // namespace WebKit 69 69 70 #endif // PLATFORM( MAC)70 #endif // PLATFORM(COCOA) 71 71 72 72 #endif // WebArchiveResource_h -
trunk/Source/WebKit2/Shared/WebCoreArgumentCoders.cpp
r163662 r163886 575 575 void ArgumentCoder<ResourceResponse>::encode(ArgumentEncoder& encoder, const ResourceResponse& resourceResponse) 576 576 { 577 #if PLATFORM( MAC)577 #if PLATFORM(COCOA) 578 578 bool shouldSerializeWebCoreData = !resourceResponse.platformResponseIsUpToDate(); 579 579 encoder << shouldSerializeWebCoreData; … … 604 604 bool ArgumentCoder<ResourceResponse>::decode(ArgumentDecoder& decoder, ResourceResponse& resourceResponse) 605 605 { 606 #if PLATFORM( MAC)606 #if PLATFORM(COCOA) 607 607 bool hasSerializedWebCoreData; 608 608 if (!decoder.decode(hasSerializedWebCoreData)) -
trunk/Source/WebKit2/Shared/WebCoreArgumentCoders.h
r163509 r163886 84 84 } 85 85 86 #if PLATFORM( MAC)86 #if PLATFORM(COCOA) 87 87 namespace WebCore { 88 88 struct KeypressCommand; … … 215 215 216 216 template<> struct ArgumentCoder<WebCore::ResourceRequest> { 217 #if PLATFORM( MAC)217 #if PLATFORM(COCOA) 218 218 static const bool kShouldSerializeWebCoreData = false; 219 219 #else … … 235 235 236 236 template<> struct ArgumentCoder<WebCore::ResourceError> { 237 #if PLATFORM( MAC)237 #if PLATFORM(COCOA) 238 238 static const bool kShouldSerializeWebCoreData = false; 239 239 #else … … 257 257 }; 258 258 259 #if PLATFORM( MAC)259 #if PLATFORM(COCOA) 260 260 template<> struct ArgumentCoder<WebCore::KeypressCommand> { 261 261 static void encode(ArgumentEncoder&, const WebCore::KeypressCommand&); -
trunk/Source/WebKit2/Shared/WebEvent.h
r161148 r163886 151 151 }; 152 152 153 #if PLATFORM( MAC)153 #if PLATFORM(COCOA) 154 154 enum Phase { 155 155 PhaseNone = 0, … … 166 166 167 167 WebWheelEvent(Type, const WebCore::IntPoint& position, const WebCore::IntPoint& globalPosition, const WebCore::FloatSize& delta, const WebCore::FloatSize& wheelTicks, Granularity, Modifiers, double timestamp); 168 #if PLATFORM( MAC)168 #if PLATFORM(COCOA) 169 169 WebWheelEvent(Type, const WebCore::IntPoint& position, const WebCore::IntPoint& globalPosition, const WebCore::FloatSize& delta, const WebCore::FloatSize& wheelTicks, Granularity, bool directionInvertedFromDevice, Phase, Phase momentumPhase, bool hasPreciseScrollingDeltas, uint32_t scrollCount, const WebCore::FloatSize& unacceleratedScrollingDelta, Modifiers, double timestamp); 170 170 #endif … … 176 176 Granularity granularity() const { return static_cast<Granularity>(m_granularity); } 177 177 bool directionInvertedFromDevice() const { return m_directionInvertedFromDevice; } 178 #if PLATFORM( MAC)178 #if PLATFORM(COCOA) 179 179 Phase phase() const { return static_cast<Phase>(m_phase); } 180 180 Phase momentumPhase() const { return static_cast<Phase>(m_momentumPhase); } … … 196 196 uint32_t m_granularity; // Granularity 197 197 bool m_directionInvertedFromDevice; 198 #if PLATFORM( MAC)198 #if PLATFORM(COCOA) 199 199 uint32_t m_phase; // Phase 200 200 uint32_t m_momentumPhase; // Phase -
trunk/Source/WebKit2/Shared/WebEventConversion.cpp
r159724 r163886 129 129 m_granularity = (webEvent.granularity() == WebWheelEvent::ScrollByPageWheelEvent) ? WebCore::ScrollByPageWheelEvent : WebCore::ScrollByPixelWheelEvent; 130 130 m_directionInvertedFromDevice = webEvent.directionInvertedFromDevice(); 131 #if PLATFORM( MAC)131 #if PLATFORM(COCOA) 132 132 m_phase = static_cast<WebCore::PlatformWheelEventPhase>(webEvent.phase()); 133 133 m_momentumPhase = static_cast<WebCore::PlatformWheelEventPhase>(webEvent.momentumPhase()); -
trunk/Source/WebKit2/Shared/WebKit2Initialize.cpp
r160069 r163886 33 33 #include <wtf/RunLoop.h> 34 34 35 #if PLATFORM( MAC)35 #if PLATFORM(COCOA) 36 36 #include "WebSystemInterface.h" 37 37 #endif … … 44 44 void InitializeWebKit2() 45 45 { 46 #if PLATFORM( MAC)46 #if PLATFORM(COCOA) 47 47 InitWebCoreSystemInterface(); 48 48 #endif -
trunk/Source/WebKit2/Shared/WebPageCreationParameters.cpp
r161357 r163886 63 63 encoder.encodeEnum(layerHostingMode); 64 64 65 #if PLATFORM( MAC)65 #if PLATFORM(COCOA) 66 66 encoder << colorSpace; 67 67 #endif … … 127 127 return false; 128 128 129 #if PLATFORM( MAC)129 #if PLATFORM(COCOA) 130 130 if (!decoder.decode(parameters.colorSpace)) 131 131 return false; -
trunk/Source/WebKit2/Shared/WebPageCreationParameters.h
r161357 r163886 40 40 #include <wtf/text/WTFString.h> 41 41 42 #if PLATFORM( MAC)42 #if PLATFORM(COCOA) 43 43 #include "ColorSpaceData.h" 44 44 #endif … … 102 102 LayerHostingMode layerHostingMode; 103 103 104 #if PLATFORM( MAC)104 #if PLATFORM(COCOA) 105 105 ColorSpaceData colorSpace; 106 106 #endif -
trunk/Source/WebKit2/Shared/WebPreferencesStore.h
r163702 r163886 55 55 #endif 56 56 57 #if PLATFORM( MAC)57 #if PLATFORM(COCOA) 58 58 #define DEFAULT_HIDDEN_PAGE_DOM_TIMER_THROTTLING_ENABLED true 59 59 #define DEFAULT_HIDDEN_PAGE_CSS_ANIMATION_SUSPENSION_ENABLED true … … 217 217 \ 218 218 219 #if PLATFORM( MAC)219 #if PLATFORM(COCOA) 220 220 221 221 #define FOR_EACH_WEBKIT_FONT_FAMILY_PREFERENCE(macro) \ -
trunk/Source/WebKit2/Shared/WebProcessCreationParameters.cpp
r163504 r163886 36 36 , shouldUseFontSmoothing(true) 37 37 , defaultRequestTimeoutInterval(INT_MAX) 38 #if PLATFORM( MAC)38 #if PLATFORM(COCOA) 39 39 , nsURLCacheMemoryCapacity(0) 40 40 , nsURLCacheDiskCapacity(0) … … 97 97 encoder << fullKeyboardAccessEnabled; 98 98 encoder << defaultRequestTimeoutInterval; 99 #if PLATFORM( MAC) || USE(CFNETWORK)99 #if PLATFORM(COCOA) || USE(CFNETWORK) 100 100 encoder << uiProcessBundleIdentifier; 101 101 #endif 102 #if PLATFORM( MAC)102 #if PLATFORM(COCOA) 103 103 encoder << presenterApplicationPid; 104 104 encoder << accessibilityEnhancedUserInterfaceEnabled; … … 210 210 if (!decoder.decode(parameters.defaultRequestTimeoutInterval)) 211 211 return false; 212 #if PLATFORM( MAC) || USE(CFNETWORK)212 #if PLATFORM(COCOA) || USE(CFNETWORK) 213 213 if (!decoder.decode(parameters.uiProcessBundleIdentifier)) 214 214 return false; 215 215 #endif 216 216 217 #if PLATFORM( MAC)217 #if PLATFORM(COCOA) 218 218 if (!decoder.decode(parameters.presenterApplicationPid)) 219 219 return false; -
trunk/Source/WebKit2/Shared/WebProcessCreationParameters.h
r163504 r163886 35 35 #include <wtf/text/WTFString.h> 36 36 37 #if PLATFORM( MAC)37 #if PLATFORM(COCOA) 38 38 #include "MachPort.h" 39 39 #endif … … 113 113 double defaultRequestTimeoutInterval; 114 114 115 #if PLATFORM( MAC) || USE(CFNETWORK)115 #if PLATFORM(COCOA) || USE(CFNETWORK) 116 116 String uiProcessBundleIdentifier; 117 117 #endif 118 118 119 #if PLATFORM( MAC)119 #if PLATFORM(COCOA) 120 120 pid_t presenterApplicationPid; 121 121 … … 133 133 bool shouldEnableKerningAndLigaturesByDefault; 134 134 bool shouldEnableFTL; 135 #endif // PLATFORM( MAC)135 #endif // PLATFORM(COCOA) 136 136 137 137 #if ENABLE(NOTIFICATIONS) || ENABLE(LEGACY_NOTIFICATIONS) -
trunk/Source/WebKit2/Shared/WebWheelEvent.cpp
r161148 r163886 42 42 , m_granularity(granularity) 43 43 , m_directionInvertedFromDevice(false) 44 #if PLATFORM( MAC)44 #if PLATFORM(COCOA) 45 45 , m_phase(PhaseNone) 46 46 , m_hasPreciseScrollingDeltas(false) … … 51 51 } 52 52 53 #if PLATFORM( MAC)53 #if PLATFORM(COCOA) 54 54 WebWheelEvent::WebWheelEvent(Type type, const IntPoint& position, const IntPoint& globalPosition, const FloatSize& delta, const FloatSize& wheelTicks, Granularity granularity, bool directionInvertedFromDevice, Phase phase, Phase momentumPhase, bool hasPreciseScrollingDeltas, uint32_t scrollCount, const WebCore::FloatSize& unacceleratedScrollingDelta, Modifiers modifiers, double timestamp) 55 55 : WebEvent(type, modifiers, timestamp) … … 80 80 encoder << m_granularity; 81 81 encoder << m_directionInvertedFromDevice; 82 #if PLATFORM( MAC)82 #if PLATFORM(COCOA) 83 83 encoder << m_phase; 84 84 encoder << m_momentumPhase; … … 105 105 if (!decoder.decode(t.m_directionInvertedFromDevice)) 106 106 return false; 107 #if PLATFORM( MAC)107 #if PLATFORM(COCOA) 108 108 if (!decoder.decode(t.m_phase)) 109 109 return false; -
trunk/Source/WebKit2/Shared/cf/ArgumentCodersCF.cpp
r161148 r163886 33 33 #include <wtf/Vector.h> 34 34 35 #if PLATFORM(MAC)35 #if USE(FOUNDATION) 36 36 #import <Foundation/Foundation.h> 37 37 #endif … … 525 525 return false; 526 526 527 #if PLATFORM(MAC)527 #if USE(FOUNDATION) 528 528 // FIXME: Move this to ArgumentCodersCFMac.mm and change this file back to be C++ 529 529 // instead of Objective-C++. -
trunk/Source/WebKit2/Shared/mac/PDFKitImports.h
r147067 r163886 27 27 #define PDFKitImports_h 28 28 29 #if PLATFORM(MAC)30 31 29 namespace WebKit { 32 30 … … 44 42 } 45 43 46 #endif // PLATFORM(MAC)47 48 44 #endif // PDFKitImports_h -
trunk/Source/WebKit2/Shared/posix/CommandLinePOSIX.cpp
r163885 r163886 29 29 namespace WebKit { 30 30 31 // FIXME: There's nothing Mac specific about this command line parser.32 // Maybe we should move it to CommandLinePosix.cpp instead.33 34 31 bool CommandLine::parse(int argc, char** argv) 35 32 { -
trunk/Source/WebKit2/WebKit2.xcodeproj/project.pbxproj
r163862 r163886 202 202 1A66BF8F18A052ED002071B4 /* WKWebViewInternal.h in Headers */ = {isa = PBXBuildFile; fileRef = 1A66BF8E18A052ED002071B4 /* WKWebViewInternal.h */; }; 203 203 1A6F9F9011E13EFC00DB1371 /* CommandLine.h in Headers */ = {isa = PBXBuildFile; fileRef = 1A6F9F8E11E13EFC00DB1371 /* CommandLine.h */; }; 204 1A6F9FB711E1408500DB1371 /* CommandLine Mac.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1A6F9FB611E1408500DB1371 /* CommandLineMac.cpp */; };204 1A6F9FB711E1408500DB1371 /* CommandLinePOSIX.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1A6F9FB611E1408500DB1371 /* CommandLinePOSIX.cpp */; }; 205 205 1A6FB7AE11E64B6800DB1371 /* PluginView.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1A6FB7AC11E64B6800DB1371 /* PluginView.cpp */; }; 206 206 1A6FB7AF11E64B6800DB1371 /* PluginView.h in Headers */ = {isa = PBXBuildFile; fileRef = 1A6FB7AD11E64B6800DB1371 /* PluginView.h */; }; … … 416 416 2984F588164BA095004BC0C6 /* CustomProtocolManagerMessageReceiver.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 2984F586164BA095004BC0C6 /* CustomProtocolManagerMessageReceiver.cpp */; }; 417 417 2984F589164BA095004BC0C6 /* CustomProtocolManagerMessages.h in Headers */ = {isa = PBXBuildFile; fileRef = 2984F587164BA095004BC0C6 /* CustomProtocolManagerMessages.h */; }; 418 2989A411167D1834004F96D2 /* CustomProtocolManager Mac.mm in Sources */ = {isa = PBXBuildFile; fileRef = 2989A410167D1834004F96D2 /* CustomProtocolManagerMac.mm */; };418 2989A411167D1834004F96D2 /* CustomProtocolManagerCocoa.mm in Sources */ = {isa = PBXBuildFile; fileRef = 2989A410167D1834004F96D2 /* CustomProtocolManagerCocoa.mm */; }; 419 419 2989A414167D184B004F96D2 /* CustomProtocolManager.h in Headers */ = {isa = PBXBuildFile; fileRef = 2989A412167D184B004F96D2 /* CustomProtocolManager.h */; }; 420 420 29AD3093164B4C5D0072DEA9 /* CustomProtocolManagerProxy.h in Headers */ = {isa = PBXBuildFile; fileRef = 29AD3092164B4C5D0072DEA9 /* CustomProtocolManagerProxy.h */; }; … … 1871 1871 1A66BF8E18A052ED002071B4 /* WKWebViewInternal.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WKWebViewInternal.h; sourceTree = "<group>"; }; 1872 1872 1A6F9F8E11E13EFC00DB1371 /* CommandLine.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CommandLine.h; sourceTree = "<group>"; }; 1873 1A6F9FB611E1408500DB1371 /* CommandLine Mac.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = CommandLineMac.cpp; sourceTree = "<group>"; };1873 1A6F9FB611E1408500DB1371 /* CommandLinePOSIX.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = CommandLinePOSIX.cpp; sourceTree = "<group>"; }; 1874 1874 1A6FB7AC11E64B6800DB1371 /* PluginView.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = PluginView.cpp; sourceTree = "<group>"; }; 1875 1875 1A6FB7AD11E64B6800DB1371 /* PluginView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PluginView.h; sourceTree = "<group>"; }; … … 2104 2104 2984F586164BA095004BC0C6 /* CustomProtocolManagerMessageReceiver.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = CustomProtocolManagerMessageReceiver.cpp; sourceTree = "<group>"; }; 2105 2105 2984F587164BA095004BC0C6 /* CustomProtocolManagerMessages.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CustomProtocolManagerMessages.h; sourceTree = "<group>"; }; 2106 2989A410167D1834004F96D2 /* CustomProtocolManager Mac.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = CustomProtocolManagerMac.mm; path = Network/CustomProtocols/mac/CustomProtocolManagerMac.mm; sourceTree = "<group>"; };2106 2989A410167D1834004F96D2 /* CustomProtocolManagerCocoa.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = CustomProtocolManagerCocoa.mm; sourceTree = "<group>"; }; 2107 2107 2989A412167D184B004F96D2 /* CustomProtocolManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = CustomProtocolManager.h; path = Network/CustomProtocols/CustomProtocolManager.h; sourceTree = "<group>"; }; 2108 2108 2989A413167D184B004F96D2 /* CustomProtocolManager.messages.in */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = CustomProtocolManager.messages.in; path = Network/CustomProtocols/CustomProtocolManager.messages.in; sourceTree = "<group>"; }; … … 3817 3817 51A8A60D1627F2AC000D90E9 /* Network */, 3818 3818 1AAE058C1279DCD400852418 /* Plugins */, 3819 3709504918A9FAD20087AE5D /* posix */, 3819 3820 0F5947A0187B3B7100437857 /* Scrolling */, 3820 3821 BC64696D11DBE603006455B0 /* APIArray.cpp */, … … 4128 4129 isa = PBXGroup; 4129 4130 children = ( 4130 2989A40F167D181B004F96D2 /* mac*/,4131 2989A40F167D181B004F96D2 /* Cocoa */, 4131 4132 2989A412167D184B004F96D2 /* CustomProtocolManager.h */, 4132 4133 2989A413167D184B004F96D2 /* CustomProtocolManager.messages.in */, … … 4135 4136 sourceTree = "<group>"; 4136 4137 }; 4137 2989A40F167D181B004F96D2 /* mac */ = { 4138 isa = PBXGroup; 4139 children = ( 4140 2989A410167D1834004F96D2 /* CustomProtocolManagerMac.mm */, 4141 ); 4142 name = mac; 4138 2989A40F167D181B004F96D2 /* Cocoa */ = { 4139 isa = PBXGroup; 4140 children = ( 4141 2989A410167D1834004F96D2 /* CustomProtocolManagerCocoa.mm */, 4142 ); 4143 name = Cocoa; 4144 path = Network/CustomProtocols/Cocoa; 4143 4145 sourceTree = "<group>"; 4144 4146 }; … … 4347 4349 ); 4348 4350 path = foundation; 4351 sourceTree = "<group>"; 4352 }; 4353 3709504918A9FAD20087AE5D /* posix */ = { 4354 isa = PBXGroup; 4355 children = ( 4356 1A6F9FB611E1408500DB1371 /* CommandLinePOSIX.cpp */, 4357 ); 4358 path = posix; 4349 4359 sourceTree = "<group>"; 4350 4360 }; … … 5342 5352 1A2A4AFE158693920090C9E9 /* ColorSpaceData.h */, 5343 5353 1A2A4AFD158693920090C9E9 /* ColorSpaceData.mm */, 5344 1A6F9FB611E1408500DB1371 /* CommandLineMac.cpp */,5345 5354 CDC3830D1721242D008A2FC3 /* CookieStorageShim.mm */, 5346 5355 CDC3830E1721242D008A2FC3 /* CookieStorageShim.h */, … … 7663 7672 E1513C66166EABB200149FCB /* ChildProcessProxy.cpp in Sources */, 7664 7673 1A2A4B0E1586A2240090C9E9 /* ColorSpaceData.mm in Sources */, 7665 1A6F9FB711E1408500DB1371 /* CommandLine Mac.cpp in Sources */,7674 1A6F9FB711E1408500DB1371 /* CommandLinePOSIX.cpp in Sources */, 7666 7675 BC032DAA10F437D10058C15A /* Connection.cpp in Sources */, 7667 7676 2DA944A31884E4F000ED86DB /* WebTouchEventIOS.cpp in Sources */, … … 7676 7685 CDC3831017212440008A2FC3 /* CookieStorageShim.mm in Sources */, 7677 7686 B878B616133428DC006888E9 /* CorrectionPanel.mm in Sources */, 7678 2989A411167D1834004F96D2 /* CustomProtocolManager Mac.mm in Sources */,7687 2989A411167D1834004F96D2 /* CustomProtocolManagerCocoa.mm in Sources */, 7679 7688 2984F588164BA095004BC0C6 /* CustomProtocolManagerMessageReceiver.cpp in Sources */, 7680 7689 29AD3096164B4C930072DEA9 /* CustomProtocolManagerProxyMac.mm in Sources */,
Note: See TracChangeset
for help on using the changeset viewer.