Title: [166612] trunk/Source/WebKit2
- Revision
- 166612
- Author
- aes...@apple.com
- Date
- 2014-04-01 14:29:48 -0700 (Tue, 01 Apr 2014)
Log Message
[Cocoa] Add SPI to determine if a WKWebView is displaying a PDF
https://bugs.webkit.org/show_bug.cgi?id=131063
Reviewed by Tim Horton.
* UIProcess/API/Cocoa/WKWebView.mm:
(-[WKWebView _isDisplayingPDF]):
* UIProcess/API/Cocoa/WKWebViewPrivate.h:
Modified Paths
Diff
Modified: trunk/Source/WebKit2/ChangeLog (166611 => 166612)
--- trunk/Source/WebKit2/ChangeLog 2014-04-01 21:27:35 UTC (rev 166611)
+++ trunk/Source/WebKit2/ChangeLog 2014-04-01 21:29:48 UTC (rev 166612)
@@ -1,3 +1,14 @@
+2014-04-01 Andy Estes <aes...@apple.com>
+
+ [Cocoa] Add SPI to determine if a WKWebView is displaying a PDF
+ https://bugs.webkit.org/show_bug.cgi?id=131063
+
+ Reviewed by Tim Horton.
+
+ * UIProcess/API/Cocoa/WKWebView.mm:
+ (-[WKWebView _isDisplayingPDF]):
+ * UIProcess/API/Cocoa/WKWebViewPrivate.h:
+
2014-04-01 Simon Fraser <simon.fra...@apple.com>
Remove some explicit template instantiations from logging code
Modified: trunk/Source/WebKit2/UIProcess/API/Cocoa/WKWebView.mm (166611 => 166612)
--- trunk/Source/WebKit2/UIProcess/API/Cocoa/WKWebView.mm 2014-04-01 21:27:35 UTC (rev 166611)
+++ trunk/Source/WebKit2/UIProcess/API/Cocoa/WKWebView.mm 2014-04-01 21:29:48 UTC (rev 166612)
@@ -59,6 +59,7 @@
#import <wtf/RetainPtr.h>
#if PLATFORM(IOS)
+#import "WKPDFView.h"
#import "WKScrollView.h"
#import "WKWebViewContentProviderRegistry.h"
#import <UIKit/UIPeripheralHost_Private.h>
@@ -1178,6 +1179,11 @@
});
}
+- (BOOL)_isDisplayingPDF
+{
+ return [_customContentView isKindOfClass:[WKPDFView class]];
+}
+
#else
#pragma mark - OS X-specific methods
Modified: trunk/Source/WebKit2/UIProcess/API/Cocoa/WKWebViewPrivate.h (166611 => 166612)
--- trunk/Source/WebKit2/UIProcess/API/Cocoa/WKWebViewPrivate.h 2014-04-01 21:27:35 UTC (rev 166611)
+++ trunk/Source/WebKit2/UIProcess/API/Cocoa/WKWebViewPrivate.h 2014-04-01 21:29:48 UTC (rev 166612)
@@ -90,6 +90,8 @@
// This is deprecated and should be removed entirely: <rdar://problem/16294704>.
@property (readonly) UIColor *_pageExtendedBackgroundColor;
+@property (nonatomic, readonly, getter=_isDisplayingPDF) BOOL _displayingPDF;
+
- (void)_beginInteractiveObscuredInsetsChange;
- (void)_endInteractiveObscuredInsetsChange;
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes