Changeset 164192 in webkit
- Timestamp:
- Feb 16, 2014 12:38:41 PM (10 years ago)
- Location:
- trunk/Source
- Files:
-
- 59 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r164191 r164192 1 2014-02-16 Dan Bernstein <mitz@apple.com> 2 3 Stop using PLATFORM(MAC) in Source except where it means “OS X but not iOS” 4 https://bugs.webkit.org/show_bug.cgi?id=128885 5 6 Reviewed by Anders Carlsson. 7 8 * loader/FrameLoaderClient.h: Changed PLATFORM(MAC) to PLATFORM(COCOA). 9 * platform/Cursor.h: Changed PLATFORM(MAC) to USE(APPKIT) around uses of NSCursor. 10 * platform/LocalizedStrings.cpp: Changed PLATFORM(MAC) to PLATFORM(COCOA). 11 * platform/graphics/PlatformLayer.h: Ditto. 12 * platform/graphics/cg/PDFDocumentImage.cpp: Ditto. 13 * rendering/RenderLayerCompositor.cpp: Ditto. 14 (WebCore::RenderLayerCompositor::requiresContentShadowLayer): 15 (WebCore::RenderLayerCompositor::updateOverflowControlsLayers): 16 1 17 2014-02-16 Dan Bernstein <mitz@apple.com> 2 18 -
trunk/Source/WebCore/loader/FrameLoaderClient.h
r163722 r164192 39 39 #include <wtf/Vector.h> 40 40 41 #if PLATFORM( MAC)41 #if PLATFORM(COCOA) 42 42 #ifdef __OBJC__ 43 43 #import <Foundation/Foundation.h> … … 50 50 typedef class _jobject* jobject; 51 51 52 #if PLATFORM( MAC) && !defined(__OBJC__)53 classNSCachedURLResponse;54 classNSView;52 #if PLATFORM(COCOA) 53 OBJC_CLASS NSCachedURLResponse; 54 OBJC_CLASS NSView; 55 55 #endif 56 56 … … 283 283 virtual void registerForIconNotification(bool listen = true) = 0; 284 284 285 #if PLATFORM( MAC)285 #if PLATFORM(COCOA) 286 286 // Allow an accessibility object to retrieve a Frame parent if there's no PlatformWidget. 287 287 virtual RemoteAXObjectRef accessibilityRemoteObject() = 0; -
trunk/Source/WebCore/platform/Cursor.h
r163657 r164192 43 43 #endif 44 44 45 #if PLATFORM(MAC) && !PLATFORM(IOS)45 #if USE(APPKIT) 46 46 OBJC_CLASS NSCursor; 47 47 #endif … … 67 67 }; 68 68 typedef RefPtr<SharedCursor> PlatformCursor; 69 #elif PLATFORM(MAC) && !PLATFORM(IOS)69 #elif USE(APPKIT) 70 70 typedef NSCursor *PlatformCursor; 71 71 #elif PLATFORM(GTK) … … 174 174 #endif 175 175 176 #if ! PLATFORM(MAC)176 #if !USE(APPKIT) 177 177 mutable PlatformCursor m_platformCursor; 178 178 #else -
trunk/Source/WebCore/platform/LocalizedStrings.cpp
r164181 r164192 1075 1075 } 1076 1076 1077 #if PLATFORM( MAC) || PLATFORM(WIN)1077 #if PLATFORM(COCOA) || PLATFORM(WIN) 1078 1078 String textTrackCountryAndLanguageMenuItemText(const String& title, const String& country, const String& language) 1079 1079 { -
trunk/Source/WebCore/platform/graphics/PlatformLayer.h
r163079 r164192 27 27 #define PlatformLayer_h 28 28 29 #if PLATFORM( MAC)29 #if PLATFORM(COCOA) 30 30 OBJC_CLASS CALayer; 31 31 typedef CALayer PlatformLayer; -
trunk/Source/WebCore/platform/graphics/cg/PDFDocumentImage.cpp
r162486 r164192 47 47 #include <wtf/RetainPtr.h> 48 48 49 #if !PLATFORM( MAC)49 #if !PLATFORM(COCOA) 50 50 #include "ImageSourceCG.h" 51 51 #endif -
trunk/Source/WebCore/rendering/RenderLayerCompositor.cpp
r164110 r164192 2775 2775 return false; 2776 2776 2777 #if PLATFORM( MAC)2777 #if PLATFORM(COCOA) 2778 2778 if (viewHasTransparentBackground()) 2779 2779 return false; … … 3006 3006 3007 3007 #endif 3008 #if PLATFORM( MAC) && USE(CA)3008 #if PLATFORM(COCOA) && USE(CA) 3009 3009 m_layerForHorizontalScrollbar->setAcceleratesDrawing(acceleratedDrawingEnabled()); 3010 3010 #endif … … 3029 3029 m_layerForVerticalScrollbar->setName("vertical scrollbar container"); 3030 3030 #endif 3031 #if PLATFORM( MAC) && USE(CA)3031 #if PLATFORM(COCOA) && USE(CA) 3032 3032 m_layerForVerticalScrollbar->setAcceleratesDrawing(acceleratedDrawingEnabled()); 3033 3033 #endif … … 3052 3052 m_layerForScrollCorner->setName("scroll corner"); 3053 3053 #endif 3054 #if PLATFORM( MAC) && USE(CA)3054 #if PLATFORM(COCOA) && USE(CA) 3055 3055 m_layerForScrollCorner->setAcceleratesDrawing(acceleratedDrawingEnabled()); 3056 3056 #endif -
trunk/Source/WebKit2/ChangeLog
r164181 r164192 1 2014-02-16 Dan Bernstein <mitz@apple.com> 2 3 Stop using PLATFORM(MAC) in Source except where it means “OS X but not iOS” 4 https://bugs.webkit.org/show_bug.cgi?id=128885 5 6 Reviewed by Anders Carlsson. 7 8 * Configurations/WebKit2.xcconfig: Removed PageBannerMac.mm and WKBundlePageBannerMac.mm 9 from EXCLUDED_SOURCE_FILE_NAMES_iphoneos, now that these files are guarded with 10 !PLATFORM(IOS). 11 * WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp: Changed PLATFORM(MAC) to 12 PLATFORM(COCOA). 13 (WKBundleFrameCopyWebArchiveFilteringSubframes): 14 * WebProcess/InjectedBundle/API/c/mac/WKBundlePageBannerMac.mm: Guarded with !PLATFORM(IOS). 15 * WebProcess/InjectedBundle/InjectedBundle.cpp: Changed PLATFORM(MAC) to PLATFORM(COCOA). 16 (WebKit::InjectedBundle::setPrivateBrowsingEnabled): 17 * WebProcess/InjectedBundle/InjectedBundle.h: Changed PLATFORM(MAC) to USE(FOUNDATION) 18 around use of NSBundle. 19 * WebProcess/InjectedBundle/InjectedBundleUserMessageCoders.h: Changed PLATFORM(MAC) to 20 PLATFORM(COCOA). 21 (WebKit::InjectedBundleUserMessageEncoder::encode): 22 (WebKit::InjectedBundleUserMessageDecoder::decode): 23 * WebProcess/Network/WebResourceLoader.cpp: Ditto. 24 (WebKit::WebResourceLoader::didReceiveResponseWithCertificateInfo): 25 * WebProcess/Plugins/Netscape/NetscapeBrowserFuncs.cpp: Ditto. 26 (WebKit::NPN_GetValue): 27 (WebKit::NPN_SetValue): 28 (WebKit::initializeBrowserFuncs): 29 * WebProcess/Plugins/Netscape/NetscapePlugin.cpp: Ditto. 30 (WebKit::NetscapePlugin::NetscapePlugin): 31 (WebKit::NetscapePlugin::supportsSnapshotting): 32 * WebProcess/Plugins/Netscape/NetscapePlugin.h: Ditto. 33 * WebProcess/Plugins/Plugin.cpp: Ditto. 34 (WebKit::Plugin::Parameters::encode): 35 (WebKit::Plugin::Parameters::decode): 36 * WebProcess/Plugins/Plugin.h: Ditto. 37 * WebProcess/Plugins/PluginController.h: Ditto. 38 * WebProcess/Plugins/PluginProcessConnectionManager.cpp: Changed PLATFORM(MAC) to 39 USE(DARWIN) around use of Mach-based IPC. 40 (WebKit::PluginProcessConnectionManager::getPluginProcessConnection): 41 * WebProcess/Plugins/PluginProxy.cpp: Chanegd PLATFORM(MAC) to PLATFORM(COCOA). 42 * WebProcess/Plugins/PluginProxy.h: Ditto. 43 * WebProcess/Plugins/PluginProxy.messages.in: Ditto. 44 * WebProcess/Plugins/PluginView.cpp: Ditto. 45 (WebKit::PluginView::destroyPluginAndReset): 46 (WebKit::PluginView::viewStateDidChange): 47 (WebKit::PluginView::didInitializePlugin): 48 (WebKit::PluginView::invalidateRect): 49 (WebKit::PluginView::pluginSnapshotTimerFired): 50 * WebProcess/Plugins/PluginView.h: Ditto. 51 * WebProcess/ResourceCache/cf/WebResourceCacheManagerCFNet.cpp: Ditto. 52 * WebProcess/WebCoreSupport/WebChromeClient.cpp: Ditto. 53 (WebKit::WebChromeClient::windowRect): 54 * WebProcess/WebCoreSupport/WebChromeClient.h: Ditto. 55 * WebProcess/WebCoreSupport/WebContextMenuClient.cpp: Ditto. 56 * WebProcess/WebCoreSupport/WebContextMenuClient.h: Ditto. 57 * WebProcess/WebCoreSupport/WebDragClient.cpp: Ditto. 58 * WebProcess/WebCoreSupport/WebDragClient.h: Ditto. 59 * WebProcess/WebCoreSupport/WebEditorClient.cpp: Ditto. 60 (WebKit::WebEditorClient::shouldEraseMarkersAfterChangeSelection): 61 * WebProcess/WebCoreSupport/WebEditorClient.h: Ditto. 62 * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp: Ditto. 63 (WebKit::WebFrameLoaderClient::transitionToCommittedForNewPage): 64 (WebKit::WebFrameLoaderClient::createPlugin): 65 * WebProcess/WebCoreSupport/WebFrameLoaderClient.h: Ditto. 66 * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp: Ditto. 67 * WebProcess/WebCoreSupport/WebPlatformStrategies.h: Ditto. 68 * WebProcess/WebCoreSupport/mac/WebSystemInterface.mm: Removed PLATFORM(MAC). 69 (InitWebCoreSystemInterface): 70 * WebProcess/WebPage/DrawingArea.cpp: Changed PLATFORM(MAC) to PLATFORM(COCOA). 71 (WebKit::DrawingArea::create): 72 * WebProcess/WebPage/DrawingArea.h: Ditto. 73 * WebProcess/WebPage/DrawingArea.messages.in: Ditto. 74 * WebProcess/WebPage/EventDispatcher.cpp: Ditto. 75 (WebKit::EventDispatcher::wheelEvent): 76 * WebProcess/WebPage/LayerTreeHost.h: Ditto. 77 * WebProcess/WebPage/PageBanner.cpp: Added !PLATFORM(IOS) 78 * WebProcess/WebPage/PageBanner.h: Ditto. 79 * WebProcess/WebPage/WebFrame.cpp: Changed PLATFORM(MAC) to PLATFORM(COCOA). 80 * WebProcess/WebPage/WebFrame.h: Ditto. 81 * WebProcess/WebPage/WebInspector.cpp: Ditto. 82 (WebKit::WebInspector::WebInspector): 83 * WebProcess/WebPage/WebInspector.h: Ditto. 84 * WebProcess/WebPage/WebPage.cpp: Ditto. 85 (WebKit::WebPage::WebPage): 86 (WebKit::isContextClick): 87 (WebKit::WebPage::getSelectionAsWebArchiveData): 88 (WebKit::WebPage::getWebArchiveOfFrame): 89 (WebKit::WebPage::updatePreferences): 90 (WebKit::WebPage::sendSetWindowFrame): 91 (WebKit::WebPage::beginPrinting): 92 (WebKit::WebPage::computePagesForPrinting): 93 * WebProcess/WebPage/WebPage.h: Ditto. 94 * WebProcess/WebPage/WebPage.messages.in: Ditto. 95 * WebProcess/WebPage/mac/PageBannerMac.mm: Guarded with !PLATFORM(IOS). 96 * WebProcess/WebProcess.cpp: 97 (WebKit::WebProcess::WebProcess): Changed PLATFORM(MAC) to PLATFORM(COCOA). 98 (WebKit::WebProcess::initializeWebProcess): Ditto. 99 (WebKit::WebProcess::ensureNetworkProcessConnection): Changed PLATFORM(MAC) to OS(DARWIN). 100 (WebKit::WebProcess::ensurePrivateBrowsingSession): Changed PLATFORM(MAC) to 101 PLATFORM(COCOA). 102 (WebKit::WebProcess::destroyPrivateBrowsingSession): Ditto. 103 (WebKit::WebProcess::ensureWebToDatabaseProcessConnection): Changed PLATFORM(MAC) to 104 OS(DARWIN). 105 (WebKit::WebProcess::nonVisibleProcessCleanupTimerFired): Changed PLATFORM(MAC) to 106 PLATFORM(COCOA) 107 * WebProcess/WebProcess.h: Ditto. 108 * WebProcess/WebProcess.messages.in: Removed PLATFORM(MAC) guard around 109 SetProcessSuppressionEnabled. Changed it to PLATFORM(COCOA) around SetQOS. 110 1 111 2014-02-15 Alexey Proskuryakov <ap@apple.com> 2 112 -
trunk/Source/WebKit2/Configurations/WebKit2.xcconfig
r163256 r164192 46 46 47 47 EXCLUDED_SOURCE_FILE_NAMES = $(EXCLUDED_SOURCE_FILE_NAMES_$(PLATFORM_NAME)); 48 EXCLUDED_SOURCE_FILE_NAMES_iphoneos = BuiltInPDFView.mm DownloadMac.mm FindIndicatorWindow.mm NetworkProcessMac.mm PDFViewController.mm Page BannerMac.mm PageClientImpl.mm PasteboardTypes.mm PluginInfoStoreMac.mm PrintInfoMac.mm SecItemShimMethods.mm TextCheckerMac.mm WKAccessibilityWebPageObject.mm WKFullKeyboardAccessWatcher.mm WKInspector.cpp WKPrintingView.mm UIProcess/API/mac/WKView.mm WKBundlePageBannerMac.mm WebContextMenuProxyMac.mm WebEditorClientMac.mm WebInspectorProxyMac.mm WebPageMac.mm WebPageProxyMac.mm WebPlatformTouchPoint.cpp WebProcessMac.mm WebProcessProxyMac.mm WebTouchEvent.cpp *.pdf com.apple.WebKit.NetworkProcess.sb com.apple.WebProcess.sb;48 EXCLUDED_SOURCE_FILE_NAMES_iphoneos = BuiltInPDFView.mm DownloadMac.mm FindIndicatorWindow.mm NetworkProcessMac.mm PDFViewController.mm PageClientImpl.mm PasteboardTypes.mm PluginInfoStoreMac.mm PrintInfoMac.mm SecItemShimMethods.mm TextCheckerMac.mm WKAccessibilityWebPageObject.mm WKFullKeyboardAccessWatcher.mm WKInspector.cpp WKPrintingView.mm UIProcess/API/mac/WKView.mm WebContextMenuProxyMac.mm WebEditorClientMac.mm WebInspectorProxyMac.mm WebPageMac.mm WebPageProxyMac.mm WebPlatformTouchPoint.cpp WebProcessMac.mm WebProcessProxyMac.mm WebTouchEvent.cpp *.pdf com.apple.WebKit.NetworkProcess.sb com.apple.WebProcess.sb; 49 49 EXCLUDED_SOURCE_FILE_NAMES_iphonesimulator = $(EXCLUDED_SOURCE_FILE_NAMES_iphoneos); 50 50 EXCLUDED_SOURCE_FILE_NAMES_macosx = *IOS.mm WKContentView.mm WKScrollView.mm UIWKRemoteView.mm WKGeolocationProviderIOSObjCSecurityOrigin.mm WKInteractionView.mm WebIOSEventFactory.mm WKActionSheet.mm WKActionSheetAssistant.mm; -
trunk/Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp
r159234 r164192 236 236 WKDataRef WKBundleFrameCopyWebArchiveFilteringSubframes(WKBundleFrameRef frameRef, WKBundleFrameFrameFilterCallback frameFilterCallback, void* context) 237 237 { 238 #if PLATFORM( MAC)238 #if PLATFORM(COCOA) 239 239 RetainPtr<CFDataRef> data = toImpl(frameRef)->webArchiveData(frameFilterCallback, context); 240 240 if (data) -
trunk/Source/WebKit2/WebProcess/InjectedBundle/API/c/mac/WKBundlePageBannerMac.mm
r162139 r164192 26 26 #include "config.h" 27 27 #include "WKBundlePageBannerMac.h" 28 29 #if !PLATFORM(IOS) 28 30 29 31 #include "APIClient.h" … … 109 111 return toImpl(pageBanner)->layer(); 110 112 } 113 114 #endif // !PLATFORM(IOS) -
trunk/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundle.cpp
r164131 r164192 298 298 { 299 299 // FIXME (NetworkProcess): This test-only function doesn't work with NetworkProcess, <https://bugs.webkit.org/show_bug.cgi?id=115274>. 300 #if PLATFORM( MAC) || USE(CFNETWORK) || USE(SOUP)300 #if PLATFORM(COCOA) || USE(CFNETWORK) || USE(SOUP) 301 301 if (enabled) 302 302 WebFrameNetworkingContext::ensurePrivateBrowsingSession(SessionTracker::legacyPrivateSessionID); -
trunk/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundle.h
r164131 r164192 44 44 #endif 45 45 46 #if PLATFORM(MAC)46 #if USE(FOUNDATION) 47 47 OBJC_CLASS NSBundle; 48 48 #endif … … 60 60 namespace WebKit { 61 61 62 #if PLATFORM(MAC)62 #if USE(FOUNDATION) 63 63 typedef NSBundle *PlatformBundle; 64 64 #elif PLATFORM(GTK) -
trunk/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundleUserMessageCoders.h
r161148 r164192 34 34 #include "WebProcess.h" 35 35 36 #if PLATFORM( MAC)36 #if PLATFORM(COCOA) 37 37 #include "ObjCObjectGraphCoders.h" 38 38 #endif … … 81 81 break; 82 82 } 83 #if PLATFORM( MAC)83 #if PLATFORM(COCOA) 84 84 case API::Object::Type::ObjCObjectGraph: { 85 85 ObjCObjectGraph* objectGraph = static_cast<ObjCObjectGraph*>(m_root); … … 145 145 break; 146 146 } 147 #if PLATFORM( MAC)147 #if PLATFORM(COCOA) 148 148 case API::Object::Type::ObjCObjectGraph: { 149 149 RefPtr<ObjCObjectGraph> objectGraph; -
trunk/Source/WebKit2/WebProcess/Network/WebResourceLoader.cpp
r161148 r164192 108 108 ResourceResponse responseCopy(response); 109 109 // FIXME: This should use CertificateInfo to avoid the platform ifdefs. See https://bugs.webkit.org/show_bug.cgi?id=124724. 110 #if PLATFORM( MAC)110 #if PLATFORM(COCOA) 111 111 responseCopy.setCertificateChain(certificateInfo.certificateChain()); 112 112 #elif USE(SOUP) -
trunk/Source/WebKit2/WebProcess/Plugins/Netscape/NetscapeBrowserFuncs.cpp
r150133 r164192 401 401 } 402 402 403 #if PLATFORM( MAC)403 #if PLATFORM(COCOA) 404 404 // Whether the browser supports compositing of Core Animation plug-ins. 405 405 static const unsigned WKNVSupportsCompositingCoreAnimationPluginsBool = 74656; … … 442 442 break; 443 443 } 444 #if PLATFORM( MAC)444 #if PLATFORM(COCOA) 445 445 case NPNVsupportsCoreGraphicsBool: 446 446 // Always claim to support the Core Graphics drawing model. … … 547 547 { 548 548 switch (variable) { 549 #if PLATFORM( MAC)549 #if PLATFORM(COCOA) 550 550 case NPPVpluginDrawingModel: { 551 551 RefPtr<NetscapePlugin> plugin = NetscapePlugin::fromNPP(npp); … … 941 941 } 942 942 943 #if PLATFORM( MAC)943 #if PLATFORM(COCOA) 944 944 static NPError NPN_PopUpContextMenu(NPP npp, NPMenu* menu) 945 945 { … … 1023 1023 netscapeFuncs.scheduletimer = NPN_ScheduleTimer; 1024 1024 netscapeFuncs.unscheduletimer = NPN_UnscheduleTimer; 1025 #if PLATFORM( MAC)1025 #if PLATFORM(COCOA) 1026 1026 netscapeFuncs.popupcontextmenu = NPN_PopUpContextMenu; 1027 1027 netscapeFuncs.convertpoint = NPN_ConvertPoint; -
trunk/Source/WebKit2/WebProcess/Plugins/Netscape/NetscapePlugin.cpp
r163218 r164192 63 63 , m_npWindow() 64 64 , m_isStarted(false) 65 #if PLATFORM( MAC)65 #if PLATFORM(COCOA) 66 66 , m_isWindowed(false) 67 67 #else … … 73 73 , m_hasCalledSetWindow(false) 74 74 , m_nextTimerID(0) 75 #if PLATFORM( MAC)75 #if PLATFORM(COCOA) 76 76 , m_drawingModel(static_cast<NPDrawingModel>(-1)) 77 77 , m_eventModel(static_cast<NPEventModel>(-1)) … … 1026 1026 bool NetscapePlugin::supportsSnapshotting() const 1027 1027 { 1028 #if PLATFORM( MAC)1028 #if PLATFORM(COCOA) 1029 1029 return m_pluginModule && m_pluginModule->pluginQuirks().contains(PluginQuirks::SupportsSnapshotting); 1030 1030 #endif -
trunk/Source/WebKit2/WebProcess/Plugins/Netscape/NetscapePlugin.h
r162139 r164192 61 61 virtual bool isBeingAsynchronouslyInitialized() const { return false; } 62 62 63 #if PLATFORM( MAC)63 #if PLATFORM(COCOA) 64 64 NPError setDrawingModel(NPDrawingModel); 65 65 NPError setEventModel(NPEventModel); … … 181 181 virtual void paint(WebCore::GraphicsContext*, const WebCore::IntRect& dirtyRect); 182 182 virtual PassRefPtr<ShareableBitmap> snapshot(); 183 #if PLATFORM( MAC)183 #if PLATFORM(COCOA) 184 184 virtual PlatformLayer* pluginLayer(); 185 185 #endif … … 223 223 virtual bool findString(const String&, WebCore::FindOptions, unsigned maxMatchCount) override; 224 224 225 #if PLATFORM( MAC)225 #if PLATFORM(COCOA) 226 226 virtual void windowFocusChanged(bool); 227 227 virtual void windowAndViewFramesChanged(const WebCore::IntRect& windowFrameInScreenCoordinates, const WebCore::IntRect& viewFrameInWindowCoordinates); -
trunk/Source/WebKit2/WebProcess/Plugins/Plugin.cpp
r161148 r164192 42 42 encoder << isFullFramePlugin; 43 43 encoder << shouldUseManualLoader; 44 #if PLATFORM( MAC)44 #if PLATFORM(COCOA) 45 45 encoder.encodeEnum(layerHostingMode); 46 46 #endif … … 65 65 if (!decoder.decode(parameters.shouldUseManualLoader)) 66 66 return false; 67 #if PLATFORM( MAC)67 #if PLATFORM(COCOA) 68 68 if (!decoder.decodeEnum(parameters.layerHostingMode)) 69 69 return false; -
trunk/Source/WebKit2/WebProcess/Plugins/Plugin.h
r161148 r164192 36 36 #include <wtf/Vector.h> 37 37 38 #if PLATFORM( MAC)38 #if PLATFORM(COCOA) 39 39 #include "LayerHostingContext.h" 40 40 … … 80 80 bool isFullFramePlugin; 81 81 bool shouldUseManualLoader; 82 #if PLATFORM( MAC)82 #if PLATFORM(COCOA) 83 83 LayerHostingMode layerHostingMode; 84 84 #endif … … 126 126 virtual PassRefPtr<ShareableBitmap> snapshot() = 0; 127 127 128 #if PLATFORM( MAC)128 #if PLATFORM(COCOA) 129 129 // If a plug-in is using the Core Animation drawing model, this returns its plug-in layer. 130 130 virtual PlatformLayer* pluginLayer() = 0; … … 219 219 virtual NPObject* pluginScriptableNPObject() = 0; 220 220 221 #if PLATFORM( MAC)221 #if PLATFORM(COCOA) 222 222 // Tells the plug-in about window focus changes. 223 223 virtual void windowFocusChanged(bool) = 0; … … 259 259 virtual WebCore::Scrollbar* verticalScrollbar() = 0; 260 260 261 #if PLATFORM( MAC)261 #if PLATFORM(COCOA) 262 262 virtual RetainPtr<PDFDocument> pdfDocumentForPrinting() const { return 0; } 263 263 virtual NSObject *accessibilityObject() const { return 0; } -
trunk/Source/WebKit2/WebProcess/Plugins/PluginController.h
r163079 r164192 29 29 #include <wtf/Forward.h> 30 30 31 #if PLATFORM( MAC)31 #if PLATFORM(COCOA) 32 32 #include "PluginComplexTextInputState.h" 33 33 #endif … … 96 96 virtual void willSendEventToPlugin() = 0; 97 97 98 #if PLATFORM( MAC)98 #if PLATFORM(COCOA) 99 99 // Tells the controller that the plug-in focus or window focus did change. 100 100 virtual void pluginFocusOrWindowFocusChanged(bool) = 0; -
trunk/Source/WebKit2/WebProcess/Plugins/PluginProcessConnectionManager.cpp
r161148 r164192 37 37 #include "WebProcessProxyMessages.h" 38 38 39 #if PLATFORM(MAC)39 #if OS(DARWIN) 40 40 #include "MachPort.h" 41 41 #endif … … 75 75 return 0; 76 76 77 #if PLATFORM(MAC)77 #if OS(DARWIN) 78 78 IPC::Connection::Identifier connectionIdentifier(encodedConnectionIdentifier.port()); 79 79 if (IPC::Connection::identifierIsNull(connectionIdentifier)) -
trunk/Source/WebKit2/WebProcess/Plugins/PluginProxy.cpp
r163079 r164192 486 486 } 487 487 488 #if PLATFORM( MAC)488 #if PLATFORM(COCOA) 489 489 void PluginProxy::windowFocusChanged(bool hasFocus) 490 490 { -
trunk/Source/WebKit2/WebProcess/Plugins/PluginProxy.h
r162139 r164192 37 37 #include <WebCore/SecurityOrigin.h> 38 38 39 #if PLATFORM( MAC)39 #if PLATFORM(COCOA) 40 40 #include <wtf/RetainPtr.h> 41 41 OBJC_CLASS CALayer; … … 79 79 virtual bool supportsSnapshotting() const; 80 80 virtual PassRefPtr<ShareableBitmap> snapshot(); 81 #if PLATFORM( MAC)81 #if PLATFORM(COCOA) 82 82 virtual PlatformLayer* pluginLayer(); 83 83 #endif … … 113 113 114 114 virtual NPObject* pluginScriptableNPObject(); 115 #if PLATFORM( MAC)115 #if PLATFORM(COCOA) 116 116 virtual void windowFocusChanged(bool); 117 117 virtual void windowAndViewFramesChanged(const WebCore::IntRect& windowFrameInScreenCoordinates, const WebCore::IntRect& viewFrameInWindowCoordinates); … … 160 160 void cancelManualStreamLoad(); 161 161 void setStatusbarText(const String& statusbarText); 162 #if PLATFORM( MAC)162 #if PLATFORM(COCOA) 163 163 void pluginFocusOrWindowFocusChanged(bool); 164 164 void setComplexTextInputState(uint64_t); … … 215 215 bool m_waitingOnAsynchronousInitialization; 216 216 217 #if PLATFORM( MAC)217 #if PLATFORM(COCOA) 218 218 RetainPtr<CALayer> m_pluginLayer; 219 219 #endif -
trunk/Source/WebKit2/WebProcess/Plugins/PluginProxy.messages.in
r160022 r164192 57 57 SetStatusbarText(String statusbarText) 58 58 59 #if PLATFORM( MAC)59 #if PLATFORM(COCOA) 60 60 # Called when the plug-in's focus or its containing window focus changes. 61 61 PluginFocusOrWindowFocusChanged(bool pluginHasFocusAndWindowHasFocus) -
trunk/Source/WebKit2/WebProcess/Plugins/PluginView.cpp
r163218 r164192 331 331 m_pendingURLRequestsTimer.stop(); 332 332 333 #if PLATFORM( MAC)333 #if PLATFORM(COCOA) 334 334 if (m_webPage) 335 335 pluginFocusOrWindowFocusChanged(false); … … 499 499 void PluginView::viewStateDidChange(ViewState::Flags changed) 500 500 { 501 #if PLATFORM( MAC)501 #if PLATFORM(COCOA) 502 502 platformViewStateDidChange(changed); 503 503 #endif 504 504 } 505 505 506 #if PLATFORM( MAC)506 #if PLATFORM(COCOA) 507 507 void PluginView::platformViewStateDidChange(ViewState::Flags changed) 508 508 { … … 598 598 m_isInitialized = true; 599 599 600 #if PLATFORM( MAC)600 #if PLATFORM(COCOA) 601 601 windowAndViewFramesChanged(m_webPage->windowFrameInScreenCoordinates(), m_webPage->viewFrameInWindowCoordinates()); 602 602 #endif … … 609 609 redeliverManualStream(); 610 610 611 #if PLATFORM( MAC)611 #if PLATFORM(COCOA) 612 612 if (m_pluginElement->displayState() < HTMLPlugInElement::Restarting) { 613 613 if (m_plugin->pluginLayer() && frame()) { … … 641 641 } 642 642 643 #if PLATFORM( MAC)643 #if PLATFORM(COCOA) 644 644 PlatformLayer* PluginView::platformLayer() const 645 645 { … … 1264 1264 return; 1265 1265 1266 #if PLATFORM( MAC)1266 #if PLATFORM(COCOA) 1267 1267 if (m_plugin->pluginLayer()) 1268 1268 return; … … 1459 1459 } 1460 1460 1461 #if PLATFORM( MAC)1461 #if PLATFORM(COCOA) 1462 1462 void PluginView::pluginFocusOrWindowFocusChanged(bool pluginHasFocusAndWindowHasFocus) 1463 1463 { … … 1611 1611 #endif 1612 1612 1613 #if PLATFORM( MAC)1613 #if PLATFORM(COCOA) 1614 1614 static bool isAlmostSolidColor(BitmapImage* bitmap) 1615 1615 { … … 1686 1686 m_pluginElement->updateSnapshot(snapshotImage.get()); 1687 1687 1688 #if PLATFORM( MAC)1688 #if PLATFORM(COCOA) 1689 1689 unsigned maximumSnapshotRetries = frame() ? frame()->settings().maximumPlugInSnapshotAttempts() : 0; 1690 1690 if (snapshotImage && isAlmostSolidColor(toBitmapImage(snapshotImage.get())) && m_countSnapshotRetries < maximumSnapshotRetries) { -
trunk/Source/WebKit2/WebProcess/Plugins/PluginView.h
r162139 r164192 74 74 void setLayerHostingMode(LayerHostingMode); 75 75 76 #if PLATFORM( MAC)76 #if PLATFORM(COCOA) 77 77 void platformViewStateDidChange(WebCore::ViewState::Flags changed); 78 78 void setDeviceScaleFactor(float); … … 143 143 144 144 // WebCore::PluginViewBase 145 #if PLATFORM( MAC)145 #if PLATFORM(COCOA) 146 146 virtual PlatformLayer* platformLayer() const; 147 147 #endif … … 193 193 virtual void pluginProcessCrashed(); 194 194 virtual void willSendEventToPlugin(); 195 #if PLATFORM( MAC)195 #if PLATFORM(COCOA) 196 196 virtual void pluginFocusOrWindowFocusChanged(bool pluginHasFocusAndWindowHasFocus); 197 197 virtual void setComplexTextInputState(PluginComplexTextInputState); -
trunk/Source/WebKit2/WebProcess/ResourceCache/cf/WebResourceCacheManagerCFNet.cpp
r152578 r164192 34 34 #endif 35 35 36 #if PLATFORM( MAC)36 #if PLATFORM(COCOA) 37 37 #include "WebKitSystemInterface.h" 38 38 #endif -
trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebChromeClient.cpp
r163908 r164192 127 127 FloatRect WebChromeClient::windowRect() 128 128 { 129 #if PLATFORM( MAC)129 #if PLATFORM(COCOA) 130 130 if (m_page->hasCachedWindowFrame()) 131 131 return m_page->windowFrameInUnflippedScreenCoordinates(); … … 155 155 } 156 156 157 #if PLATFORM( MAC)157 #if PLATFORM(COCOA) 158 158 void WebChromeClient::makeFirstResponder() 159 159 { -
trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebChromeClient.h
r163980 r164192 243 243 #endif 244 244 245 #if PLATFORM( MAC)245 #if PLATFORM(COCOA) 246 246 virtual void makeFirstResponder() override; 247 247 #endif -
trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebContextMenuClient.cpp
r156550 r164192 75 75 } 76 76 77 #if !PLATFORM( MAC)77 #if !PLATFORM(COCOA) 78 78 void WebContextMenuClient::searchWithGoogle(const Frame* frame) 79 79 { -
trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebContextMenuClient.h
r162139 r164192 59 59 virtual void stopSpeaking() override; 60 60 61 #if PLATFORM( MAC)61 #if PLATFORM(COCOA) 62 62 virtual void searchWithSpotlight() override; 63 63 #endif -
trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebDragClient.cpp
r157058 r164192 57 57 } 58 58 59 #if !PLATFORM( MAC) && !PLATFORM(GTK)59 #if !PLATFORM(COCOA) && !PLATFORM(GTK) 60 60 void WebDragClient::startDrag(DragImageRef, const IntPoint&, const IntPoint&, Clipboard&, Frame&, bool) 61 61 { -
trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebDragClient.h
r162139 r164192 50 50 virtual void startDrag(WebCore::DragImageRef, const WebCore::IntPoint& dragImageOrigin, const WebCore::IntPoint& eventPos, WebCore::Clipboard&, WebCore::Frame&, bool linkDrag = false) override; 51 51 52 #if PLATFORM( MAC)52 #if PLATFORM(COCOA) 53 53 virtual void declareAndWriteDragImage(const String& pasteboardName, WebCore::Element&, const WebCore::URL&, const String&, WebCore::Frame*) override; 54 54 #endif -
trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebEditorClient.cpp
r163712 r164192 280 280 } 281 281 282 #if !PLATFORM(GTK) && !PLATFORM( MAC) && !PLATFORM(EFL)282 #if !PLATFORM(GTK) && !PLATFORM(COCOA) && !PLATFORM(EFL) 283 283 void WebEditorClient::handleKeyboardEvent(KeyboardEvent* event) 284 284 { … … 397 397 { 398 398 // This prevents erasing spelling markers on OS X Lion or later to match AppKit on these Mac OS X versions. 399 #if PLATFORM( MAC) || PLATFORM(EFL)399 #if PLATFORM(COCOA) || PLATFORM(EFL) 400 400 return type != TextCheckingTypeSpelling; 401 401 #else -
trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebEditorClient.h
r163920 r164192 92 92 virtual void textDidChangeInTextArea(WebCore::Element*) override; 93 93 94 #if PLATFORM( MAC)94 #if PLATFORM(COCOA) 95 95 virtual NSString *userVisibleString(NSURL *) override; 96 96 virtual WebCore::DocumentFragment* documentFragmentFromAttributedString(NSAttributedString *, Vector< RefPtr<WebCore::ArchiveResource>>&) override; -
trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp
r163243 r164192 1203 1203 m_frame->coreFrame()->view()->setProhibitsScrolling(shouldDisableScrolling); 1204 1204 m_frame->coreFrame()->view()->setVisualUpdatesAllowedByClient(!webPage->shouldExtendIncrementalRenderingSuppression()); 1205 #if PLATFORM( MAC)1205 #if PLATFORM(COCOA) 1206 1206 m_frame->coreFrame()->view()->setExposedRect(webPage->drawingArea()->exposedRect()); 1207 1207 #endif … … 1289 1289 parameters.isFullFramePlugin = loadManually; 1290 1290 parameters.shouldUseManualLoader = parameters.isFullFramePlugin && !m_frameCameFromPageCache; 1291 #if PLATFORM( MAC)1291 #if PLATFORM(COCOA) 1292 1292 parameters.layerHostingMode = m_frame->page()->layerHostingMode(); 1293 1293 #endif … … 1512 1512 } 1513 1513 1514 #if PLATFORM( MAC)1514 #if PLATFORM(COCOA) 1515 1515 1516 1516 RemoteAXObjectRef WebFrameLoaderClient::accessibilityRemoteObject() … … 1532 1532 } 1533 1533 1534 #endif // PLATFORM( MAC)1534 #endif // PLATFORM(COCOA) 1535 1535 1536 1536 bool WebFrameLoaderClient::shouldAlwaysUsePluginDocument(const String& /*mimeType*/) const -
trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebFrameLoaderClient.h
r162786 r164192 210 210 virtual void registerForIconNotification(bool listen = true) override; 211 211 212 #if PLATFORM( MAC)212 #if PLATFORM(COCOA) 213 213 virtual RemoteAXObjectRef accessibilityRemoteObject() override; 214 214 -
trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebPlatformStrategies.cpp
r163217 r164192 386 386 } 387 387 388 #if PLATFORM( MAC)388 #if PLATFORM(COCOA) 389 389 // PasteboardStrategy 390 390 -
trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebPlatformStrategies.h
r162139 r164192 110 110 virtual long changeCount() override; 111 111 #endif 112 #if PLATFORM( MAC)112 #if PLATFORM(COCOA) 113 113 virtual void getTypes(Vector<String>& types, const String& pasteboardName) override; 114 114 virtual PassRefPtr<WebCore::SharedBuffer> bufferForType(const String& pasteboardType, const String& pasteboardName) override; -
trunk/Source/WebKit2/WebProcess/WebCoreSupport/mac/WebSystemInterface.mm
r162114 r164192 165 165 166 166 #if !PLATFORM(IOS) 167 #if PLATFORM(MAC)168 167 INIT(SpeechSynthesisGetVoiceIdentifiers); 169 168 INIT(SpeechSynthesisGetDefaultVoiceIdentifierForLocale); 170 #endif171 169 INIT(GetAXTextMarkerTypeID); 172 170 INIT(GetAXTextMarkerRangeTypeID); … … 212 210 #endif 213 211 214 #if !PLATFORM(IOS) && PLATFORM(MAC) &&__MAC_OS_X_VERSION_MIN_REQUIRED >= 1080212 #if !PLATFORM(IOS) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 1080 215 213 INIT(NSElasticDeltaForTimeDelta); 216 214 INIT(NSElasticDeltaForReboundDelta); -
trunk/Source/WebKit2/WebProcess/WebPage/DrawingArea.cpp
r162276 r164192 29 29 30 30 // Subclasses 31 #if PLATFORM( MAC)31 #if PLATFORM(COCOA) 32 32 #include "RemoteLayerTreeDrawingArea.h" 33 33 #include "TiledCoreAnimationDrawingArea.h" … … 47 47 { 48 48 switch (parameters.drawingAreaType) { 49 #if PLATFORM( MAC)49 #if PLATFORM(COCOA) 50 50 #if !PLATFORM(IOS) 51 51 case DrawingAreaTypeTiledCoreAnimation: -
trunk/Source/WebKit2/WebProcess/WebPage/DrawingArea.h
r163079 r164192 89 89 virtual void mainFrameContentSizeChanged(const WebCore::IntSize&) { } 90 90 91 #if PLATFORM( MAC)91 #if PLATFORM(COCOA) 92 92 virtual void setExposedRect(const WebCore::FloatRect&) = 0; 93 93 virtual WebCore::FloatRect exposedRect() const = 0; … … 128 128 virtual void didUpdate() { } 129 129 130 #if PLATFORM( MAC)130 #if PLATFORM(COCOA) 131 131 // Used by TiledCoreAnimationDrawingArea. 132 132 virtual void updateGeometry(const WebCore::IntSize& viewSize, const WebCore::IntSize& layerPosition) { } -
trunk/Source/WebKit2/WebProcess/WebPage/DrawingArea.messages.in
r162730 r164192 25 25 DidUpdate() 26 26 27 #if PLATFORM( MAC)27 #if PLATFORM(COCOA) 28 28 // Used by TiledCoreAnimationDrawingArea. 29 29 UpdateGeometry(WebCore::IntSize viewSize, WebCore::IntSize layerPosition) -
trunk/Source/WebKit2/WebProcess/WebPage/EventDispatcher.cpp
r163180 r164192 92 92 PlatformWheelEvent platformWheelEvent = platform(wheelEvent); 93 93 94 #if PLATFORM( MAC)94 #if PLATFORM(COCOA) 95 95 switch (wheelEvent.phase()) { 96 96 case PlatformWheelEventPhaseBegan: -
trunk/Source/WebKit2/WebProcess/WebPage/LayerTreeHost.h
r161148 r164192 90 90 #endif 91 91 92 #if PLATFORM( MAC)92 #if PLATFORM(COCOA) 93 93 virtual void setLayerHostingMode(LayerHostingMode) { } 94 94 #endif -
trunk/Source/WebKit2/WebProcess/WebPage/PageBanner.cpp
r151661 r164192 38 38 } 39 39 40 #if !PLATFORM(MAC) 40 #if !PLATFORM(MAC) || PLATFORM(IOS) 41 41 void PageBanner::addToPage(Type, WebPage*) 42 42 { -
trunk/Source/WebKit2/WebProcess/WebPage/PageBanner.h
r160384 r164192 31 31 #include <wtf/PassRefPtr.h> 32 32 33 #if PLATFORM(MAC) 33 #if PLATFORM(MAC) && !PLATFORM(IOS) 34 34 OBJC_CLASS CALayer; 35 35 #include <wtf/RetainPtr.h> … … 61 61 }; 62 62 63 #if PLATFORM(MAC) 63 #if PLATFORM(MAC) && !PLATFORM(IOS) 64 64 static PassRefPtr<PageBanner> create(CALayer *, int height, Client*); 65 65 CALayer *layer(); … … 80 80 81 81 private: 82 #if PLATFORM(MAC) 82 #if PLATFORM(MAC) && !PLATFORM(IOS) 83 83 explicit PageBanner(CALayer *, int height, Client*); 84 84 #endif … … 91 91 bool m_isHidden; 92 92 93 #if PLATFORM(MAC) 93 #if PLATFORM(MAC) && !PLATFORM(IOS) 94 94 RetainPtr<CALayer> m_layer; 95 95 int m_height; -
trunk/Source/WebKit2/WebProcess/WebPage/WebFrame.cpp
r162982 r164192 72 72 #include <wtf/text/StringBuilder.h> 73 73 74 #if PLATFORM( MAC)74 #if PLATFORM(COCOA) 75 75 #include <WebCore/LegacyWebArchive.h> 76 76 #endif … … 735 735 } 736 736 737 #if PLATFORM( MAC)737 #if PLATFORM(COCOA) 738 738 RetainPtr<CFDataRef> WebFrame::webArchiveData(FrameFilterFunction callback, void* context) 739 739 { -
trunk/Source/WebKit2/WebProcess/WebPage/WebFrame.h
r160384 r164192 139 139 LoadListener* loadListener() const { return m_loadListener; } 140 140 141 #if PLATFORM( MAC)141 #if PLATFORM(COCOA) 142 142 typedef bool (*FrameFilterFunction)(WKBundleFrameRef, WKBundleFrameRef subframe, void* context); 143 143 RetainPtr<CFDataRef> webArchiveData(FrameFilterFunction, void* context); -
trunk/Source/WebKit2/WebProcess/WebPage/WebInspector.cpp
r163024 r164192 57 57 , m_frontendClient(0) 58 58 , m_frontendChannel(frontendChannel) 59 #if PLATFORM( MAC)59 #if PLATFORM(COCOA) 60 60 , m_hasLocalizedStringsURL(false) 61 61 #endif -
trunk/Source/WebKit2/WebProcess/WebPage/WebInspector.h
r161148 r164192 123 123 WebInspectorFrontendClient* m_frontendClient; 124 124 WebCore::InspectorFrontendChannel* m_frontendChannel; 125 #if PLATFORM( MAC)125 #if PLATFORM(COCOA) 126 126 mutable String m_localizedStringsURL; 127 127 mutable bool m_hasLocalizedStringsURL; -
trunk/Source/WebKit2/WebProcess/WebPage/WebPage.cpp
r164126 r164192 153 153 #endif 154 154 155 #if PLATFORM(MAC)156 #include "MachPort.h"157 #endif158 159 155 #if ENABLE(BATTERY_STATUS) 160 156 #include "WebBatteryClient.h" … … 173 169 #endif 174 170 175 #if PLATFORM( MAC)171 #if PLATFORM(COCOA) 176 172 #include "PDFPlugin.h" 177 173 #include <WebCore/LegacyWebArchive.h> … … 252 248 #endif 253 249 , m_layerHostingMode(parameters.layerHostingMode) 254 #if PLATFORM( MAC)250 #if PLATFORM(COCOA) 255 251 , m_pdfPluginEnabled(false) 256 252 , m_hasCachedWindowFrame(false) … … 1608 1604 return true; 1609 1605 1610 #if PLATFORM( MAC)1606 #if PLATFORM(COCOA) 1611 1607 // FIXME: this really should be about OSX-style UI, not about the Mac port 1612 1608 if (event.button() == WebCore::LeftButton && event.ctrlKey()) … … 2260 2256 IPC::DataReference dataReference; 2261 2257 2262 #if PLATFORM( MAC)2258 #if PLATFORM(COCOA) 2263 2259 RefPtr<LegacyWebArchive> archive; 2264 2260 RetainPtr<CFDataRef> data; … … 2352 2348 IPC::DataReference dataReference; 2353 2349 2354 #if PLATFORM( MAC)2350 #if PLATFORM(COCOA) 2355 2351 RetainPtr<CFDataRef> data; 2356 2352 if (WebFrame* frame = WebProcess::shared().webFrame(frameID)) { … … 2396 2392 m_scrollingPerformanceLoggingEnabled = store.getBoolValueForKey(WebPreferencesKey::scrollingPerformanceLoggingEnabledKey()); 2397 2393 2398 #if PLATFORM( MAC)2394 #if PLATFORM(COCOA) 2399 2395 m_pdfPluginEnabled = store.getBoolValueForKey(WebPreferencesKey::pdfPluginEnabledKey()); 2400 2396 #endif … … 2452 2448 settings.setDefaultFixedFontSize(store.getDoubleValueForKey(WebPreferencesKey::defaultFixedFontSizeKey())); 2453 2449 settings.setScreenFontSubstitutionEnabled(store.getBoolValueForKey(WebPreferencesKey::screenFontSubstitutionEnabledKey()) 2454 #if PLATFORM( MAC)2450 #if PLATFORM(COCOA) 2455 2451 || WebProcess::shared().shouldForceScreenFontSubstitution() 2456 2452 #endif … … 2501 2497 #endif 2502 2498 2503 #if PLATFORM( MAC)2499 #if PLATFORM(COCOA) 2504 2500 settings.setQTKitEnabled(store.getBoolValueForKey(WebPreferencesKey::isQTKitEnabledKey())); 2505 2501 #endif … … 2634 2630 } 2635 2631 2636 #if !PLATFORM(GTK) && !PLATFORM( MAC)2632 #if !PLATFORM(GTK) && !PLATFORM(COCOA) 2637 2633 bool WebPage::handleEditingKeyboardEvent(KeyboardEvent* evt) 2638 2634 { … … 3096 3092 void WebPage::sendSetWindowFrame(const FloatRect& windowFrame) 3097 3093 { 3098 #if PLATFORM( MAC)3094 #if PLATFORM(COCOA) 3099 3095 m_hasCachedWindowFrame = false; 3100 3096 #endif … … 3102 3098 } 3103 3099 3104 #if PLATFORM( MAC)3100 #if PLATFORM(COCOA) 3105 3101 void WebPage::windowAndViewFramesChanged(const FloatRect& windowFrameInScreenCoordinates, const FloatRect& windowFrameInUnflippedScreenCoordinates, const FloatRect& viewFrameInWindowCoordinates, const FloatPoint& accessibilityViewCoordinates) 3106 3102 { … … 3327 3323 } 3328 3324 3329 #if PLATFORM( MAC)3325 #if PLATFORM(COCOA) 3330 3326 3331 3327 bool WebPage::isSpeaking() … … 3363 3359 return pluginView->pdfDocumentForPrinting(); 3364 3360 } 3365 #endif // PLATFORM(MAC) 3361 #endif // PLATFORM(MAC) && !PLATFORM(IOS) 3366 3362 3367 3363 void WebPage::beginPrinting(uint64_t frameID, const PrintInfo& printInfo) … … 3378 3374 if (pdfDocumentForPrintingFrame(coreFrame)) 3379 3375 return; 3380 #endif // PLATFORM(MAC) 3376 #endif // PLATFORM(MAC) && !PLATFORM(IOS) 3381 3377 3382 3378 if (!m_printContext) … … 3415 3411 resultTotalScaleFactorForPrinting = m_printContext->computeAutomaticScaleFactor(FloatSize(printInfo.availablePaperWidth, printInfo.availablePaperHeight)) * printInfo.pageSetupScaleFactor; 3416 3412 } 3417 #if PLATFORM( MAC)3413 #if PLATFORM(COCOA) 3418 3414 else 3419 3415 computePagesForPrintingPDFDocument(frameID, printInfo, resultPageRects); 3420 #endif // PLATFORM( MAC)3416 #endif // PLATFORM(COCOA) 3421 3417 3422 3418 // If we're asked to print, we should actually print at least a blank page. … … 3427 3423 } 3428 3424 3429 #if PLATFORM( MAC)3425 #if PLATFORM(COCOA) 3430 3426 void WebPage::drawRectToImage(uint64_t frameID, const PrintInfo& printInfo, const IntRect& rect, const WebCore::IntSize& imageSize, uint64_t callbackID) 3431 3427 { … … 3544 3540 } 3545 3541 3546 #if PLATFORM( MAC)3542 #if PLATFORM(COCOA) 3547 3543 void WebPage::savePDFToTemporaryFolderAndOpenWithNativeApplication(const String& suggestedFilename, const String& originatingURLString, const uint8_t* data, unsigned long size, const String& pdfUUID) 3548 3544 { … … 3604 3600 #endif 3605 3601 3606 #if PLATFORM( MAC)3602 #if PLATFORM(COCOA) 3607 3603 void WebPage::handleAlternativeTextUIResult(const String& result) 3608 3604 { -
trunk/Source/WebKit2/WebProcess/WebPage/WebPage.h
r163980 r164192 93 93 #endif 94 94 95 #if PLATFORM( MAC)95 #if PLATFORM(COCOA) 96 96 #include "DictionaryPopupInfo.h" 97 97 #include "LayerHostingContext.h" … … 228 228 229 229 // -- Called from WebCore clients. 230 #if PLATFORM( MAC)230 #if PLATFORM(COCOA) 231 231 bool handleEditingKeyboardEvent(WebCore::KeyboardEvent*, bool saveCommands); 232 232 #elif !PLATFORM(GTK) … … 376 376 void setLayerHostingMode(unsigned); 377 377 378 #if PLATFORM( MAC)378 #if PLATFORM(COCOA) 379 379 void updatePluginsActiveAndFocusedState(); 380 380 const WebCore::FloatRect& windowFrameInScreenCoordinates() const { return m_windowFrameInScreenCoordinates; } … … 390 390 391 391 void updateHeaderAndFooterLayersForDeviceScaleChange(float scaleFactor); 392 #endif // PLATFORM( MAC)392 #endif // PLATFORM(COCOA) 393 393 394 394 bool windowIsFocused() const; … … 513 513 void didChangeSelection(); 514 514 515 #if PLATFORM( MAC)515 #if PLATFORM(COCOA) 516 516 void registerUIProcessAccessibilityTokens(const IPC::DataReference& elemenToken, const IPC::DataReference& windowToken); 517 517 WKAccessibilityWebPageObject* accessibilityRemoteObject(); … … 562 562 void dummy(bool&); 563 563 564 #if PLATFORM( MAC)564 #if PLATFORM(COCOA) 565 565 void performDictionaryLookupForSelection(WebCore::Frame*, const WebCore::VisibleSelection&); 566 566 … … 595 595 void endPrinting(); 596 596 void computePagesForPrinting(uint64_t frameID, const PrintInfo&, uint64_t callbackID); 597 #if PLATFORM( MAC)597 #if PLATFORM(COCOA) 598 598 void drawRectToImage(uint64_t frameID, const PrintInfo&, const WebCore::IntRect&, const WebCore::IntSize&, uint64_t callbackID); 599 599 void drawPagesToPDF(uint64_t frameID, const PrintInfo&, uint32_t first, uint32_t count, uint64_t callbackID); … … 626 626 void unmarkAllMisspellings(); 627 627 void unmarkAllBadGrammar(); 628 #if PLATFORM( MAC)628 #if PLATFORM(COCOA) 629 629 void handleAlternativeTextUIResult(const String&); 630 630 #endif … … 672 672 void setScrollingPerformanceLoggingEnabled(bool); 673 673 674 #if PLATFORM( MAC)674 #if PLATFORM(COCOA) 675 675 bool shouldUsePDFPlugin() const; 676 676 bool pdfPluginEnabled() const { return m_pdfPluginEnabled; } … … 679 679 680 680 void savePDFToFileInDownloadsFolder(const String& suggestedFilename, const String& originatingURLString, const uint8_t* data, unsigned long size); 681 #if PLATFORM( MAC)681 #if PLATFORM(COCOA) 682 682 void savePDFToTemporaryFolderAndOpenWithNativeApplication(const String& suggestedFilename, const String& originatingURLString, const uint8_t* data, unsigned long size, const String& pdfUUID); 683 683 #endif … … 732 732 PassRefPtr<WebCore::Range> rangeForWebSelectionAtPosition(const WebCore::IntPoint&, const WebCore::VisiblePosition&, WKSelectionFlags&); 733 733 #endif 734 #if !PLATFORM( MAC)734 #if !PLATFORM(COCOA) 735 735 static const char* interpretKeyEvent(const WebCore::KeyboardEvent*); 736 736 #endif 737 737 bool performDefaultBehaviorForKeyEvent(const WebKeyboardEvent&); 738 738 739 #if PLATFORM( MAC)739 #if PLATFORM(COCOA) 740 740 bool executeKeypressCommandsInternal(const Vector<WebCore::KeypressCommand>&, WebCore::KeyboardEvent*); 741 741 #endif … … 824 824 void resumeActiveDOMObjectsAndAnimations(); 825 825 826 #if PLATFORM( MAC)826 #if PLATFORM(COCOA) 827 827 void performDictionaryLookupAtLocation(const WebCore::FloatPoint&); 828 828 void performDictionaryLookupForRange(WebCore::Frame*, WebCore::Range*, NSDictionary *options); … … 949 949 LayerHostingMode m_layerHostingMode; 950 950 951 #if PLATFORM( MAC)951 #if PLATFORM(COCOA) 952 952 bool m_pdfPluginEnabled; 953 953 -
trunk/Source/WebKit2/WebProcess/WebPage/WebPage.messages.in
r163821 r164192 124 124 ForceRepaint(uint64_t callbackID) 125 125 126 #if PLATFORM( MAC)126 #if PLATFORM(COCOA) 127 127 # Dictionary support. 128 128 PerformDictionaryLookupAtLocation(WebCore::FloatPoint point) … … 216 216 CapitalizeWord() 217 217 #endif 218 #if PLATFORM( MAC)218 #if PLATFORM(COCOA) 219 219 SetSmartInsertDeleteEnabled(bool isSmartInsertDeleteEnabled) 220 220 #endif … … 234 234 EndPrinting() 235 235 ComputePagesForPrinting(uint64_t frameID, WebKit::PrintInfo printInfo, uint64_t callbackID) 236 #if PLATFORM( MAC)236 #if PLATFORM(COCOA) 237 237 DrawRectToImage(uint64_t frameID, WebKit::PrintInfo printInfo, WebCore::IntRect rect, WebCore::IntSize imageSize, uint64_t callbackID) 238 238 DrawPagesToPDF(uint64_t frameID, WebKit::PrintInfo printInfo, uint32_t first, uint32_t count, uint64_t callbackID) … … 269 269 #endif 270 270 271 #if PLATFORM( MAC)271 #if PLATFORM(COCOA) 272 272 # Complex text input support for plug-ins. 273 273 SendComplexTextInputToPlugin(uint64_t pluginComplexTextInputIdentifier, String textInput) … … 309 309 #endif 310 310 311 #if PLATFORM( MAC)311 #if PLATFORM(COCOA) 312 312 HandleAlternativeTextUIResult(String result) 313 313 #endif -
trunk/Source/WebKit2/WebProcess/WebPage/mac/PageBannerMac.mm
r162505 r164192 26 26 #include "config.h" 27 27 #include "PageBanner.h" 28 29 #if !PLATFORM(IOS) 28 30 29 31 #include "WebPage.h" … … 167 169 } 168 170 171 #endif // !PLATFORM(IOS) 172 169 173 } // namespace WebKit -
trunk/Source/WebKit2/WebProcess/WebProcess.cpp
r163121 r164192 95 95 96 96 #if ENABLE(NETWORK_PROCESS) 97 #if PLATFORM( MAC)97 #if PLATFORM(COCOA) 98 98 #include "CookieStorageShim.h" 99 99 #endif … … 156 156 , m_hasSetCacheModel(false) 157 157 , m_cacheModel(CacheModelDocumentViewer) 158 #if PLATFORM( MAC)158 #if PLATFORM(COCOA) 159 159 , m_compositingRenderServerPort(MACH_PORT_NULL) 160 #endif161 #if PLATFORM(MAC)162 160 , m_clearResourceCachesDispatchGroup(0) 163 161 #endif … … 341 339 setShouldUseFontSmoothing(true); 342 340 343 #if PLATFORM( MAC) || USE(CFNETWORK)341 #if PLATFORM(COCOA) || USE(CFNETWORK) 344 342 SessionTracker::setIdentifierBase(parameters.uiProcessBundleIdentifier); 345 343 #endif … … 352 350 ensureNetworkProcessConnection(); 353 351 354 #if PLATFORM( MAC)352 #if PLATFORM(COCOA) 355 353 if (usesNetworkProcess()) 356 354 CookieStorageShim::shared().initialize(); … … 381 379 return; 382 380 383 #if PLATFORM(MAC)381 #if OS(DARWIN) 384 382 IPC::Connection::Identifier connectionIdentifier(encodedConnectionIdentifier.port()); 385 383 #elif USE(UNIX_DOMAIN_SOCKETS) … … 470 468 void WebProcess::ensurePrivateBrowsingSession(uint64_t sessionID) 471 469 { 472 #if PLATFORM( MAC) || USE(CFNETWORK) || USE(SOUP)470 #if PLATFORM(COCOA) || USE(CFNETWORK) || USE(SOUP) 473 471 WebFrameNetworkingContext::ensurePrivateBrowsingSession(sessionID); 474 472 #endif … … 477 475 void WebProcess::destroyPrivateBrowsingSession(uint64_t sessionID) 478 476 { 479 #if PLATFORM( MAC) || USE(CFNETWORK) || USE(SOUP)477 #if PLATFORM(COCOA) || USE(CFNETWORK) || USE(SOUP) 480 478 SessionTracker::destroySession(sessionID); 481 479 #endif … … 1059 1057 return; 1060 1058 1061 #if PLATFORM(MAC)1059 #if OS(DARWIN) 1062 1060 IPC::Connection::Identifier connectionIdentifier(encodedConnectionIdentifier.port()); 1063 1061 if (IPC::Connection::identifierIsNull(connectionIdentifier)) … … 1137 1135 } 1138 1136 1139 #if !PLATFORM( MAC)1137 #if !PLATFORM(COCOA) 1140 1138 void WebProcess::initializeProcessName(const ChildProcessInitializationParameters&) 1141 1139 { … … 1187 1185 return; 1188 1186 1189 #if PLATFORM( MAC)1187 #if PLATFORM(COCOA) 1190 1188 wkDestroyRenderingResources(); 1191 1189 #endif -
trunk/Source/WebKit2/WebProcess/WebProcess.h
r163121 r164192 45 45 #include <wtf/text/AtomicStringHash.h> 46 46 47 #if PLATFORM( MAC)47 #if PLATFORM(COCOA) 48 48 #include <dispatch/dispatch.h> 49 49 #endif … … 111 111 InjectedBundle* injectedBundle() const { return m_injectedBundle.get(); } 112 112 113 #if PLATFORM( MAC)113 #if PLATFORM(COCOA) 114 114 mach_port_t compositingRenderServerPort() const { return m_compositingRenderServerPort; } 115 115 #endif … … 133 133 WebPageGroupProxy* webPageGroup(const WebPageGroupData&); 134 134 135 #if PLATFORM( MAC)135 #if PLATFORM(COCOA) 136 136 pid_t presenterApplicationPid() const { return m_presenterApplicationPid; } 137 137 bool shouldForceScreenFontSubstitution() const { return m_shouldForceScreenFontSubstitution; } … … 293 293 CacheModel m_cacheModel; 294 294 295 #if PLATFORM( MAC)295 #if PLATFORM(COCOA) 296 296 mach_port_t m_compositingRenderServerPort; 297 297 pid_t m_presenterApplicationPid; -
trunk/Source/WebKit2/WebProcess/WebProcess.messages.in
r163121 r164192 83 83 ReleasePageCache() 84 84 85 #if PLATFORM(MAC)86 85 SetProcessSuppressionEnabled(bool flag) 86 #if PLATFORM(COCOA) 87 87 SetQOS(int latencyQOS, int throughputQOS) 88 88 #endif
Note: See TracChangeset
for help on using the changeset viewer.