<http://webkit.org/b/133015>
Reviewed by Benjamin Poulain.
* UIProcess/API/Cocoa/WKWebView.mm:
(-[WKWebView _pageRef]): Added.
* UIProcess/API/Cocoa/WKWebViewPrivate.h:
(-[WKWebView _pageRef]): Added declaration.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@169001
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2014-05-17 David Kilzer <ddkilzer@apple.com>
+
+ Need a way to get a WKPageRef from a WKWebView
+ <http://webkit.org/b/133015>
+
+ Reviewed by Benjamin Poulain.
+
+ * UIProcess/API/Cocoa/WKWebView.mm:
+ (-[WKWebView _pageRef]): Added.
+ * UIProcess/API/Cocoa/WKWebViewPrivate.h:
+ (-[WKWebView _pageRef]): Added declaration.
+
2014-05-17 Anders Carlsson <andersca@apple.com>
Give user scripts custom URLs
_page->setFormClient(nullptr);
}
+- (WKPageRef)_pageRef
+{
+ return toAPI(_page.get());
+}
+
#pragma mark iOS-specific methods
#if PLATFORM(IOS)
#import <WebKit/WKWebView.h>
+#import <WebKit/WKBase.h>
+
#if WK_API_ENABLED
typedef NS_OPTIONS(NSUInteger, _WKRenderingProgressEvents) {
@property (nonatomic, weak, setter=_setFormDelegate:) id <_WKFormDelegate> _formDelegate;
+@property (nonatomic, readonly) WKPageRef _pageRef;
+
@end
#endif