haikuwebkit/Tools/PlatformPlayStation.cmake

4 lines
74 B
CMake
Raw Permalink Normal View History

[PlayStation] Add MiniBrowser https://bugs.webkit.org/show_bug.cgi?id=220359 Reviewed by Don Olmstead. .: Enable Fullscreen API. * Source/cmake/OptionsPlayStation.cmake: Source/WebCore: Add WidgetPlayStation to support custom cursor. Load CA certs in CurlSSLHandle::platformInitialize(). * PlatformPlayStation.cmake: Add WidgetPlayStation.cpp * platform/Widget.cpp: Allow PlayStation specific implementation. * platform/network/playstation/CurlSSLHandlePlayStation.cpp: (WebCore::CurlSSLHandle::platformInitialize): Load CA certs. * platform/playstation/WidgetPlayStation.cpp: Added. (WebCore::Widget::~Widget): (WebCore::Widget::setFrameRect): (WebCore::Widget::paint): (WebCore::Widget::setFocus): (WebCore::Widget::setCursor): Call hostWindow()'s setCursor(). (WebCore::Widget::show): (WebCore::Widget::hide): (WebCore::Widget::setIsSelected): Source/WebKit: Add WKRunloop API to allow an external program to run WebKit's generic runloop. * UIProcess/API/C/playstation/WKRunLoop.cpp: Added. (WKRunLoopRunMain): (WKRunLoopStopMain): (WKRunLoopCallOnMainThread): (WKRunLoopInitializeMain): * UIProcess/API/C/playstation/WKRunLoop.h: Added. Add private WKPagePaint() to draw contents to bitmap. Remove unused WKPageSetSize() implementation. * UIProcess/API/C/playstation/WKPagePrivatePlayStation.cpp: (drawPageBackground): (WKPageHandleMouseEvent): Fix button click event handling. (WKPagePaint): * UIProcess/API/C/playstation/WKPagePrivatePlayStation.h: Add WKView API to set view client along with fullscreen API and visibility state API. * UIProcess/API/C/playstation/WKView.cpp: (WKViewGetPage): (WKViewSetSize): (WKViewSetFocus): (WKViewSetActive): (WKViewSetVisible): (WKViewWillEnterFullScreen): (WKViewDidEnterFullScreen): (WKViewWillExitFullScreen): (WKViewDidExitFullScreen): (WKViewRequestExitFullScreen): (WKViewIsFullScreen): (WKViewSetViewClient): * UIProcess/API/C/playstation/WKView.h: * UIProcess/API/C/playstation/WKViewClient.h: Added. * UIProcess/API/playstation/APIViewClient.h: Added. * UIProcess/playstation/PageClientImpl.cpp: * UIProcess/playstation/PageClientImpl.h: * UIProcess/playstation/PlayStationWebView.cpp: * UIProcess/playstation/PlayStationWebView.h: Allow rendering without accelerated compositing. * WebProcess/WebPage/WebPage.cpp: (WebKit::WebPage::updatePreferences): * PlatformPlayStation.cmake: Add relevant sources and include directories. Tools: Add PlayStation MiniBrowser sources and CMakeLists.txt. * MiniBrowser/playstation/CMakeLists.txt: Added. * MiniBrowser/playstation/ImageButton.cpp: Added. * MiniBrowser/playstation/ImageButton.h: Added. * MiniBrowser/playstation/MainWindow.cpp: Added. * MiniBrowser/playstation/MainWindow.h: Added. * MiniBrowser/playstation/StringUtils.h: Added. * MiniBrowser/playstation/TitleBar.cpp: Added. * MiniBrowser/playstation/TitleBar.h: Added. * MiniBrowser/playstation/ToolkittenUtils.h: Added. * MiniBrowser/playstation/URLBar.cpp: Added. * MiniBrowser/playstation/URLBar.h: Added. * MiniBrowser/playstation/WebContext.cpp: Added. * MiniBrowser/playstation/WebContext.h: Added. * MiniBrowser/playstation/WebViewWindow.cpp: Added. * MiniBrowser/playstation/WebViewWindow.h: Added. * MiniBrowser/playstation/main.cpp: Added. (loadLibraryOrExit): (initialize): (ApplicationClient::updateApplication): (main): * PlatformPlayStation.cmake: Added. Canonical link: https://commits.webkit.org/232925@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@271360 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-01-11 15:11:38 +00:00
if (ENABLE_WEBKIT)
add_subdirectory(MiniBrowser/playstation)
endif ()