Ignore:
Timestamp:
Jan 30, 2015, 12:49:33 PM (11 years ago)
Author:
Chris Dumez
Message:

Rename shared() static member functions to singleton() for singleton classes.
https://bugs.webkit.org/show_bug.cgi?id=141088

Reviewed by Ryosuke Niwa and Benjamin Poulain.

Rename shared() static member functions to singleton() for singleton
classes as per the recent coding style change.
Source/JavaScriptCore:

  • inspector/remote/RemoteInspector.h:
  • inspector/remote/RemoteInspector.mm:

(Inspector::RemoteInspector::singleton):
(Inspector::RemoteInspector::start):
(Inspector::RemoteInspector::shared): Deleted.

  • inspector/remote/RemoteInspectorDebuggable.cpp:

(Inspector::RemoteInspectorDebuggable::~RemoteInspectorDebuggable):
(Inspector::RemoteInspectorDebuggable::init):
(Inspector::RemoteInspectorDebuggable::update):
(Inspector::RemoteInspectorDebuggable::setRemoteDebuggingAllowed):
(Inspector::RemoteInspectorDebuggable::pauseWaitingForAutomaticInspection):
(Inspector::RemoteInspectorDebuggable::unpauseForInitializedInspector):

  • inspector/remote/RemoteInspectorDebuggableConnection.mm:

(Inspector::RemoteInspectorDebuggableConnection::setup):
(Inspector::RemoteInspectorDebuggableConnection::sendMessageToFrontend):

Source/WebKit:

  • Storage/WebDatabaseProvider.cpp:

(WebDatabaseProvider::singleton):
(WebDatabaseProvider::shared): Deleted.

  • Storage/WebDatabaseProvider.h:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/WebProcess/WebPage/EventDispatcher.cpp

    r177848 r179409  
    206206
    207207    for (auto& slot : localCopy) {
    208         if (WebPage* webPage = WebProcess::shared().webPage(slot.key))
     208        if (WebPage* webPage = WebProcess::singleton().webPage(slot.key))
    209209            webPage->dispatchAsynchronousTouchEvents(slot.value);
    210210    }
     
    216216    ASSERT(RunLoop::isMain());
    217217
    218     WebPage* webPage = WebProcess::shared().webPage(pageID);
     218    WebPage* webPage = WebProcess::singleton().webPage(pageID);
    219219    if (!webPage)
    220220        return;
     
    226226void EventDispatcher::sendDidReceiveEvent(uint64_t pageID, const WebEvent& event, bool didHandleEvent)
    227227{
    228     WebProcess::shared().parentProcessConnection()->send(Messages::WebPageProxy::DidReceiveEvent(static_cast<uint32_t>(event.type()), didHandleEvent), pageID);
     228    WebProcess::singleton().parentProcessConnection()->send(Messages::WebPageProxy::DidReceiveEvent(static_cast<uint32_t>(event.type()), didHandleEvent), pageID);
    229229}
    230230#endif
Note: See TracChangeset for help on using the changeset viewer.