Skip to content
  • paroga@webkit.org's avatar
    Move RunLoop from WebCore to WTF · f8108ef5
    paroga@webkit.org authored
    https://bugs.webkit.org/show_bug.cgi?id=116606
    
    Reviewed by Anders Carlsson.
    
    Source/WebCore:
    
    * CMakeLists.txt:
    * GNUmakefile.list.am:
    * PlatformBlackBerry.cmake:
    * PlatformEfl.cmake:
    * PlatformGTK.cmake:
    * PlatformWin.cmake:
    * WebCore.exp.in:
    * WebCore.vcxproj/WebCore.vcxproj:
    * WebCore.xcodeproj/project.pbxproj:
    * platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.h:
    * platform/graphics/texmap/coordinated/CoordinatedGraphicsScene.h:
    
    Source/WebKit/mac:
    
    * Carbon/CarbonWindowAdapter.mm:
    (+[CarbonWindowAdapter initialize]):
    * History/WebBackForwardList.mm:
    (+[WebBackForwardList initialize]):
    * History/WebHistoryItem.mm:
    (+[WebHistoryItem initialize]):
    * Misc/WebCache.mm:
    (+[WebCache initialize]):
    * Misc/WebElementDictionary.mm:
    (+[WebElementDictionary initialize]):
    * Misc/WebIconDatabase.mm:
    (+[WebIconDatabase initialize]):
    * Plugins/Hosted/WebHostedNetscapePluginView.mm:
    (+[WebHostedNetscapePluginView initialize]):
    * Plugins/WebBaseNetscapePluginView.mm:
    * Plugins/WebBasePluginPackage.mm:
    * Plugins/WebNetscapePluginView.mm:
    (+[WebNetscapePluginView initialize]):
    * WebCoreSupport/WebEditorClient.mm:
    (+[WebUndoStep initialize]):
    * WebCoreSupport/WebFrameLoaderClient.mm:
    * WebView/WebArchive.mm:
    (+[WebArchivePrivate initialize]):
    * WebView/WebDataSource.mm:
    (+[WebDataSource initialize]):
    * WebView/WebHTMLView.mm:
    (+[WebHTMLViewPrivate initialize]):
    (+[WebHTMLView initialize]):
    * WebView/WebPreferences.mm:
    (+[WebPreferences initialize]):
    * WebView/WebResource.mm:
    (+[WebResourcePrivate initialize]):
    * WebView/WebTextIterator.mm:
    (+[WebTextIteratorPrivate initialize]):
    * WebView/WebView.mm:
    (+[WebView initialize]):
    * WebView/WebViewData.mm:
    (+[WebViewPrivate initialize]):
    
    Source/WebKit2:
    
    * DatabaseProcess/DatabaseProcess.cpp:
    * DatabaseProcess/DatabaseToWebProcessConnection.cpp:
    * NetworkProcess/NetworkConnectionToWebProcess.cpp:
    * NetworkProcess/NetworkProcess.cpp:
    * NetworkProcess/NetworkProcess.h:
    * NetworkProcess/NetworkResourceLoader.h:
    * NetworkProcess/mac/DiskCacheMonitor.h:
    * NetworkProcess/unix/NetworkProcessMainUnix.cpp:
    * Platform/CoreIPC/Connection.cpp:
    * Platform/CoreIPC/Connection.h:
    * Platform/CoreIPC/mac/ConnectionMac.cpp:
    * PluginProcess/EntryPoint/mac/LegacyProcess/PluginProcessMain.mm:
    * PluginProcess/EntryPoint/mac/XPCService/PluginServiceEntryPoint.mm:
    * PluginProcess/PluginControllerProxy.h:
    * PluginProcess/PluginProcess.cpp:
    * PluginProcess/PluginProcess.h:
    * PluginProcess/WebProcessConnection.cpp:
    * PluginProcess/unix/PluginProcessMainUnix.cpp:
    * Shared/ChildProcess.cpp:
    * Shared/ChildProcess.h:
    * Shared/ChildProcessProxy.cpp:
    * Shared/EntryPointUtilities/mac/LegacyProcess/ChildProcessEntryPoint.h:
    * Shared/EntryPointUtilities/mac/LegacyProcess/ChildProcessEntryPoint.mm:
    * Shared/Plugins/NPObjectProxy.cpp:
    * Shared/WebKit2Initialize.cpp:
    (WebKit::InitializeWebKit2):
    * UIProcess/API/gtk/WebKitFaviconDatabase.cpp:
    * UIProcess/API/mac/FindIndicatorWindow.h:
    * UIProcess/API/mac/WKPrintingView.mm:
    * UIProcess/API/mac/WKView.mm:
    * UIProcess/CoordinatedGraphics/CoordinatedDrawingAreaProxy.h:
    * UIProcess/DrawingAreaProxyImpl.h:
    * UIProcess/Launcher/efl/ProcessLauncherEfl.cpp:
    * UIProcess/Launcher/gtk/ProcessLauncherGtk.cpp:
    * UIProcess/Launcher/mac/ProcessLauncherMac.mm:
    * UIProcess/Network/NetworkProcessProxy.cpp:
    * UIProcess/Plugins/PluginProcessProxy.cpp:
    * UIProcess/ResponsivenessTimer.cpp:
    * UIProcess/ResponsivenessTimer.h:
    * UIProcess/VisitedLinkProvider.h:
    * UIProcess/WebContext.cpp:
    * UIProcess/WebProcessProxy.cpp:
    * WebProcess/Databases/WebToDatabaseProcessConnection.cpp:
    * WebProcess/EntryPoint/mac/LegacyProcess/WebContentProcessMain.mm:
    * WebProcess/EntryPoint/mac/XPCService/WebContentServiceEntryPoint.mm:
    * WebProcess/Network/WebResourceLoadScheduler.h:
    * WebProcess/Plugins/Netscape/NPRuntimeObjectMap.h:
    * WebProcess/Plugins/Netscape/NetscapePlugin.h:
    * WebProcess/Plugins/Netscape/NetscapePluginStream.h:
    * WebProcess/Plugins/PluginView.h:
    * WebProcess/WebPage/CoordinatedGraphics/CoordinatedDrawingArea.h:
    * WebProcess/WebPage/DrawingAreaImpl.h:
    * WebProcess/WebPage/EventDispatcher.cpp:
    * WebProcess/WebPage/PageOverlay.h:
    * WebProcess/WebPage/WebPage.cpp:
    * WebProcess/WebPage/WebPage.h:
    * WebProcess/WebProcess.cpp:
    * WebProcess/efl/WebProcessMainEfl.cpp:
    * WebProcess/gtk/WebProcessMainGtk.cpp:
    
    Source/WTF:
    
    With this change RunLoop can be used in JavaScriptCore too.
    
    * GNUmakefile.list.am:
    * WTF.vcxproj/WTF.vcxproj:
    * WTF.xcodeproj/project.pbxproj:
    * wtf/CMakeLists.txt:
    * wtf/PlatformBlackBerry.cmake:
    * wtf/PlatformEfl.cmake:
    * wtf/PlatformGTK.cmake:
    * wtf/PlatformWin.cmake:
    * wtf/RunLoop.cpp: Renamed from Source/WebCore/platform/RunLoop.cpp.
    (WTF::RunLoop::Holder::Holder):
    (WTF::RunLoop::Holder::runLoop):
    (WTF::RunLoop::initializeMainRunLoop):
    (WTF::RunLoop::current):
    (WTF::RunLoop::main):
    (WTF::RunLoop::isMain):
    (WTF::RunLoop::performWork):
    (WTF::RunLoop::dispatch):
    * wtf/RunLoop.h: Renamed from Source/WebCore/platform/RunLoop.h.
    (WTF::RunLoop::TimerBase::startRepeating):
    (WTF::RunLoop::TimerBase::startOneShot):
    (WTF::RunLoop::TimerBase::isRepeating):
    (WTF::RunLoop::Timer::Timer):
    (WTF::RunLoop::Timer::fired):
    * wtf/blackberry/RunLoopBlackBerry.cpp: Renamed from Source/WebCore/platform/blackberry/RunLoopBlackBerry.cpp.
    (WTF::RunLoop::RunLoop):
    (WTF::RunLoop::~RunLoop):
    (WTF::RunLoop::wakeUp):
    * wtf/cf/RunLoopCF.cpp: Renamed from Source/WebCore/platform/cf/RunLoopCF.cpp.
    (WTF::RunLoop::performWork):
    (WTF::RunLoop::RunLoop):
    (WTF::RunLoop::~RunLoop):
    (WTF::RunLoop::runForDuration):
    (WTF::RunLoop::wakeUp):
    (WTF::RunLoop::run):
    (WTF::RunLoop::stop):
    (WTF::RunLoop::TimerBase::timerFired):
    (WTF::RunLoop::TimerBase::TimerBase):
    (WTF::RunLoop::TimerBase::~TimerBase):
    (WTF::RunLoop::TimerBase::start):
    (WTF::RunLoop::TimerBase::stop):
    (WTF::RunLoop::TimerBase::isActive):
    * wtf/efl/RunLoopEfl.cpp: Renamed from Source/WebCore/platform/efl/RunLoopEfl.cpp.
    (WTF::RunLoop::RunLoop):
    (WTF::RunLoop::~RunLoop):
    (WTF::RunLoop::run):
    (WTF::RunLoop::stop):
    (WTF::RunLoop::wakeUpEvent):
    (WTF::RunLoop::wakeUp):
    (WTF::RunLoop::TimerBase::TimerBase):
    (WTF::RunLoop::TimerBase::~TimerBase):
    (WTF::RunLoop::TimerBase::timerFired):
    (WTF::RunLoop::TimerBase::start):
    (WTF::RunLoop::TimerBase::stop):
    (WTF::RunLoop::TimerBase::isActive):
    * wtf/gtk/RunLoopGtk.cpp: Renamed from Source/WebCore/platform/gtk/RunLoopGtk.cpp.
    (WTF::RunLoop::RunLoop):
    (WTF::RunLoop::~RunLoop):
    (WTF::RunLoop::run):
    (WTF::RunLoop::innermostLoop):
    (WTF::RunLoop::pushNestedMainLoop):
    (WTF::RunLoop::popNestedMainLoop):
    (WTF::RunLoop::stop):
    (WTF::RunLoop::queueWork):
    (WTF::RunLoop::wakeUp):
    (WTF::RunLoop::TimerBase::TimerBase):
    (WTF::RunLoop::TimerBase::~TimerBase):
    (WTF::RunLoop::TimerBase::clearTimerSource):
    (WTF::RunLoop::TimerBase::timerFiredCallback):
    (WTF::RunLoop::TimerBase::start):
    (WTF::RunLoop::TimerBase::stop):
    (WTF::RunLoop::TimerBase::isActive):
    * wtf/win/RunLoopWin.cpp: Renamed from Source/WebCore/platform/win/RunLoopWin.cpp.
    (WTF::RunLoop::RunLoopWndProc):
    (WTF::RunLoop::wndProc):
    (WTF::RunLoop::run):
    (WTF::RunLoop::stop):
    (WTF::RunLoop::registerRunLoopMessageWindowClass):
    (WTF::RunLoop::RunLoop):
    (WTF::RunLoop::~RunLoop):
    (WTF::RunLoop::wakeUp):
    (WTF::RunLoop::TimerBase::timerFired):
    (WTF::generateTimerID):
    (WTF::RunLoop::TimerBase::TimerBase):
    (WTF::RunLoop::TimerBase::~TimerBase):
    (WTF::RunLoop::TimerBase::start):
    (WTF::RunLoop::TimerBase::stop):
    (WTF::RunLoop::TimerBase::isActive):
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159001 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    f8108ef5