_WKRemoteWebInspectorViewController.h [plain text]
#import <WebKit/WKFoundation.h>
#import <WebKit/_WKInspectorExtensionHost.h>
#if !TARGET_OS_IPHONE
@class WKWebView;
@class _WKInspectorConfiguration;
@class _WKInspectorDebuggableInfo;
@protocol _WKRemoteWebInspectorViewControllerDelegate;
NS_ASSUME_NONNULL_BEGIN
WK_CLASS_AVAILABLE(macos(10.12.3))
@interface _WKRemoteWebInspectorViewController : NSObject <_WKInspectorExtensionHost>
@property (nonatomic, assign) id <_WKRemoteWebInspectorViewControllerDelegate> delegate;
@property (nonatomic, readonly, retain) NSWindow *window;
@property (nonatomic, readonly, retain) WKWebView *webView;
@property (nonatomic, readonly, copy) _WKInspectorConfiguration *configuration WK_API_AVAILABLE(macos(WK_MAC_TBA));
- (instancetype)initWithConfiguration:(_WKInspectorConfiguration *)configuration WK_API_AVAILABLE(macos(WK_MAC_TBA));
- (void)loadForDebuggable:(_WKInspectorDebuggableInfo *)debuggableInfo backendCommandsURL:(NSURL *)backendCommandsURL WK_API_AVAILABLE(macos(WK_MAC_TBA));
- (void)close;
- (void)show;
- (void)sendMessageToFrontend:(NSString *)message;
@end
@protocol _WKRemoteWebInspectorViewControllerDelegate <NSObject>
@optional
- (void)inspectorViewController:(_WKRemoteWebInspectorViewController *)controller sendMessageToBackend:(NSString *)message;
- (void)inspectorViewControllerInspectorDidClose:(_WKRemoteWebInspectorViewController *)controller;
@end
NS_ASSUME_NONNULL_END
#endif // !TARGET_OS_IPHONE