Changeset 164172 in webkit


Ignore:
Timestamp:
Feb 15, 2014 9:06:17 AM (10 years ago)
Author:
mitz@apple.com
Message:

Stop using PLATFORM(MAC) in WebKit2/UIProcess except where it means “OS X but not iOS”
https://bugs.webkit.org/show_bug.cgi?id=128868

Reviewed by Anders Carlsoon.

  • UIProcess/API/C/WKPage.cpp: Changed PLATFORM(MAC) to PLATFORM(COCOA).
  • UIProcess/Databases/DatabaseProcessProxy.cpp:

(WebKit::DatabaseProcessProxy::didCreateDatabaseToWebProcessConnection): Changed
PLATFORM(MAC) to OS(DARWIN) around use of Mach-based IPC.

  • UIProcess/DrawingAreaProxy.cpp: Changed PLATFORM(MAC) to PLATFORM(COCOA)

(WebKit::DrawingAreaProxy::DrawingAreaProxy):

  • UIProcess/DrawingAreaProxy.h: Ditto.
  • UIProcess/DrawingAreaProxy.messages.in: Ditto.
  • UIProcess/Launcher/ProcessLauncher.cpp:

(WebKit::ProcessLauncher::didFinishLaunchingProcess): Changed PLATFORM(MAC) to OS(DARWIN)
around use of Mach API.

  • UIProcess/Launcher/ProcessLauncher.h: Ditto.
  • UIProcess/Network/CustomProtocols/CustomProtocolManagerProxy.h: Changed PLATFORM(MAC) to

PLATFORM(COCOA)

  • UIProcess/Network/NetworkProcessProxy.cpp:

(WebKit::NetworkProcessProxy::networkProcessCrashedOrFailedToLaunch): Changed PLATFORM(MAC)
to OS(DARWIN).
(WebKit::NetworkProcessProxy::didCreateNetworkConnectionToWebProcess): Ditto.
(WebKit::NetworkProcessProxy::didFinishLaunching): Changed PLATFORM(MAC) to PLATFORM(COCOA)
around process suppression call.

  • UIProcess/Network/NetworkProcessProxy.h: Ditto.
  • UIProcess/PageClient.h: Changed PLATFORM(MAC) to PLATFORM(COCOA).
  • UIProcess/Plugins/PluginInfoStore.cpp: Ditto.
  • UIProcess/Plugins/PluginProcessManager.h: Ditto.
  • UIProcess/Plugins/PluginProcessProxy.cpp:

(WebKit::PluginProcessProxy::PluginProcessProxy): Ditto.
(WebKit::PluginProcessProxy::pluginProcessCrashedOrFailedToLaunch): Changed PLATFORM(MAC)
to OS(DARWIN).
(WebKit::PluginProcessProxy::didClose): Changed PLATFORM(MAC) to PLATFORM(COCOA).
(WebKit::PluginProcessProxy::didFinishLaunching): Changed PLATFORM(MAC) to OS(DARWIN) around
use of Mach-based IPC, and to PLATFORM(COCOA) around SetQOS.
(WebKit::PluginProcessProxy::didCreateWebProcessConnection): Changed PLATFORM(MAC) to
OS(DARWIN).

  • UIProcess/Plugins/PluginProcessProxy.h: Changed PLATFORM(MAC) to PLATFORM(COCOA).
  • UIProcess/Plugins/PluginProcessProxy.messages.in: Ditto.
  • UIProcess/TextChecker.h: Ditto.
  • UIProcess/WebContext.cpp: Ditto.

(WebKit::WebContext::ensureNetworkProcess):
(WebKit::WebContext::createNewWebProcess):
(WebKit::WebContext::setHTTPPipeliningEnabled):
(WebKit::WebContext::httpPipeliningEnabled):
(WebKit::WebContext::pluginInfoStoreDidLoadPlugins):

  • UIProcess/WebContext.h: Ditto.
  • UIProcess/WebContext.messages.in: Ditto.
  • UIProcess/WebContextUserMessageCoders.h: Ditto.

(WebKit::WebContextUserMessageEncoder::encode):
(WebKit::WebContextUserMessageDecoder::decode):

  • UIProcess/WebCookieManagerProxy.cpp: Ditto.

(WebKit::WebCookieManagerProxy::setHTTPCookieAcceptPolicy):

  • UIProcess/WebCookieManagerProxy.h: Ditto.
  • UIProcess/WebFormSubmissionListenerProxy.h: Ditto.
  • UIProcess/WebFramePolicyListenerProxy.h: Ditto.
  • UIProcess/WebInspectorProxy.h: Added !PLATFORM(IOS) around members reltated to managing

the inspector window and its view.

  • UIProcess/WebPageProxy.cpp: Changed PLATFORM(MAC) to PLATFORM(COCOA).

(WebKit::WebPageProxy::WebPageProxy):
(WebKit::WebPageProxy::initializeWebPage):
(WebKit::WebPageProxy::recordNavigationSnapshot):
(WebKit::WebPageProxy::canShowMIMEType):
(WebKit::canCoalesce):
(WebKit::coalesce):
(WebKit::WebPageProxy::findPlugin):
(WebKit::WebPageProxy::editorStateChanged):
(WebKit::WebPageProxy::contextMenuItemSelected):
(WebKit::WebPageProxy::didReceiveEvent):
(WebKit::WebPageProxy::didBlockInsecurePluginVersion):

  • UIProcess/WebPageProxy.h: Ditto.
  • UIProcess/WebPageProxy.messages.in: Ditto.
  • UIProcess/WebProcessProxy.cpp: Ditto.

(WebKit::WebProcessProxy::WebProcessProxy):
(WebKit::WebProcessProxy::createWebPage):
(WebKit::WebProcessProxy::addExistingWebPage):
(WebKit::WebProcessProxy::removeWebPage):
(WebKit::WebProcessProxy::didFinishLaunching):
(WebKit::WebProcessProxy::pageSuppressibilityChanged):
(WebKit::WebProcessProxy::pagePreferencesChanged):

  • UIProcess/WebProcessProxy.h: Ditto.
  • UIProcess/cf/WebPreferencesCF.cpp: Removed this file which was not used in any

configuration.

  • UIProcess/ios/WebInspectorProxyIOS.mm: Removed functions that no longer need to be

implemented for iOS.

  • WebKit2.xcodeproj/project.pbxproj: Removed reference to WebPreferencesCF.cpp.
Location:
trunk/Source/WebKit2
Files:
1 deleted
34 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r164171 r164172  
     12014-02-15  Dan Bernstein  <mitz@apple.com>
     2
     3        Stop using PLATFORM(MAC) in WebKit2/UIProcess except where it means “OS X but not iOS”
     4        https://bugs.webkit.org/show_bug.cgi?id=128868
     5
     6        Reviewed by Anders Carlsoon.
     7
     8        * UIProcess/API/C/WKPage.cpp: Changed PLATFORM(MAC) to PLATFORM(COCOA).
     9        * UIProcess/Databases/DatabaseProcessProxy.cpp:
     10        (WebKit::DatabaseProcessProxy::didCreateDatabaseToWebProcessConnection): Changed
     11        PLATFORM(MAC) to OS(DARWIN) around use of Mach-based IPC.
     12        * UIProcess/DrawingAreaProxy.cpp: Changed PLATFORM(MAC) to PLATFORM(COCOA)
     13        (WebKit::DrawingAreaProxy::DrawingAreaProxy):
     14        * UIProcess/DrawingAreaProxy.h: Ditto.
     15        * UIProcess/DrawingAreaProxy.messages.in: Ditto.
     16        * UIProcess/Launcher/ProcessLauncher.cpp:
     17        (WebKit::ProcessLauncher::didFinishLaunchingProcess): Changed PLATFORM(MAC) to OS(DARWIN)
     18        around use of Mach API.
     19        * UIProcess/Launcher/ProcessLauncher.h: Ditto.
     20        * UIProcess/Network/CustomProtocols/CustomProtocolManagerProxy.h: Changed PLATFORM(MAC) to
     21        PLATFORM(COCOA)
     22        * UIProcess/Network/NetworkProcessProxy.cpp:
     23        (WebKit::NetworkProcessProxy::networkProcessCrashedOrFailedToLaunch): Changed PLATFORM(MAC)
     24        to OS(DARWIN).
     25        (WebKit::NetworkProcessProxy::didCreateNetworkConnectionToWebProcess): Ditto.
     26        (WebKit::NetworkProcessProxy::didFinishLaunching): Changed PLATFORM(MAC) to PLATFORM(COCOA)
     27        around process suppression call.
     28        * UIProcess/Network/NetworkProcessProxy.h: Ditto.
     29        * UIProcess/PageClient.h: Changed PLATFORM(MAC) to PLATFORM(COCOA).
     30        * UIProcess/Plugins/PluginInfoStore.cpp: Ditto.
     31        * UIProcess/Plugins/PluginProcessManager.h: Ditto.
     32        * UIProcess/Plugins/PluginProcessProxy.cpp:
     33        (WebKit::PluginProcessProxy::PluginProcessProxy): Ditto.
     34        (WebKit::PluginProcessProxy::pluginProcessCrashedOrFailedToLaunch): Changed PLATFORM(MAC)
     35        to OS(DARWIN).
     36        (WebKit::PluginProcessProxy::didClose): Changed PLATFORM(MAC) to PLATFORM(COCOA).
     37        (WebKit::PluginProcessProxy::didFinishLaunching): Changed PLATFORM(MAC) to OS(DARWIN) around
     38        use of Mach-based IPC, and to PLATFORM(COCOA) around SetQOS.
     39        (WebKit::PluginProcessProxy::didCreateWebProcessConnection): Changed PLATFORM(MAC) to
     40        OS(DARWIN).
     41        * UIProcess/Plugins/PluginProcessProxy.h: Changed PLATFORM(MAC) to PLATFORM(COCOA).
     42        * UIProcess/Plugins/PluginProcessProxy.messages.in: Ditto.
     43        * UIProcess/TextChecker.h: Ditto.
     44        * UIProcess/WebContext.cpp: Ditto.
     45        (WebKit::WebContext::ensureNetworkProcess):
     46        (WebKit::WebContext::createNewWebProcess):
     47        (WebKit::WebContext::setHTTPPipeliningEnabled):
     48        (WebKit::WebContext::httpPipeliningEnabled):
     49        (WebKit::WebContext::pluginInfoStoreDidLoadPlugins):
     50        * UIProcess/WebContext.h: Ditto.
     51        * UIProcess/WebContext.messages.in: Ditto.
     52        * UIProcess/WebContextUserMessageCoders.h: Ditto.
     53        (WebKit::WebContextUserMessageEncoder::encode):
     54        (WebKit::WebContextUserMessageDecoder::decode):
     55        * UIProcess/WebCookieManagerProxy.cpp: Ditto.
     56        (WebKit::WebCookieManagerProxy::setHTTPCookieAcceptPolicy):
     57        * UIProcess/WebCookieManagerProxy.h: Ditto.
     58        * UIProcess/WebFormSubmissionListenerProxy.h: Ditto.
     59        * UIProcess/WebFramePolicyListenerProxy.h: Ditto.
     60        * UIProcess/WebInspectorProxy.h: Added !PLATFORM(IOS) around members reltated to managing
     61        the inspector window and its view.
     62        * UIProcess/WebPageProxy.cpp: Changed PLATFORM(MAC) to PLATFORM(COCOA).
     63        (WebKit::WebPageProxy::WebPageProxy):
     64        (WebKit::WebPageProxy::initializeWebPage):
     65        (WebKit::WebPageProxy::recordNavigationSnapshot):
     66        (WebKit::WebPageProxy::canShowMIMEType):
     67        (WebKit::canCoalesce):
     68        (WebKit::coalesce):
     69        (WebKit::WebPageProxy::findPlugin):
     70        (WebKit::WebPageProxy::editorStateChanged):
     71        (WebKit::WebPageProxy::contextMenuItemSelected):
     72        (WebKit::WebPageProxy::didReceiveEvent):
     73        (WebKit::WebPageProxy::didBlockInsecurePluginVersion):
     74        * UIProcess/WebPageProxy.h: Ditto.
     75        * UIProcess/WebPageProxy.messages.in: Ditto.
     76        * UIProcess/WebProcessProxy.cpp: Ditto.
     77        (WebKit::WebProcessProxy::WebProcessProxy):
     78        (WebKit::WebProcessProxy::createWebPage):
     79        (WebKit::WebProcessProxy::addExistingWebPage):
     80        (WebKit::WebProcessProxy::removeWebPage):
     81        (WebKit::WebProcessProxy::didFinishLaunching):
     82        (WebKit::WebProcessProxy::pageSuppressibilityChanged):
     83        (WebKit::WebProcessProxy::pagePreferencesChanged):
     84        * UIProcess/WebProcessProxy.h: Ditto.
     85        * UIProcess/cf/WebPreferencesCF.cpp: Removed this file which was not used in any
     86        configuration.
     87        * UIProcess/ios/WebInspectorProxyIOS.mm: Removed functions that no longer need to be
     88        implemented for iOS.
     89        * WebKit2.xcodeproj/project.pbxproj: Removed reference to WebPreferencesCF.cpp.
     90
    1912014-02-15  Jeremy Jones  <jeremyj@apple.com>
    292
  • trunk/Source/WebKit2/UIProcess/API/C/WKPage.cpp

    r164132 r164172  
    15871587}
    15881588
    1589 #if PLATFORM(MAC)
     1589#if PLATFORM(COCOA)
    15901590struct ComputedPagesContext {
    15911591    ComputedPagesContext(WKPageComputePagesForPrintingFunction callback, void* context)
  • trunk/Source/WebKit2/UIProcess/Databases/DatabaseProcessProxy.cpp

    r161148 r164172  
    9393    RefPtr<Messages::WebProcessProxy::GetDatabaseProcessConnection::DelayedReply> reply = m_pendingConnectionReplies.takeFirst();
    9494
    95 #if PLATFORM(MAC)
     95#if OS(DARWIN)
    9696    reply->send(IPC::Attachment(connectionIdentifier.port(), MACH_MSG_TYPE_MOVE_SEND));
    9797#else
  • trunk/Source/WebKit2/UIProcess/DrawingAreaProxy.cpp

    r162730 r164172  
    4040    , m_webPageProxy(webPageProxy)
    4141    , m_size(webPageProxy->viewSize())
    42 #if PLATFORM(MAC)
     42#if PLATFORM(COCOA)
    4343    , m_exposedRectChangedTimer(this, &DrawingAreaProxy::exposedRectChangedTimerFired)
    4444#endif
     
    6363}
    6464
    65 #if PLATFORM(MAC)
     65#if PLATFORM(COCOA)
    6666void DrawingAreaProxy::setExposedRect(const FloatRect& exposedRect)
    6767{
  • trunk/Source/WebKit2/UIProcess/DrawingAreaProxy.h

    r163837 r164172  
    7474    virtual void commitTransientZoom(double, WebCore::FloatPoint) { }
    7575
    76 #if PLATFORM(MAC)
     76#if PLATFORM(COCOA)
    7777    virtual void setExposedRect(const WebCore::FloatRect&);
    7878    WebCore::FloatRect exposedRect() const { return m_exposedRect; }
     
    108108    virtual void exitAcceleratedCompositingMode(uint64_t /* backingStoreStateID */, const UpdateInfo&) { }
    109109    virtual void updateAcceleratedCompositingMode(uint64_t /* backingStoreStateID */, const LayerTreeContext&) { }
    110 #if PLATFORM(MAC)
     110#if PLATFORM(COCOA)
    111111    virtual void didUpdateGeometry() { }
    112112    virtual void intrinsicContentSizeDidChange(const WebCore::IntSize& newIntrinsicContentSize) { }
  • trunk/Source/WebKit2/UIProcess/DrawingAreaProxy.messages.in

    r163079 r164172  
    2828    UpdateAcceleratedCompositingMode(uint64_t backingStoreStateID, WebKit::LayerTreeContext context)
    2929
    30 #if PLATFORM(MAC)
     30#if PLATFORM(COCOA)
    3131    // Used by TiledCoreAnimationDrawingAreaProxy.
    3232    DidUpdateGeometry()
  • trunk/Source/WebKit2/UIProcess/Launcher/ProcessLauncher.cpp

    r161148 r164172  
    5555    if (!m_client) {
    5656        // FIXME: Make Identifier a move-only object and release port rights/connections in the destructor.
    57 #if PLATFORM(MAC)
     57#if OS(DARWIN)
    5858        if (identifier.port)
    5959            mach_port_mod_refs(mach_task_self(), identifier.port, MACH_PORT_RIGHT_RECEIVE, -1);
  • trunk/Source/WebKit2/UIProcess/Launcher/ProcessLauncher.h

    r161148 r164172  
    6262        ProcessType processType;
    6363        HashMap<String, String> extraInitializationData;
    64 #if PLATFORM(MAC)
     64#if OS(DARWIN)
    6565        static const cpu_type_t MatchCurrentArchitecture = 0;
    6666        cpu_type_t architecture;
  • trunk/Source/WebKit2/UIProcess/Network/CustomProtocols/CustomProtocolManagerProxy.h

    r162449 r164172  
    3131#include "MessageReceiver.h"
    3232
    33 #if PLATFORM(MAC)
     33#if PLATFORM(COCOA)
    3434#include <wtf/HashMap.h>
    3535#include <wtf/RetainPtr.h>
     
    6060    WebContext& m_webContext;
    6161
    62 #if PLATFORM(MAC)
     62#if PLATFORM(COCOA)
    6363    typedef HashMap<uint64_t, RetainPtr<WKCustomProtocolLoader>> LoaderMap;
    6464    LoaderMap m_loaderMap;
  • trunk/Source/WebKit2/UIProcess/Network/NetworkProcessProxy.cpp

    r162449 r164172  
    110110        RefPtr<Messages::WebProcessProxy::GetNetworkProcessConnection::DelayedReply> reply = m_pendingConnectionReplies.takeFirst();
    111111
    112 #if PLATFORM(MAC)
     112#if OS(DARWIN)
    113113        reply->send(IPC::Attachment(0, MACH_MSG_TYPE_MOVE_SEND));
    114114#elif USE(UNIX_DOMAIN_SOCKETS)
     
    162162    RefPtr<Messages::WebProcessProxy::GetNetworkProcessConnection::DelayedReply> reply = m_pendingConnectionReplies.takeFirst();
    163163
    164 #if PLATFORM(MAC)
     164#if OS(DARWIN)
    165165    reply->send(IPC::Attachment(connectionIdentifier.port(), MACH_MSG_TYPE_MOVE_SEND));
    166166#elif USE(UNIX_DOMAIN_SOCKETS)
     
    194194    m_numPendingConnectionRequests = 0;
    195195
    196 #if PLATFORM(MAC)
     196#if PLATFORM(COCOA)
    197197    if (m_webContext.processSuppressionEnabled())
    198198        setProcessSuppressionEnabled(true);
  • trunk/Source/WebKit2/UIProcess/Network/NetworkProcessProxy.h

    r162139 r164172  
    5858    DownloadProxy* createDownloadProxy();
    5959
    60 #if PLATFORM(MAC)
     60#if PLATFORM(COCOA)
    6161    void setProcessSuppressionEnabled(bool);
    6262#endif
  • trunk/Source/WebKit2/UIProcess/PageClient.h

    r163908 r164172  
    3535#include <wtf/Forward.h>
    3636
    37 #if PLATFORM(MAC)
     37#if PLATFORM(COCOA)
    3838#include "PluginComplexTextInputState.h"
    3939
     
    7373#endif
    7474
    75 #if PLATFORM(MAC)
     75#if PLATFORM(COCOA)
    7676struct ColorSpaceData;
    7777#endif
     
    167167    virtual bool canUndoRedo(WebPageProxy::UndoOrRedo) = 0;
    168168    virtual void executeUndoRedo(WebPageProxy::UndoOrRedo) = 0;
    169 #if PLATFORM(MAC)
     169#if PLATFORM(COCOA)
    170170    virtual void accessibilityWebProcessTokenReceived(const IPC::DataReference&) = 0;
    171171    virtual bool interpretKeyEvent(const NativeWebKeyboardEvent&, Vector<WebCore::KeypressCommand>&) = 0;
     
    237237#endif // USE(DICTATION_ALTERNATIVES)
    238238#endif // USE(APPKIT)
    239 #endif // PLATFORM(MAC)
     239#endif // !PLATFORM(IOS) && PLATFORM(MAC)
    240240
    241241#if PLATFORM(IOS)
  • trunk/Source/WebKit2/UIProcess/Plugins/PluginInfoStore.cpp

    r160572 r164172  
    172172}
    173173
    174 #if !PLATFORM(MAC)
     174#if !PLATFORM(COCOA)
    175175PluginModuleLoadPolicy PluginInfoStore::defaultLoadPolicyForPlugin(const PluginModuleInfo&)
    176176{
  • trunk/Source/WebKit2/UIProcess/Plugins/PluginProcessManager.h

    r161307 r164172  
    6464    void clearSiteData(const PluginModuleInfo&, WebPluginSiteDataManager*, const Vector<String>& sites, uint64_t flags, uint64_t maxAgeInSeconds, uint64_t callbackID);
    6565
    66 #if PLATFORM(MAC)
     66#if PLATFORM(COCOA)
    6767    void setProcessSuppressionEnabled(bool);
    6868#endif
  • trunk/Source/WebKit2/UIProcess/Plugins/PluginProcessProxy.cpp

    r162578 r164172  
    4040#include <wtf/RunLoop.h>
    4141
    42 #if PLATFORM(MAC)
     42#if OS(DARWIN)
    4343#include "MachPort.h"
    4444#endif
     
    6464    , m_pluginProcessToken(pluginProcessToken)
    6565    , m_numPendingConnectionRequests(0)
    66 #if PLATFORM(MAC)
     66#if PLATFORM(COCOA)
    6767    , m_modalWindowIsShowing(false)
    6868    , m_fullscreenWindowIsShowing(false)
     
    138138        RefPtr<Messages::WebProcessProxy::GetPluginProcessConnection::DelayedReply> reply = m_pendingConnectionReplies.takeFirst();
    139139
    140 #if PLATFORM(MAC)
     140#if OS(DARWIN)
    141141        reply->send(IPC::Attachment(0, MACH_MSG_TYPE_MOVE_SEND), false);
    142142#elif USE(UNIX_DOMAIN_SOCKETS)
     
    159159void PluginProcessProxy::didClose(IPC::Connection*)
    160160{
    161 #if PLATFORM(MAC)
     161#if PLATFORM(COCOA)
    162162    if (m_modalWindowIsShowing)
    163163        endModal();
     
    189189
    190190    m_connection = IPC::Connection::createServerConnection(connectionIdentifier, this, RunLoop::main());
    191 #if PLATFORM(MAC)
     191#if OS(DARWIN)
    192192    m_connection->setShouldCloseConnectionOnMachExceptions();
    193193#endif
     
    209209    m_connection->send(Messages::PluginProcess::InitializePluginProcess(parameters), 0);
    210210
    211 #if PLATFORM(MAC)
     211#if PLATFORM(COCOA)
    212212    m_connection->send(Messages::PluginProcess::SetQOS(pluginProcessLatencyQOS(), pluginProcessThroughputQOS()), 0);
    213213#endif
     
    229229    m_numPendingConnectionRequests = 0;
    230230
    231 #if PLATFORM(MAC)
     231#if PLATFORM(COCOA)
    232232    if (WebContext::processSuppressionIsEnabledForAllContexts())
    233233        setProcessSuppressionEnabled(true);
     
    242242    RefPtr<Messages::WebProcessProxy::GetPluginProcessConnection::DelayedReply> reply = m_pendingConnectionReplies.takeFirst();
    243243
    244 #if PLATFORM(MAC)
     244#if OS(DARWIN)
    245245    reply->send(IPC::Attachment(connectionIdentifier.port(), MACH_MSG_TYPE_MOVE_SEND), supportsAsynchronousPluginInitialization);
    246246#elif USE(UNIX_DOMAIN_SOCKETS)
  • trunk/Source/WebKit2/UIProcess/Plugins/PluginProcessProxy.h

    r162578 r164172  
    3838#include <wtf/Deque.h>
    3939
    40 #if PLATFORM(MAC)
     40#if PLATFORM(COCOA)
    4141#include <wtf/RetainPtr.h>
    4242OBJC_CLASS NSObject;
     
    6464#endif
    6565
    66 #if PLATFORM(MAC)
     66#if PLATFORM(COCOA)
    6767int pluginProcessLatencyQOS();
    6868int pluginProcessThroughputQOS();
     
    8989    bool isValid() const { return m_connection; }
    9090
    91 #if PLATFORM(MAC)
     91#if PLATFORM(COCOA)
    9292    void setProcessSuppressionEnabled(bool);
    9393
     
    126126    void didClearSiteData(uint64_t callbackID);
    127127
    128 #if PLATFORM(MAC)
     128#if PLATFORM(COCOA)
    129129    bool getPluginProcessSerialNumber(ProcessSerialNumber&);
    130130    void makePluginProcessTheFrontProcess();
     
    176176    unsigned m_numPendingConnectionRequests;
    177177
    178 #if PLATFORM(MAC)
     178#if PLATFORM(COCOA)
    179179    RetainPtr<NSObject> m_activationObserver;
    180180    RetainPtr<WKPlaceholderModalWindow *> m_placeholderWindow;
  • trunk/Source/WebKit2/UIProcess/Plugins/PluginProcessProxy.messages.in

    r161148 r164172  
    2929    DidClearSiteData(uint64_t callbackID)
    3030
    31 #if PLATFORM(MAC)
     31#if PLATFORM(COCOA)
    3232    SetModalWindowIsShowing(bool modalWindowIsShowing)
    3333    SetFullscreenWindowIsShowing(bool fullscreenWindowIsShowing)
  • trunk/Source/WebKit2/UIProcess/TextChecker.h

    r163860 r164172  
    4444    static void setGrammarCheckingEnabled(bool);
    4545
    46 #if PLATFORM(MAC)
     46#if PLATFORM(COCOA)
    4747    static void setAutomaticSpellingCorrectionEnabled(bool);
    4848    static void setAutomaticQuoteSubstitutionEnabled(bool);
  • trunk/Source/WebKit2/UIProcess/WebContext.cpp

    r163959 r164172  
    212212}
    213213
    214 #if !PLATFORM(MAC)
     214#if !PLATFORM(COCOA)
    215215void WebContext::platformInitialize()
    216216{
     
    394394    m_networkProcess->send(Messages::NetworkProcess::InitializeNetworkProcess(parameters), 0);
    395395
    396 #if PLATFORM(MAC)
     396#if PLATFORM(COCOA)
    397397    m_networkProcess->send(Messages::NetworkProcess::SetQOS(networkProcessLatencyQOS(), networkProcessThroughputQOS()), 0);
    398398#endif
     
    616616    process->send(Messages::WebProcess::InitializeWebProcess(parameters, WebContextUserMessageEncoder(injectedBundleInitializationUserData.get(), *process)), 0);
    617617
    618 #if PLATFORM(MAC)
     618#if PLATFORM(COCOA)
    619619    process->send(Messages::WebProcess::SetQOS(webProcessLatencyQOS(), webProcessThroughputQOS()), 0);
    620620#endif
     
    12081208void WebContext::setHTTPPipeliningEnabled(bool enabled)
    12091209{
    1210 #if PLATFORM(MAC)
     1210#if PLATFORM(COCOA)
    12111211    ResourceRequest::setHTTPPipeliningEnabled(enabled);
    12121212#else
     
    12171217bool WebContext::httpPipeliningEnabled() const
    12181218{
    1219 #if PLATFORM(MAC)
     1219#if PLATFORM(COCOA)
    12201220    return ResourceRequest::httpPipeliningEnabled();
    12211221#else
     
    12781278}
    12791279
    1280 #if !PLATFORM(MAC)
     1280#if !PLATFORM(COCOA)
    12811281void WebContext::dummy(bool&)
    12821282{
     
    13731373        map.set(ASCIILiteral("mimes"), API::Array::create(std::move(mimeTypes)));
    13741374
    1375 #if PLATFORM(MAC)
     1375#if PLATFORM(COCOA)
    13761376        map.set(ASCIILiteral("bundleId"), API::String::create(pluginModule.bundleIdentifier));
    13771377        map.set(ASCIILiteral("version"), API::String::create(pluginModule.versionString));
  • trunk/Source/WebKit2/UIProcess/WebContext.h

    r163671 r164172  
    6262#endif
    6363
    64 #if PLATFORM(MAC)
     64#if PLATFORM(COCOA)
    6565OBJC_CLASS NSObject;
    6666OBJC_CLASS NSString;
     
    8787#endif
    8888
    89 #if PLATFORM(MAC)
     89#if PLATFORM(COCOA)
    9090int networkProcessLatencyQOS();
    9191int networkProcessThroughputQOS();
     
    263263    void setJavaScriptGarbageCollectorTimerEnabled(bool flag);
    264264
    265 #if PLATFORM(MAC)
     265#if PLATFORM(COCOA)
    266266    static bool omitPDFSupport();
    267267#endif
     
    294294#endif
    295295
    296 #if PLATFORM(MAC)
     296#if PLATFORM(COCOA)
    297297    bool processSuppressionEnabled() const;
    298298    static bool processSuppressionIsEnabledForAllContexts();
     
    328328#endif
    329329
    330 #if PLATFORM(MAC)
     330#if PLATFORM(COCOA)
    331331    void updateProcessSuppressionState() const;
    332332#endif
     
    349349#endif
    350350
    351 #if PLATFORM(MAC)
    352351#if PLATFORM(IOS)
    353352    void writeWebContentToPasteboard(const WebCore::PasteboardWebContent&);
     
    359358    void getPasteboardItemsCount(uint64_t& itemsCount);
    360359#endif
     360#if PLATFORM(COCOA)
    361361    void getPasteboardTypes(const String& pasteboardName, Vector<String>& pasteboardTypes);
    362362    void getPasteboardPathnamesForType(const String& pasteboardName, const String& pasteboardType, Vector<String>& pathnames);
     
    375375#endif
    376376
    377 #if !PLATFORM(MAC)
     377#if !PLATFORM(COCOA)
    378378    // FIXME: This a dummy message, to avoid breaking the build for platforms that don't require
    379379    // any synchronous messages, and should be removed when <rdar://problem/8775115> is fixed.
     
    407407    String platformDefaultCookieStorageDirectory() const;
    408408
    409 #if PLATFORM(MAC)
     409#if PLATFORM(COCOA)
    410410    void registerNotificationObservers();
    411411    void unregisterNotificationObservers();
     
    486486#endif
    487487
    488 #if PLATFORM(MAC)
     488#if PLATFORM(MAC) && !PLATFORM(IOS)
    489489    RetainPtr<NSObject> m_enhancedAccessibilityObserver;
    490490    RetainPtr<NSObject> m_automaticTextReplacementNotificationObserver;
    491491    RetainPtr<NSObject> m_automaticSpellingCorrectionNotificationObserver;
    492 #if !PLATFORM(IOS) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 1090
     492#if __MAC_OS_X_VERSION_MIN_REQUIRED >= 1090
    493493    RetainPtr<NSObject> m_automaticQuoteSubstitutionNotificationObserver;
    494494    RetainPtr<NSObject> m_automaticDashSubstitutionNotificationObserver;
  • trunk/Source/WebKit2/UIProcess/WebContext.messages.in

    r160022 r164172  
    3838#endif
    3939
    40 #if PLATFORM(MAC)
     40#if PLATFORM(COCOA)
    4141    # Pasteboard messages.
    4242    GetPasteboardTypes(String pasteboardName) -> (Vector<String> types)
     
    5656#endif
    5757
    58 #if !PLATFORM(MAC)
     58#if !PLATFORM(COCOA)
    5959    // FIXME: This a dummy message, to avoid breaking the build for platforms that don't require
    6060    // any synchronous messages, and should be removed when <rdar://problem/8775115> is fixed.
  • trunk/Source/WebKit2/UIProcess/WebContextUserMessageCoders.h

    r161148 r164172  
    3131#include "WebPageProxy.h"
    3232
    33 #if PLATFORM(MAC)
     33#if PLATFORM(COCOA)
    3434#include "ObjCObjectGraphCoders.h"
    3535#endif
     
    8080            break;
    8181        }
    82 #if PLATFORM(MAC)
     82#if PLATFORM(COCOA)
    8383        case API::Object::Type::ObjCObjectGraph: {
    8484            ObjCObjectGraph* objectGraph = static_cast<ObjCObjectGraph*>(m_root);
     
    149149            break;
    150150        }
    151 #if PLATFORM(MAC)
     151#if PLATFORM(COCOA)
    152152        case API::Object::Type::ObjCObjectGraph: {
    153153            RefPtr<ObjCObjectGraph> objectGraph;
  • trunk/Source/WebKit2/UIProcess/WebCookieManagerProxy.cpp

    r160464 r164172  
    147147void WebCookieManagerProxy::setHTTPCookieAcceptPolicy(HTTPCookieAcceptPolicy policy)
    148148{
    149 #if PLATFORM(MAC)
     149#if PLATFORM(COCOA)
    150150    persistHTTPCookieAcceptPolicy(policy);
    151151#endif
  • trunk/Source/WebKit2/UIProcess/WebCookieManagerProxy.h

    r162139 r164172  
    9898    virtual void didReceiveMessage(IPC::Connection*, IPC::MessageDecoder&) override;
    9999
    100 #if PLATFORM(MAC)
     100#if PLATFORM(COCOA)
    101101    void persistHTTPCookieAcceptPolicy(HTTPCookieAcceptPolicy);
    102102#endif
  • trunk/Source/WebKit2/UIProcess/WebFormSubmissionListenerProxy.h

    r159197 r164172  
    2929#include "WebFrameListenerProxy.h"
    3030
    31 #if PLATFORM(MAC)
     31#if PLATFORM(COCOA)
    3232#include "WKFoundation.h"
    3333#endif
    3434
    35 #define DELEGATE_REF_COUNTING_TO_COCOA (PLATFORM(MAC) && WK_API_ENABLED)
     35#define DELEGATE_REF_COUNTING_TO_COCOA (PLATFORM(COCOA) && WK_API_ENABLED)
    3636
    3737namespace WebKit {
  • trunk/Source/WebKit2/UIProcess/WebFramePolicyListenerProxy.h

    r159197 r164172  
    2929#include "WebFrameListenerProxy.h"
    3030
    31 #if PLATFORM(MAC)
     31#if PLATFORM(COCOA)
    3232#include "WKFoundation.h"
    3333#endif
    3434
    35 #define DELEGATE_REF_COUNTING_TO_COCOA (PLATFORM(MAC) && WK_API_ENABLED)
     35#define DELEGATE_REF_COUNTING_TO_COCOA (PLATFORM(COCOA) && WK_API_ENABLED)
    3636
    3737namespace WebKit {
  • trunk/Source/WebKit2/UIProcess/WebInspectorProxy.h

    r162139 r164172  
    3737#include <wtf/text/WTFString.h>
    3838
    39 #if PLATFORM(MAC)
     39#if PLATFORM(MAC) && !PLATFORM(IOS)
    4040#include "WKGeometry.h"
    4141#include <wtf/HashMap.h>
     
    9494    void close();
    9595   
    96 #if PLATFORM(MAC)
     96#if PLATFORM(MAC) && !PLATFORM(IOS)
    9797    void createInspectorWindow();
    9898    void updateInspectorWindowTitle() const;
     
    225225    AttachmentSide m_attachmentSide;
    226226
    227 #if PLATFORM(MAC)
     227#if PLATFORM(MAC) && !PLATFORM(IOS)
    228228    RetainPtr<WKWebInspectorWKView> m_inspectorView;
    229229    RetainPtr<NSWindow> m_inspectorWindow;
  • trunk/Source/WebKit2/UIProcess/WebPageProxy.cpp

    r164132 r164172  
    129129#endif
    130130
    131 #if PLATFORM(MAC)
     131#if PLATFORM(COCOA)
    132132#include "ViewSnapshotStore.h"
    133133#endif
     
    305305    , m_session(*configuration.session)
    306306    , m_isPageSuspended(false)
    307 #if PLATFORM(MAC)
     307#if PLATFORM(COCOA)
    308308    , m_isSmartInsertDeleteEnabled(TextChecker::isSmartInsertDeleteEnabled())
    309309#endif
     
    574574    process().send(Messages::WebProcess::CreateWebPage(m_pageID, creationParameters()), 0);
    575575
    576 #if PLATFORM(MAC)
     576#if PLATFORM(COCOA)
    577577    send(Messages::WebPage::SetSmartInsertDeleteEnabled(m_isSmartInsertDeleteEnabled));
    578578#endif
     
    784784        return;
    785785
    786 #if PLATFORM(MAC)
     786#if PLATFORM(COCOA)
    787787    ViewSnapshotStore::shared().recordSnapshot(*this);
    788788#endif
     
    888888#endif // ENABLE(NETSCAPE_PLUGIN_API)
    889889
    890 #if PLATFORM(MAC)
     890#if PLATFORM(COCOA)
    891891    // On Mac, we can show PDFs.
    892892    if (MIMETypeRegistry::isPDFOrPostScriptMIMEType(mimeType) && !WebContext::omitPDFSupport())
    893893        return true;
    894 #endif // PLATFORM(MAC)
     894#endif // PLATFORM(COCOA)
    895895
    896896    return false;
     
    12221222    if (a.granularity() != b.granularity())
    12231223        return false;
    1224 #if PLATFORM(MAC)
     1224#if PLATFORM(COCOA)
    12251225    if (a.phase() != b.phase())
    12261226        return false;
     
    12411241    FloatSize mergedWheelTicks = a.wheelTicks() + b.wheelTicks();
    12421242
    1243 #if PLATFORM(MAC)
     1243#if PLATFORM(COCOA)
    12441244    FloatSize mergedUnacceleratedScrollingDelta = a.unacceleratedScrollingDelta() + b.unacceleratedScrollingDelta();
    12451245
     
    13731373    pluginLoadPolicy = PluginInfoStore::defaultLoadPolicyForPlugin(plugin);
    13741374
    1375 #if PLATFORM(MAC)
     1375#if PLATFORM(COCOA)
    13761376    RefPtr<ImmutableDictionary> pluginInformation = createPluginInformationDictionary(plugin, frameURLString, String(), pageURLString, String(), String());
    13771377    pluginLoadPolicy = m_loaderClient->pluginLoadPolicy(this, static_cast<PluginModuleLoadPolicy>(pluginLoadPolicy), pluginInformation.get(), unavailabilityDescription);
     
    30413041void WebPageProxy::editorStateChanged(const EditorState& editorState)
    30423042{
    3043 #if PLATFORM(MAC)
     3043#if PLATFORM(COCOA)
    30443044    bool couldChangeSecureInputState = m_editorState.isInPasswordField != editorState.isInPasswordField || m_editorState.selectionIsNone;
    30453045    bool closedComposition = !editorState.shouldIgnoreCompositionSelectionChange && !editorState.hasComposition && (m_editorState.hasComposition || m_temporarilyClosedComposition);
     
    30493049    m_editorState = editorState;
    30503050
    3051 #if PLATFORM(MAC)
     3051#if PLATFORM(COCOA)
    30523052    // Selection being none is a temporary state when editing. Flipping secure input state too quickly was causing trouble (not fully understood).
    30533053    if (couldChangeSecureInputState && !editorState.selectionIsNone)
     
    32833283    }
    32843284
    3285 #if PLATFORM(MAC)
     3285#if PLATFORM(COCOA)
    32863286    if (item.action() == ContextMenuItemTagSmartCopyPaste) {
    32873287        setSmartInsertDeleteEnabled(!isSmartInsertDeleteEnabled());
     
    35853585            if (m_uiClient->implementsDidNotHandleWheelEvent())
    35863586                m_uiClient->didNotHandleWheelEvent(this, oldestCoalescedEvent->last());
    3587 #if PLATFORM(MAC)
     3587#if PLATFORM(COCOA)
    35883588            m_pageClient.wheelEventWasNotHandledByWebCore(oldestCoalescedEvent->last());
    35893589#endif
     
    41834183    RefPtr<ImmutableDictionary> pluginInformation;
    41844184
    4185 #if PLATFORM(MAC) && ENABLE(NETSCAPE_PLUGIN_API)
     4185#if PLATFORM(COCOA) && ENABLE(NETSCAPE_PLUGIN_API)
    41864186    String newMimeType = mimeType;
    41874187    PluginModuleInfo plugin = m_process->context().pluginInfoStore().findPlugin(newMimeType, URL(URL(), pluginURLString));
     
    42584258}
    42594259
    4260 #if PLATFORM(MAC)
     4260#if PLATFORM(COCOA)
    42614261void WebPageProxy::drawRectToImage(WebFrameProxy* frame, const PrintInfo& printInfo, const IntRect& rect, const WebCore::IntSize& imageSize, PassRefPtr<ImageCallback> prpCallback)
    42624262{
     
    44134413#endif // !PLATFORM(IOS) && PLATFORM(MAC)
    44144414
    4415 #if PLATFORM(MAC)
     4415#if PLATFORM(COCOA)
    44164416RetainPtr<CGImageRef> WebPageProxy::takeViewSnapshot()
    44174417{
  • trunk/Source/WebKit2/UIProcess/WebPageProxy.h

    r164132 r164172  
    9494#endif
    9595
    96 #if PLATFORM(MAC)
     96#if PLATFORM(COCOA)
    9797#include <WebCore/PlatformLayer.h>
    9898#endif
     
    497497#endif
    498498
    499 #if PLATFORM(MAC)
     499#if PLATFORM(COCOA)
    500500    void windowAndViewFramesChanged(const WebCore::FloatRect& viewFrameInWindowCoordinates, const WebCore::FloatPoint& accessibilityViewCoordinates);
    501501    void setMainFrameIsScrollable(bool);
     
    524524    void intrinsicContentSizeDidChange(const WebCore::IntSize& intrinsicContentSize);
    525525#endif
    526 #endif // PLATFORM(MAC)
     526#endif // PLATFORM(COCOA)
    527527#if PLATFORM(EFL)
    528528    void handleInputMethodKeydown(bool& handled);
     
    633633    unsigned pageCount() const { return m_pageCount; }
    634634
    635 #if PLATFORM(MAC)
     635#if PLATFORM(COCOA)
    636636    // Called by the web process through a message.
    637637    void registerWebProcessAccessibilityToken(const IPC::DataReference&);
     
    684684    void drawFooter(WebFrameProxy*, const WebCore::FloatRect&);
    685685
    686 #if PLATFORM(MAC)
     686#if PLATFORM(COCOA)
    687687    // Dictionary.
    688688    void performDictionaryLookupAtLocation(const WebCore::FloatPoint&);
     
    702702    void didPerformDragControllerAction(WebCore::DragSession);
    703703    void dragEnded(const WebCore::IntPoint& clientPosition, const WebCore::IntPoint& globalPosition, uint64_t operation);
    704 #if PLATFORM(MAC)
     704#if PLATFORM(COCOA)
    705705    void setDragImage(const WebCore::IntPoint& clientPosition, const ShareableBitmap::Handle& dragImageHandle, bool isLinkDrag);
    706706    void setPromisedData(const String& pasteboardName, const SharedMemory::Handle& imageHandle, uint64_t imageSize, const String& filename, const String& extension,
     
    729729    void registerEditCommand(PassRefPtr<WebEditCommandProxy>, UndoOrRedo);
    730730
    731 #if PLATFORM(MAC)
     731#if PLATFORM(COCOA)
    732732    void registerKeypressCommandName(const String& name) { m_knownKeypressCommandNames.add(name); }
    733733    bool isValidKeypressCommandName(const String& name) const { return m_knownKeypressCommandNames.contains(name); }
     
    783783#endif
    784784
    785 #if PLATFORM(MAC)
     785#if PLATFORM(COCOA)
    786786    bool isSmartInsertDeleteEnabled() const { return m_isSmartInsertDeleteEnabled; }
    787787    void setSmartInsertDeleteEnabled(bool);
     
    798798    void endPrinting();
    799799    void computePagesForPrinting(WebFrameProxy*, const PrintInfo&, PassRefPtr<ComputedPagesCallback>);
    800 #if PLATFORM(MAC)
     800#if PLATFORM(COCOA)
    801801    void drawRectToImage(WebFrameProxy*, const PrintInfo&, const WebCore::IntRect&, const WebCore::IntSize&, PassRefPtr<ImageCallback>);
    802802    void drawPagesToPDF(WebFrameProxy*, const PrintInfo&, uint32_t first, uint32_t count, PassRefPtr<DataCallback>);
     
    807807    PageLoadState& pageLoadState() { return m_pageLoadState; }
    808808
    809 #if PLATFORM(MAC)
     809#if PLATFORM(COCOA)
    810810    void handleAlternativeTextUIResult(const String& result);
    811811#endif
     
    813813    void saveDataToFileInDownloadsFolder(const String& suggestedFilename, const String& mimeType, const String& originatingURLString, API::Data*);
    814814    void savePDFToFileInDownloadsFolder(const String& suggestedFilename, const String& originatingURLString, const IPC::DataReference&);
    815 #if PLATFORM(MAC)
     815#if PLATFORM(COCOA)
    816816    void savePDFToTemporaryFolderAndOpenWithNativeApplicationRaw(const String& suggestedFilename, const String& originatingURLString, const uint8_t* data, unsigned long size, const String& pdfUUID);
    817817    void savePDFToTemporaryFolderAndOpenWithNativeApplication(const String& suggestedFilename, const String& originatingURLString, const IPC::DataReference&, const String& pdfUUID);
     
    884884    void recordNavigationSnapshot();
    885885
    886 #if PLATFORM(MAC)
     886#if PLATFORM(COCOA)
    887887    RetainPtr<CGImageRef> takeViewSnapshot();
    888888#endif
     
    10461046
    10471047    // Keyboard handling
    1048 #if PLATFORM(MAC)
     1048#if PLATFORM(COCOA)
    10491049    void interpretQueuedKeyEvent(const EditorState&, bool& handled, Vector<WebCore::KeypressCommand>&);
    10501050    void executeSavedCommandBySelector(const String& selector, bool& handled);
     
    10731073    void loadRecentSearches(const String&, Vector<String>&);
    10741074
    1075 #if PLATFORM(MAC)
     1075#if PLATFORM(COCOA)
    10761076    // Speech.
    10771077    void getIsSpeaking(bool&);
     
    11351135    void didReceiveAuthenticationChallenge(uint64_t frameID, const WebCore::AuthenticationChallenge&, uint64_t challengeID);
    11361136
    1137 #if PLATFORM(MAC)
     1137#if PLATFORM(COCOA)
    11381138    void pluginFocusOrWindowFocusChanged(uint64_t pluginComplexTextInputIdentifier, bool pluginHasFocusAndWindowHasFocus);
    11391139    void setPluginComplexTextInputState(uint64_t pluginComplexTextInputIdentifier, uint64_t complexTextInputState);
     
    12611261    HashSet<WebEditCommandProxy*> m_editCommandSet;
    12621262
    1263 #if PLATFORM(MAC)
     1263#if PLATFORM(COCOA)
    12641264    HashSet<String> m_knownKeypressCommandNames;
    12651265#endif
     
    13581358    bool m_isPageSuspended;
    13591359
    1360 #if PLATFORM(MAC)
     1360#if PLATFORM(COCOA)
    13611361    bool m_isSmartInsertDeleteEnabled;
    13621362#endif
     
    14181418    bool m_waitingForDidUpdateViewState;
    14191419
    1420 #if PLATFORM(MAC)
     1420#if PLATFORM(COCOA)
    14211421    HashMap<String, String> m_temporaryPDFFiles;
    14221422#endif
  • trunk/Source/WebKit2/UIProcess/WebPageProxy.messages.in

    r163908 r164172  
    243243    DidPerformDragControllerAction(WebCore::DragSession dragSession)
    244244#endif
    245 #if PLATFORM(MAC) && ENABLE(DRAG_SUPPORT)
     245#if PLATFORM(COCOA) && ENABLE(DRAG_SUPPORT)
    246246    SetDragImage(WebCore::IntPoint clientPosition, WebKit::ShareableBitmap::Handle dragImage, bool linkDrag)
    247247    SetPromisedData(String pasteboardName, WebKit::SharedMemory::Handle imageHandle, uint64_t imageSize, String filename, String extension, String title, String url, String visibleURL, WebKit::SharedMemory::Handle archiveHandle, uint64_t archiveSize)
     
    251251#endif
    252252
    253 #if PLATFORM(MAC)
     253#if PLATFORM(COCOA)
    254254    # Dictionary support.
    255255    DidPerformDictionaryLookup(WebKit::AttributedString text, WebKit::DictionaryPopupInfo dictionaryPopupInfo)
     
    323323    SavePDFToFileInDownloadsFolder(String suggestedFilename, String originatingURLString, IPC::DataReference data)
    324324
    325 #if PLATFORM(MAC)
     325#if PLATFORM(COCOA)
    326326    SavePDFToTemporaryFolderAndOpenWithNativeApplication(String suggestedFilename, String originatingURLString, IPC::DataReference data, String pdfUUID)
    327327    OpenPDFFromTemporaryFolderWithNativeApplication(String pdfUUID)
  • trunk/Source/WebKit2/UIProcess/WebProcessProxy.cpp

    r163671 r164172  
    5353#include <wtf/text/WTFString.h>
    5454
    55 #if PLATFORM(MAC)
     55#if PLATFORM(COCOA)
    5656#include "PDFPlugin.h"
    5757#endif
     
    9393    , m_customProtocolManagerProxy(this, context)
    9494#endif
    95 #if PLATFORM(MAC)
     95#if PLATFORM(COCOA)
    9696    , m_processSuppressionEnabled(false)
    9797#endif
     
    175175    m_pageMap.set(pageID, webPage.get());
    176176    globalPageMap().set(pageID, webPage.get());
    177 #if PLATFORM(MAC)
     177#if PLATFORM(COCOA)
    178178    if (webPage->isProcessSuppressible())
    179179        m_processSuppressiblePages.add(pageID);
     
    187187    m_pageMap.set(pageID, webPage);
    188188    globalPageMap().set(pageID, webPage);
    189 #if PLATFORM(MAC)
     189#if PLATFORM(COCOA)
    190190    if (webPage->isProcessSuppressible())
    191191        m_processSuppressiblePages.add(pageID);
     
    198198    m_pageMap.remove(pageID);
    199199    globalPageMap().remove(pageID);
    200 #if PLATFORM(MAC)
     200#if PLATFORM(COCOA)
    201201    m_processSuppressiblePages.remove(pageID);
    202202    updateProcessSuppressionState();
     
    286286}
    287287
    288 #if !PLATFORM(MAC)
     288#if !PLATFORM(COCOA)
    289289bool WebProcessProxy::fullKeyboardAccessEnabled()
    290290{
     
    450450    m_context->processDidFinishLaunching(this);
    451451
    452 #if PLATFORM(MAC)
     452#if PLATFORM(COCOA)
    453453    updateProcessSuppressionState();
    454454#endif
     
    609609void WebProcessProxy::pageSuppressibilityChanged(WebKit::WebPageProxy *page)
    610610{
    611 #if PLATFORM(MAC)
     611#if PLATFORM(COCOA)
    612612    if (page->isProcessSuppressible())
    613613        m_processSuppressiblePages.add(page->pageID());
     
    622622void WebProcessProxy::pagePreferencesChanged(WebKit::WebPageProxy *page)
    623623{
    624 #if PLATFORM(MAC)
     624#if PLATFORM(COCOA)
    625625    if (page->isProcessSuppressible())
    626626        m_processSuppressiblePages.add(page->pageID());
  • trunk/Source/WebKit2/UIProcess/WebProcessProxy.h

    r163671 r164172  
    114114    void releasePageCache();
    115115
    116 #if PLATFORM(MAC)
     116#if PLATFORM(COCOA)
    117117    bool allPagesAreProcessSuppressible() const;
    118118    void updateProcessSuppressionState();
     
    206206#endif
    207207
    208 #if PLATFORM(MAC)
     208#if PLATFORM(COCOA)
    209209    HashSet<uint64_t> m_processSuppressiblePages;
    210210    bool m_processSuppressionEnabled;
  • trunk/Source/WebKit2/UIProcess/ios/WebInspectorProxyIOS.mm

    r159724 r164172  
    3232
    3333namespace WebKit {
    34 
    35 void WebInspectorProxy::createInspectorWindow()
    36 {
    37     notImplemented();
    38 }
    39 
    40 void WebInspectorProxy::updateInspectorWindowTitle() const
    41 {
    42     notImplemented();
    43 }
    4434
    4535WebPageProxy* WebInspectorProxy::platformCreateInspectorPage()
     
    8171
    8272void WebInspectorProxy::platformAppend(const String& suggestedURL, const String& content)
    83 {
    84     notImplemented();
    85 }
    86 
    87 void WebInspectorProxy::inspectedViewFrameDidChange(CGFloat)
    8873{
    8974    notImplemented();
  • trunk/Source/WebKit2/WebKit2.xcodeproj/project.pbxproj

    r164094 r164172  
    10311031                BC2D021712AC41CB00E732A3 /* SameDocumentNavigationType.h in Headers */ = {isa = PBXBuildFile; fileRef = BC2D021612AC41CB00E732A3 /* SameDocumentNavigationType.h */; };
    10321032                BC2D021912AC426C00E732A3 /* WKPageLoadTypes.h in Headers */ = {isa = PBXBuildFile; fileRef = BC2D021812AC426C00E732A3 /* WKPageLoadTypes.h */; settings = {ATTRIBUTES = (Private, ); }; };
    1033                 BC2DFBA312A761A500E732A3 /* WebPreferencesCF.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BC2DFBA212A761A500E732A3 /* WebPreferencesCF.cpp */; };
    10341033                BC2E6E8D1141971500A63B1E /* WorkQueue.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BC2E6E7D1141970C00A63B1E /* WorkQueue.cpp */; };
    10351034                BC2E6E8E1141971500A63B1E /* WorkQueue.h in Headers */ = {isa = PBXBuildFile; fileRef = BC2E6E7E1141970C00A63B1E /* WorkQueue.h */; };
     
    27912790                BC2D021612AC41CB00E732A3 /* SameDocumentNavigationType.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SameDocumentNavigationType.h; sourceTree = "<group>"; };
    27922791                BC2D021812AC426C00E732A3 /* WKPageLoadTypes.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WKPageLoadTypes.h; sourceTree = "<group>"; };
    2793                 BC2DFBA212A761A500E732A3 /* WebPreferencesCF.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = WebPreferencesCF.cpp; path = cf/WebPreferencesCF.cpp; sourceTree = "<group>"; };
    27942792                BC2E6E7D1141970C00A63B1E /* WorkQueue.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = WorkQueue.cpp; sourceTree = "<group>"; };
    27952793                BC2E6E7E1141970C00A63B1E /* WorkQueue.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WorkQueue.h; sourceTree = "<group>"; };
     
    47194717                                51B3004E12529D0E000B5CA0 /* WebBackForwardListCF.cpp */,
    47204718                                51B3004F12529D0E000B5CA0 /* WebPageProxyCF.cpp */,
    4721                                 BC2DFBA212A761A500E732A3 /* WebPreferencesCF.cpp */,
    47224719                        );
    47234720                        name = cf;
     
    81228119                                BC5750981268F3C6006F0F12 /* WebPopupMenuProxyMac.mm in Sources */,
    81238120                                BCD59800112B57BE00EC8C23 /* WebPreferences.cpp in Sources */,
    8124                                 BC2DFBA312A761A500E732A3 /* WebPreferencesCF.cpp in Sources */,
    81258121                                BC84EB1812A7100C0083F2DA /* WebPreferencesMac.mm in Sources */,
    81268122                                BCD598AD112B7FDF00EC8C23 /* WebPreferencesStore.cpp in Sources */,
Note: See TracChangeset for help on using the changeset viewer.