Follow up to r235323
authorachristensen@apple.com <achristensen@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 24 Aug 2018 19:10:19 +0000 (19:10 +0000)
committerachristensen@apple.com <achristensen@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 24 Aug 2018 19:10:19 +0000 (19:10 +0000)
https://bugs.webkit.org/show_bug.cgi?id=188923
<rdar://problem/34657861>

* UIProcess/API/C/mac/WKInspectorPrivateMac.h:
* UIProcess/mac/WebInspectorProxyMac.mm:
(-[WKWebInspectorProxyObjCAdapter inspector]):
A _WKInspector * accessor in the WKWebInspectorProxyObjCAdapter is nice, too.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@235324 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebKit/ChangeLog
Source/WebKit/UIProcess/API/C/mac/WKInspectorPrivateMac.h
Source/WebKit/UIProcess/mac/WebInspectorProxyMac.mm

index 0009c37..67a45f0 100644 (file)
@@ -1,5 +1,16 @@
 2018-08-24  Alex Christensen  <achristensen@webkit.org>
 
+        Follow up to r235323
+        https://bugs.webkit.org/show_bug.cgi?id=188923
+        <rdar://problem/34657861>
+
+        * UIProcess/API/C/mac/WKInspectorPrivateMac.h:
+        * UIProcess/mac/WebInspectorProxyMac.mm:
+        (-[WKWebInspectorProxyObjCAdapter inspector]):
+        A _WKInspector * accessor in the WKWebInspectorProxyObjCAdapter is nice, too.
+
+2018-08-24  Alex Christensen  <achristensen@webkit.org>
+
         Introduce _WKInspector
         https://bugs.webkit.org/show_bug.cgi?id=188923
         <rdar://problem/34657861>
index a866eaf..52c44fc 100644 (file)
@@ -31,6 +31,8 @@
 #import <WebKit/WKDeclarationSpecifiers.h>
 #import <WebKit/WKInspector.h>
 
+@class _WKInspector;
+
 #ifdef __cplusplus
 extern "C" {
 #endif
@@ -42,6 +44,7 @@ const NSInteger WKInspectorViewTag = 1000;
 WK_EXPORT @interface WKWebInspectorProxyObjCAdapter : NSObject <NSWindowDelegate>
 
 @property (readonly) WKInspectorRef inspectorRef;
+@property (readonly) _WKInspector *inspector;
 
 @end
 
index 05caa22..87e02bf 100644 (file)
@@ -36,6 +36,7 @@
 #import "WebInspectorUIMessages.h"
 #import "WebPageGroup.h"
 #import "WebPageProxy.h"
+#import "_WKInspectorInternal.h"
 #import <WebCore/InspectorFrontendClientLocal.h>
 #import <WebCore/LocalizedStrings.h>
 #import <wtf/SoftLinking.h>
@@ -65,6 +66,13 @@ static const Seconds webViewCloseTimeout { 1_min };
     return toAPI(_inspectorProxy);
 }
 
+- (_WKInspector *)inspector
+{
+    if (_inspectorProxy)
+        return wrapper(*_inspectorProxy);
+    return nil;
+}
+
 - (instancetype)initWithWebInspectorProxy:(WebKit::WebInspectorProxy*)inspectorProxy
 {
     ASSERT_ARG(inspectorProxy, inspectorProxy);