Changeset 158942 in webkit
- Timestamp:
- Nov 8, 2013 12:42:42 PM (10 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r158939 r158942 1 2013-11-08 Anders Carlsson <andersca@apple.com> 2 3 Add a way to get a WKWebProcessPlugInBrowserContextController from a handle 4 https://bugs.webkit.org/show_bug.cgi?id=124063 5 6 Reviewed by Beth Dakin. 7 8 * WebProcess/InjectedBundle/API/mac/WKWebProcessPlugInBrowserContextController.mm: 9 (+[WKWebProcessPlugInBrowserContextController lookUpBrowsingContextFromHandle:]): 10 * WebProcess/InjectedBundle/API/mac/WKWebProcessPlugInBrowserContextControllerPrivate.h: 11 1 12 2013-11-08 Anders Carlsson <andersca@apple.com> 2 13 -
trunk/Source/WebKit2/WebProcess/InjectedBundle/API/mac/WKWebProcessPlugInBrowserContextController.mm
r158939 r158942 36 36 #import "WKDOMInternals.h" 37 37 #import "WKRetainPtr.h" 38 #import "WKWebProcessPlugInInternal.h" 38 39 #import "WebPage.h" 40 #import "WebProcess.h" 39 41 #import <WebCore/Document.h> 40 42 #import <WebCore/Frame.h> … … 90 92 } 91 93 94 + (instancetype)lookUpBrowsingContextFromHandle:(WKBrowsingContextHandle *)handle 95 { 96 WebPage* webPage = WebProcess::shared().webPage(handle.pageID); 97 if (!webPage) 98 return nil; 99 100 return [[WKWebProcessPlugInController _shared] _browserContextControllerForBundlePageRef:toAPI(webPage)]; 101 } 102 92 103 @end 93 104 -
trunk/Source/WebKit2/WebProcess/InjectedBundle/API/mac/WKWebProcessPlugInBrowserContextControllerPrivate.h
r158939 r158942 38 38 @property (nonatomic, readonly) WKBrowsingContextHandle *handle; 39 39 40 + (instancetype)lookUpBrowsingContextFromHandle:(WKBrowsingContextHandle *)handle; 41 40 42 @end 41 43
Note: See TracChangeset
for help on using the changeset viewer.