Changeset 117777 in webkit


Ignore:
Timestamp:
May 21, 2012 6:49:48 AM (12 years ago)
Author:
commit-queue@webkit.org
Message:

Disambiguate WTF::bind and std::bind from C++11
https://bugs.webkit.org/show_bug.cgi?id=86465

Patch by Allan Sandfeld Jensen <allan.jensen@nokia.com> on 2012-05-21
Reviewed by Darin Adler.

  • Platform/CoreIPC/Connection.cpp:

(CoreIPC::Connection::SyncMessageState::processIncomingMessage):
(CoreIPC::Connection::addQueueClient):
(CoreIPC::Connection::removeQueueClient):
(CoreIPC::Connection::invalidate):
(CoreIPC::Connection::sendMessage):
(CoreIPC::Connection::postConnectionDidCloseOnConnectionWorkQueue):
(CoreIPC::Connection::connectionDidClose):
(CoreIPC::Connection::enqueueIncomingMessage):

  • Platform/CoreIPC/unix/ConnectionUnix.cpp:

(CoreIPC::Connection::open):
(CoreIPC::Connection::setShouldCloseConnectionOnProcessTermination):

  • WebProcess/Plugins/Netscape/NetscapePlugin.cpp:

(WebKit::NetscapePlugin::pluginThreadAsyncCall):

  • WebProcess/WebPage/FindController.cpp:

(WebKit::FindController::findString):

Location:
trunk/Source/WebKit2
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r117735 r117777  
     12012-05-21  Allan Sandfeld Jensen  <allan.jensen@nokia.com>
     2
     3        Disambiguate WTF::bind and std::bind from C++11
     4        https://bugs.webkit.org/show_bug.cgi?id=86465
     5
     6        Reviewed by Darin Adler.
     7
     8        * Platform/CoreIPC/Connection.cpp:
     9        (CoreIPC::Connection::SyncMessageState::processIncomingMessage):
     10        (CoreIPC::Connection::addQueueClient):
     11        (CoreIPC::Connection::removeQueueClient):
     12        (CoreIPC::Connection::invalidate):
     13        (CoreIPC::Connection::sendMessage):
     14        (CoreIPC::Connection::postConnectionDidCloseOnConnectionWorkQueue):
     15        (CoreIPC::Connection::connectionDidClose):
     16        (CoreIPC::Connection::enqueueIncomingMessage):
     17        * Platform/CoreIPC/unix/ConnectionUnix.cpp:
     18        (CoreIPC::Connection::open):
     19        (CoreIPC::Connection::setShouldCloseConnectionOnProcessTermination):
     20        * WebProcess/Plugins/Netscape/NetscapePlugin.cpp:
     21        (WebKit::NetscapePlugin::pluginThreadAsyncCall):
     22        * WebProcess/WebPage/FindController.cpp:
     23        (WebKit::FindController::findString):
     24
    1252012-05-20  Carlos Garcia Campos  <cgarcia@igalia.com>
    226
  • trunk/Source/WebKit2/Platform/CoreIPC/Connection.cpp

    r116226 r117777  
    3232#include <wtf/CurrentTime.h>
    3333
    34 using namespace std;
    3534using namespace WebCore;
    3635
     
    142141       
    143142        if (!m_didScheduleDispatchMessagesWork) {
    144             m_runLoop->dispatch(bind(&SyncMessageState::dispatchMessageAndResetDidScheduleDispatchMessagesWork, this));
     143            m_runLoop->dispatch(WTF::bind(&SyncMessageState::dispatchMessageAndResetDidScheduleDispatchMessagesWork, this));
    145144            m_didScheduleDispatchMessagesWork = true;
    146145        }
     
    237236void Connection::addQueueClient(QueueClient* queueClient)
    238237{
    239     m_connectionQueue.dispatch(bind(&Connection::addQueueClientOnWorkQueue, this, queueClient));
     238    m_connectionQueue.dispatch(WTF::bind(&Connection::addQueueClientOnWorkQueue, this, queueClient));
    240239}
    241240
    242241void Connection::removeQueueClient(QueueClient* queueClient)
    243242{
    244     m_connectionQueue.dispatch(bind(&Connection::removeQueueClientOnWorkQueue, this, queueClient));
     243    m_connectionQueue.dispatch(WTF::bind(&Connection::removeQueueClientOnWorkQueue, this, queueClient));
    245244}
    246245
     
    275274    m_client = 0;
    276275
    277     m_connectionQueue.dispatch(bind(&Connection::platformInvalidate, this));
     276    m_connectionQueue.dispatch(WTF::bind(&Connection::platformInvalidate, this));
    278277}
    279278
     
    318317   
    319318    // FIXME: We should add a boolean flag so we don't call this when work has already been scheduled.
    320     m_connectionQueue.dispatch(bind(&Connection::sendOutgoingMessages, this));
     319    m_connectionQueue.dispatch(WTF::bind(&Connection::sendOutgoingMessages, this));
    321320    return true;
    322321}
     
    566565void Connection::postConnectionDidCloseOnConnectionWorkQueue()
    567566{
    568     m_connectionQueue.dispatch(bind(&Connection::connectionDidClose, this));
     567    m_connectionQueue.dispatch(WTF::bind(&Connection::connectionDidClose, this));
    569568}
    570569
     
    587586        m_didCloseOnConnectionWorkQueueCallback(m_connectionQueue, this);
    588587
    589     m_clientRunLoop->dispatch(bind(&Connection::dispatchConnectionDidClose, this));
     588    m_clientRunLoop->dispatch(WTF::bind(&Connection::dispatchConnectionDidClose, this));
    590589}
    591590
     
    667666    m_incomingMessages.append(incomingMessage);
    668667
    669     m_clientRunLoop->dispatch(bind(&Connection::dispatchOneMessage, this));
     668    m_clientRunLoop->dispatch(WTF::bind(&Connection::dispatchOneMessage, this));
    670669}
    671670
  • trunk/Source/WebKit2/Platform/CoreIPC/unix/ConnectionUnix.cpp

    r112353 r117777  
    4646#endif
    4747
    48 using namespace std;
    49 
    5048namespace CoreIPC {
    5149
     
    424422    m_isConnected = true;
    425423#if PLATFORM(QT)
    426     m_socketNotifier = m_connectionQueue.registerSocketEventHandler(m_socketDescriptor, QSocketNotifier::Read, bind(&Connection::readyReadHandler, this));
     424    m_socketNotifier = m_connectionQueue.registerSocketEventHandler(m_socketDescriptor, QSocketNotifier::Read, WTF::bind(&Connection::readyReadHandler, this));
    427425#elif PLATFORM(GTK)
    428     m_connectionQueue.registerEventSourceHandler(m_socketDescriptor, (G_IO_HUP | G_IO_ERR), bind(&Connection::connectionDidClose, this));
    429     m_connectionQueue.registerEventSourceHandler(m_socketDescriptor, G_IO_IN, bind(&Connection::readyReadHandler, this));
     426    m_connectionQueue.registerEventSourceHandler(m_socketDescriptor, (G_IO_HUP | G_IO_ERR), WTF::bind(&Connection::connectionDidClose, this));
     427    m_connectionQueue.registerEventSourceHandler(m_socketDescriptor, G_IO_IN, WTF::bind(&Connection::readyReadHandler, this));
    430428#elif PLATFORM(EFL)
    431     m_connectionQueue.registerSocketEventHandler(m_socketDescriptor, bind(&Connection::readyReadHandler, this));
     429    m_connectionQueue.registerSocketEventHandler(m_socketDescriptor, WTF::bind(&Connection::readyReadHandler, this));
    432430#endif
    433431
    434432    // Schedule a call to readyReadHandler. Data may have arrived before installation of the signal
    435433    // handler.
    436     m_connectionQueue.dispatch(bind(&Connection::readyReadHandler, this));
     434    m_connectionQueue.dispatch(WTF::bind(&Connection::readyReadHandler, this));
    437435
    438436    return true;
     
    562560void Connection::setShouldCloseConnectionOnProcessTermination(WebKit::PlatformProcessIdentifier process)
    563561{
    564     m_connectionQueue.dispatchOnTermination(process, bind(&Connection::connectionDidClose, this));
     562    m_connectionQueue.dispatchOnTermination(process, WTF::bind(&Connection::connectionDidClose, this));
    565563}
    566564#endif
  • trunk/Source/WebKit2/WebProcess/Plugins/Netscape/NetscapePlugin.cpp

    r117212 r117777  
    311311void NetscapePlugin::pluginThreadAsyncCall(void (*function)(void*), void* userData)
    312312{
    313     RunLoop::main()->dispatch(bind(&NetscapePlugin::handlePluginThreadAsyncCall, this, function, userData));
     313    RunLoop::main()->dispatch(WTF::bind(&NetscapePlugin::handlePluginThreadAsyncCall, this, function, userData));
    314314}
    315315   
  • trunk/Source/WebKit2/WebProcess/WebPage/FindController.cpp

    r115681 r117777  
    157157    bool found = m_webPage->corePage()->findString(string, core(options));
    158158
    159     m_webPage->drawingArea()->dispatchAfterEnsuringUpdatedScrollPosition(bind(&FindController::updateFindUIAfterPageScroll, this, found, string, options, maxMatchCount));
     159    m_webPage->drawingArea()->dispatchAfterEnsuringUpdatedScrollPosition(WTF::bind(&FindController::updateFindUIAfterPageScroll, this, found, string, options, maxMatchCount));
    160160}
    161161
Note: See TracChangeset for help on using the changeset viewer.