Changeset 239691 in webkit
- Timestamp:
- Jan 7, 2019 12:20:42 PM (5 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r239689 r239691 1 2019-01-07 Joseph Pecoraro <pecoraro@apple.com> 2 3 [Cocoa] Add SPI to check if a WKWebView has an inspector frontend 4 https://bugs.webkit.org/show_bug.cgi?id=193162 5 <rdar://problem/24267143> 6 7 Reviewed by Alex Christensen. 8 9 * UIProcess/API/Cocoa/WKWebView.mm: 10 (-[WKWebView _hasInspectorFrontend]): 11 * UIProcess/API/Cocoa/WKWebViewPrivate.h: 12 * UIProcess/WebPageProxy.h: 13 (WebKit::WebPageProxy::hasInspectorFrontend const): 14 1 15 2019-01-07 Antti Koivisto <antti@apple.com> 2 16 -
trunk/Source/WebKit/UIProcess/API/Cocoa/WKWebView.mm
r239640 r239691 6958 6958 } 6959 6959 6960 - (BOOL)_hasInspectorFrontend 6961 { 6962 return _page && _page->hasInspectorFrontend(); 6963 } 6964 6960 6965 - (_WKInspector *)_inspector 6961 6966 { -
trunk/Source/WebKit/UIProcess/API/Cocoa/WKWebViewPrivate.h
r239640 r239691 533 533 - (void)_setShareSheetCompletesImmediatelyWithResolutionForTesting:(BOOL)resolved WK_API_AVAILABLE(macosx(WK_MAC_TBA), ios(WK_IOS_TBA)); 534 534 535 @property (nonatomic, readonly) BOOL _hasInspectorFrontend WK_API_AVAILABLE(macosx(WK_MAC_TBA), ios(WK_IOS_TBA)); 535 536 @property (nonatomic, readonly) _WKInspector *_inspector WK_API_AVAILABLE(macosx(WK_MAC_TBA), ios(WK_IOS_TBA)); 536 537 @property (nonatomic, readonly) _WKFrameHandle *_mainFrame WK_API_AVAILABLE(macosx(WK_MAC_TBA), ios(WK_IOS_TBA)); -
trunk/Source/WebKit/UIProcess/WebPageProxy.h
r239640 r239691 390 390 void didChangeInspectorFrontendCount(unsigned count) { m_inspectorFrontendCount = count; } 391 391 unsigned inspectorFrontendCount() const { return m_inspectorFrontendCount; } 392 bool hasInspectorFrontend() const { return m_inspectorFrontendCount > 0; } 392 393 393 394 bool isControlledByAutomation() const { return m_controlledByAutomation; }
Note: See TracChangeset
for help on using the changeset viewer.