Title: [188584] trunk/Source/WebKit/mac
- Revision
- 188584
- Author
- je...@apple.com
- Date
- 2015-08-18 10:56:17 -0700 (Tue, 18 Aug 2015)
Log Message
Add a method to WebInspector to indicate whether the inspector is open
https://bugs.webkit.org/show_bug.cgi?id=148087
Reviewed by Joseph Pecoraro.
* WebInspector/WebInspector.h:
Added open property.
* WebInspector/WebInspector.mm:
(-[WebInspector isOpen]):
Added, returns YES if we have a frontend.
Modified Paths
Diff
Modified: trunk/Source/WebKit/mac/ChangeLog (188583 => 188584)
--- trunk/Source/WebKit/mac/ChangeLog 2015-08-18 17:37:21 UTC (rev 188583)
+++ trunk/Source/WebKit/mac/ChangeLog 2015-08-18 17:56:17 UTC (rev 188584)
@@ -1,3 +1,17 @@
+2015-08-17 Jeff Miller <je...@apple.com>
+
+ Add a method to WebInspector to indicate whether the inspector is open
+ https://bugs.webkit.org/show_bug.cgi?id=148087
+
+ Reviewed by Joseph Pecoraro.
+
+ * WebInspector/WebInspector.h:
+ Added open property.
+
+ * WebInspector/WebInspector.mm:
+ (-[WebInspector isOpen]):
+ Added, returns YES if we have a frontend.
+
2015-08-13 Andy Estes <aes...@apple.com>
[Cocoa] Downloads do not start if policy decision is made asynchronously
Modified: trunk/Source/WebKit/mac/WebInspector/WebInspector.h (188583 => 188584)
--- trunk/Source/WebKit/mac/WebInspector/WebInspector.h 2015-08-18 17:37:21 UTC (rev 188583)
+++ trunk/Source/WebKit/mac/WebInspector/WebInspector.h 2015-08-18 17:56:17 UTC (rev 188584)
@@ -61,4 +61,6 @@
- (void)toggleProfilingJavaScript:(id)sender;
- (void)startProfilingJavaScript:(id)sender;
- (void)stopProfilingJavaScript:(id)sender;
+
+@property (nonatomic, readonly, getter=isOpen) BOOL open;
@end
Modified: trunk/Source/WebKit/mac/WebInspector/WebInspector.mm (188583 => 188584)
--- trunk/Source/WebKit/mac/WebInspector/WebInspector.mm 2015-08-18 17:37:21 UTC (rev 188583)
+++ trunk/Source/WebKit/mac/WebInspector/WebInspector.mm 2015-08-18 17:56:17 UTC (rev 188584)
@@ -150,6 +150,11 @@
[_frontend setTimelineProfilingEnabled:enabled];
}
+- (BOOL)isOpen
+{
+ return !!_frontend;
+}
+
- (void)close:(id)sender
{
if (Page* page = core(_webView))
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes