Fix the iOS build.
authorweinig@apple.com <weinig@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 30 Nov 2013 00:53:39 +0000 (00:53 +0000)
committerweinig@apple.com <weinig@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 30 Nov 2013 00:53:39 +0000 (00:53 +0000)
* UIProcess/API/Cocoa/WKBrowsingContextController.mm:
(-[WKBrowsingContextController loadDelegate]):
(-[WKBrowsingContextController policyDelegate]):
(-[WKBrowsingContextController setPolicyDelegate:]):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@159878 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebKit2/ChangeLog
Source/WebKit2/UIProcess/API/Cocoa/WKBrowsingContextController.mm

index 69d4ae6..802cdaa 100644 (file)
@@ -1,5 +1,14 @@
 2013-11-29  Sam Weinig  <sam@webkit.org>
 
+        Fix the iOS build.
+
+        * UIProcess/API/Cocoa/WKBrowsingContextController.mm:
+        (-[WKBrowsingContextController loadDelegate]):
+        (-[WKBrowsingContextController policyDelegate]):
+        (-[WKBrowsingContextController setPolicyDelegate:]):
+
+2013-11-29  Sam Weinig  <sam@webkit.org>
+
         [Cocoa] Make WKBrowsingContextController work with WKObject wrapping
         https://bugs.webkit.org/show_bug.cgi?id=125022
 
index 308e6a1..b2519d6 100644 (file)
@@ -607,6 +607,11 @@ static void setUpPagePolicyClient(WKBrowsingContextController *browsingContext,
     WKPageSetPagePolicyClient(pageRef, &policyClient);
 }
 
+- (id<WKBrowsingContextLoadDelegate>)loadDelegate
+{
+    return _loadDelegate;
+}
+
 - (void)setLoadDelegate:(id<WKBrowsingContextLoadDelegate>)loadDelegate
 {
     _loadDelegate = loadDelegate;
@@ -616,7 +621,12 @@ static void setUpPagePolicyClient(WKBrowsingContextController *browsingContext,
         WKPageSetPageLoaderClient(toAPI(reinterpret_cast<WebPageProxy*>(&_page)), nullptr);;
 }
 
--(void)setPolicyDelegate:(id<WKBrowsingContextPolicyDelegate>)policyDelegate
+- (id<WKBrowsingContextPolicyDelegate>)policyDelegate
+{
+    return _policyDelegate;
+}
+
+- (void)setPolicyDelegate:(id<WKBrowsingContextPolicyDelegate>)policyDelegate
 {
     _policyDelegate = policyDelegate;
     if (_policyDelegate)