Title: [235324] trunk/Source/WebKit
Revision
235324
Author
[email protected]
Date
2018-08-24 12:10:19 -0700 (Fri, 24 Aug 2018)

Log Message

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.

Modified Paths

Diff

Modified: trunk/Source/WebKit/ChangeLog (235323 => 235324)


--- trunk/Source/WebKit/ChangeLog	2018-08-24 18:41:19 UTC (rev 235323)
+++ trunk/Source/WebKit/ChangeLog	2018-08-24 19:10:19 UTC (rev 235324)
@@ -1,5 +1,16 @@
 2018-08-24  Alex Christensen  <[email protected]>
 
+        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  <[email protected]>
+
         Introduce _WKInspector
         https://bugs.webkit.org/show_bug.cgi?id=188923
         <rdar://problem/34657861>

Modified: trunk/Source/WebKit/UIProcess/API/C/mac/WKInspectorPrivateMac.h (235323 => 235324)


--- trunk/Source/WebKit/UIProcess/API/C/mac/WKInspectorPrivateMac.h	2018-08-24 18:41:19 UTC (rev 235323)
+++ trunk/Source/WebKit/UIProcess/API/C/mac/WKInspectorPrivateMac.h	2018-08-24 19:10:19 UTC (rev 235324)
@@ -31,6 +31,8 @@
 #import <WebKit/WKDeclarationSpecifiers.h>
 #import <WebKit/WKInspector.h>
 
+@class _WKInspector;
+
 #ifdef __cplusplus
 extern "C" {
 #endif
@@ -42,6 +44,7 @@
 WK_EXPORT @interface WKWebInspectorProxyObjCAdapter : NSObject <NSWindowDelegate>
 
 @property (readonly) WKInspectorRef inspectorRef;
+@property (readonly) _WKInspector *inspector;
 
 @end
 

Modified: trunk/Source/WebKit/UIProcess/mac/WebInspectorProxyMac.mm (235323 => 235324)


--- trunk/Source/WebKit/UIProcess/mac/WebInspectorProxyMac.mm	2018-08-24 18:41:19 UTC (rev 235323)
+++ trunk/Source/WebKit/UIProcess/mac/WebInspectorProxyMac.mm	2018-08-24 19:10:19 UTC (rev 235324)
@@ -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 @@
     return toAPI(_inspectorProxy);
 }
 
+- (_WKInspector *)inspector
+{
+    if (_inspectorProxy)
+        return wrapper(*_inspectorProxy);
+    return nil;
+}
+
 - (instancetype)initWithWebInspectorProxy:(WebKit::WebInspectorProxy*)inspectorProxy
 {
     ASSERT_ARG(inspectorProxy, inspectorProxy);
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to