Title: [158942] trunk/Source/WebKit2
- Revision
- 158942
- Author
- ander...@apple.com
- Date
- 2013-11-08 12:42:42 -0800 (Fri, 08 Nov 2013)
Log Message
Add a way to get a WKWebProcessPlugInBrowserContextController from a handle
https://bugs.webkit.org/show_bug.cgi?id=124063
Reviewed by Beth Dakin.
* WebProcess/InjectedBundle/API/mac/WKWebProcessPlugInBrowserContextController.mm:
(+[WKWebProcessPlugInBrowserContextController lookUpBrowsingContextFromHandle:]):
* WebProcess/InjectedBundle/API/mac/WKWebProcessPlugInBrowserContextControllerPrivate.h:
Modified Paths
Diff
Modified: trunk/Source/WebKit2/ChangeLog (158941 => 158942)
--- trunk/Source/WebKit2/ChangeLog 2013-11-08 20:41:12 UTC (rev 158941)
+++ trunk/Source/WebKit2/ChangeLog 2013-11-08 20:42:42 UTC (rev 158942)
@@ -1,5 +1,16 @@
2013-11-08 Anders Carlsson <ander...@apple.com>
+ Add a way to get a WKWebProcessPlugInBrowserContextController from a handle
+ https://bugs.webkit.org/show_bug.cgi?id=124063
+
+ Reviewed by Beth Dakin.
+
+ * WebProcess/InjectedBundle/API/mac/WKWebProcessPlugInBrowserContextController.mm:
+ (+[WKWebProcessPlugInBrowserContextController lookUpBrowsingContextFromHandle:]):
+ * WebProcess/InjectedBundle/API/mac/WKWebProcessPlugInBrowserContextControllerPrivate.h:
+
+2013-11-08 Anders Carlsson <ander...@apple.com>
+
More work on WKBrowsingContextHandle
https://bugs.webkit.org/show_bug.cgi?id=124060
Modified: trunk/Source/WebKit2/WebProcess/InjectedBundle/API/mac/WKWebProcessPlugInBrowserContextController.mm (158941 => 158942)
--- trunk/Source/WebKit2/WebProcess/InjectedBundle/API/mac/WKWebProcessPlugInBrowserContextController.mm 2013-11-08 20:41:12 UTC (rev 158941)
+++ trunk/Source/WebKit2/WebProcess/InjectedBundle/API/mac/WKWebProcessPlugInBrowserContextController.mm 2013-11-08 20:42:42 UTC (rev 158942)
@@ -35,7 +35,9 @@
#import "WKBundlePagePrivate.h"
#import "WKDOMInternals.h"
#import "WKRetainPtr.h"
+#import "WKWebProcessPlugInInternal.h"
#import "WebPage.h"
+#import "WebProcess.h"
#import <WebCore/Document.h>
#import <WebCore/Frame.h>
@@ -89,6 +91,15 @@
return [[[WKBrowsingContextHandle alloc] _initWithPageID:toImpl(_bundlePageRef.get())->pageID()] autorelease];
}
++ (instancetype)lookUpBrowsingContextFromHandle:(WKBrowsingContextHandle *)handle
+{
+ WebPage* webPage = WebProcess::shared().webPage(handle.pageID);
+ if (!webPage)
+ return nil;
+
+ return [[WKWebProcessPlugInController _shared] _browserContextControllerForBundlePageRef:toAPI(webPage)];
+}
+
@end
#endif // WK_API_ENABLED
Modified: trunk/Source/WebKit2/WebProcess/InjectedBundle/API/mac/WKWebProcessPlugInBrowserContextControllerPrivate.h (158941 => 158942)
--- trunk/Source/WebKit2/WebProcess/InjectedBundle/API/mac/WKWebProcessPlugInBrowserContextControllerPrivate.h 2013-11-08 20:41:12 UTC (rev 158941)
+++ trunk/Source/WebKit2/WebProcess/InjectedBundle/API/mac/WKWebProcessPlugInBrowserContextControllerPrivate.h 2013-11-08 20:42:42 UTC (rev 158942)
@@ -37,6 +37,8 @@
@property (nonatomic, readonly) WKBrowsingContextHandle *handle;
++ (instancetype)lookUpBrowsingContextFromHandle:(WKBrowsingContextHandle *)handle;
+
@end
#endif // WK_API_ENABLED
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes