Title: [164093] trunk/Source/WebKit2
- Revision
- 164093
- Author
- m...@apple.com
- Date
- 2014-02-13 22:03:34 -0800 (Thu, 13 Feb 2014)
Log Message
[Cocoa] Add a way to get the page from a frame in the injected bundle
https://bugs.webkit.org/show_bug.cgi?id=128791
Reviewed by Anders Carlsson.
* WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInFrame.mm:
(-[WKWebProcessPlugInFrame _browserContextController]): Added.
* WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInFramePrivate.h: Declared
_browserContextController property.
Modified Paths
Diff
Modified: trunk/Source/WebKit2/ChangeLog (164092 => 164093)
--- trunk/Source/WebKit2/ChangeLog 2014-02-14 05:37:38 UTC (rev 164092)
+++ trunk/Source/WebKit2/ChangeLog 2014-02-14 06:03:34 UTC (rev 164093)
@@ -1,3 +1,15 @@
+2014-02-13 Dan Bernstein <m...@apple.com>
+
+ [Cocoa] Add a way to get the page from a frame in the injected bundle
+ https://bugs.webkit.org/show_bug.cgi?id=128791
+
+ Reviewed by Anders Carlsson.
+
+ * WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInFrame.mm:
+ (-[WKWebProcessPlugInFrame _browserContextController]): Added.
+ * WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInFramePrivate.h: Declared
+ _browserContextController property.
+
2014-02-13 Anders Carlsson <ander...@apple.com>
Add -[WKWebView stopLoading:]
Modified: trunk/Source/WebKit2/WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInFrame.mm (164092 => 164093)
--- trunk/Source/WebKit2/WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInFrame.mm 2014-02-14 05:37:38 UTC (rev 164092)
+++ trunk/Source/WebKit2/WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInFrame.mm 2014-02-14 06:03:34 UTC (rev 164093)
@@ -31,6 +31,7 @@
#import "WKFrameHandleInternal.h"
#import "WKNSArray.h"
#import "WKNSURLExtras.h"
+#import "WKWebProcessPlugInBrowserContextControllerInternal.h"
#import "WKWebProcessPlugInHitTestResultInternal.h"
#import "WKWebProcessPlugInNodeHandleInternal.h"
#import "WKWebProcessPlugInScriptWorldInternal.h"
@@ -76,6 +77,11 @@
return [JSValue valueWithJSValueRef:valueRef inContext:[self jsContextForWorld:world]];
}
+- (WKWebProcessPlugInBrowserContextController *)_browserContextController
+{
+ return wrapper(*_frame->page());
+}
+
- (NSURL *)URL
{
return [NSURL _web_URLWithWTFString:_frame->url()];
Modified: trunk/Source/WebKit2/WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInFramePrivate.h (164092 => 164093)
--- trunk/Source/WebKit2/WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInFramePrivate.h 2014-02-14 05:37:38 UTC (rev 164092)
+++ trunk/Source/WebKit2/WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInFramePrivate.h 2014-02-14 06:03:34 UTC (rev 164093)
@@ -27,10 +27,14 @@
#if WK_API_ENABLED
+@class WKWebProcessPlugInBrowserContextController;
+
@interface WKWebProcessPlugInFrame (WKPrivate)
+ (instancetype)lookUpFrameFromHandle:(WKFrameHandle *)handle;
+@property (nonatomic, readonly) WKWebProcessPlugInBrowserContextController *_browserContextController;
+
@end
#endif // WK_API_ENABLED
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes