Web Inspector: expose a way of determining if a detached frontend is for a remote...
authordrousso@apple.com <drousso@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 29 Jan 2019 22:40:44 +0000 (22:40 +0000)
committerdrousso@apple.com <drousso@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 29 Jan 2019 22:40:44 +0000 (22:40 +0000)
commitb8644d6c22ac9a4e1c48fb452218cb46e512e039
tree1d0efa67bdfdde340feb69684a184fe396f86827
parent9e2c71459edef724cd527c9443bae2625c3bb9ca
Web Inspector: expose a way of determining if a detached frontend is for a remote target
https://bugs.webkit.org/show_bug.cgi?id=193951
<rdar://problem/47621366>

Reviewed by Joseph Pecoraro.

* UIProcess/WebInspectorProxy.h:
(WebKit::WebInspectorProxy::InspectionTargetType): Added.
(WebKit::WebInspectorProxy::createFrontendWindow):
* UIProcess/mac/WebInspectorProxyMac.mm:
(WebKit::WebInspectorProxy::createFrontendWindow):
(WebKit::WebInspectorProxy::platformCreateFrontendWindow):
* UIProcess/mac/RemoteWebInspectorProxyMac.mm:
(WebKit::RemoteWebInspectorProxy::platformCreateFrontendPageAndWindow):

* UIProcess/API/Cocoa/_WKInspectorWindow.h: Moved from UIProcess/mac/WKInspectorWindow.h.
* UIProcess/API/Cocoa/_WKInspectorWindow.mm: Moved from UIProcess/mac/WKInspectorWindow.mm.
(-[WKInspectorWindow isRemote]): Added.

* Shared/API/Cocoa/_WKNSWindowExtras.mm:
(-[NSWindow _web_isWebInspectorWindow]):

* PlatformMac.cmake:
* SourcesCocoa.txt:
* UnifiedSources-input.xcfilelist:
* WebKit.xcodeproj/project.pbxproj:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@240685 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebKit/ChangeLog
Source/WebKit/PlatformMac.cmake
Source/WebKit/Shared/API/Cocoa/_WKNSWindowExtras.mm
Source/WebKit/SourcesCocoa.txt
Source/WebKit/UIProcess/API/Cocoa/_WKInspectorWindow.h [moved from Source/WebKit/UIProcess/mac/WKInspectorWindow.h with 87% similarity]
Source/WebKit/UIProcess/API/Cocoa/_WKInspectorWindow.mm [moved from Source/WebKit/UIProcess/mac/WKInspectorWindow.mm with 91% similarity]
Source/WebKit/UIProcess/WebInspectorProxy.h
Source/WebKit/UIProcess/mac/RemoteWebInspectorProxyMac.mm
Source/WebKit/UIProcess/mac/WebInspectorProxyMac.mm
Source/WebKit/UnifiedSources-input.xcfilelist
Source/WebKit/WebKit.xcodeproj/project.pbxproj