Add -[WKWebView stopLoading]
authorandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 27 Mar 2014 01:54:24 +0000 (01:54 +0000)
committerandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 27 Mar 2014 01:54:24 +0000 (01:54 +0000)
https://bugs.webkit.org/show_bug.cgi?id=130812

Reviewed by Tim Horton.

* UIProcess/API/Cocoa/WKWebView.h:
* UIProcess/API/Cocoa/WKWebView.mm:
(-[WKWebView stopLoading]):

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

Source/WebKit2/ChangeLog
Source/WebKit2/UIProcess/API/Cocoa/WKWebView.h
Source/WebKit2/UIProcess/API/Cocoa/WKWebView.mm

index ef62751f890eccd15e40cfe4eaa86c42d43dbe1c..8a304c95b6656209274d353cd5a9674bdf85a7e6 100644 (file)
@@ -1,3 +1,14 @@
+2014-03-26  Anders Carlsson  <andersca@apple.com>
+
+        Add -[WKWebView stopLoading]
+        https://bugs.webkit.org/show_bug.cgi?id=130812
+
+        Reviewed by Tim Horton.
+
+        * UIProcess/API/Cocoa/WKWebView.h:
+        * UIProcess/API/Cocoa/WKWebView.mm:
+        (-[WKWebView stopLoading]):
+
 2014-03-26  Tim Horton  <timothy_horton@apple.com>
 
         Assertion failure in RemoteLayerBackingStore::flush
index ed53ca4cf313e5651bb36a8b5aac6b5e06f15170..5a440c7e6e7a5a9143f67008436dcf7e91662e4d 100644 (file)
@@ -118,6 +118,9 @@ WK_API_CLASS
 - (WKNavigation *)goBack;
 - (WKNavigation *)goForward;
 
+- (void)stopLoading;
+
+// FIXME: Move this to WKIBActions.
 - (IBAction)stopLoading:(id)sender;
 
 @property (nonatomic) BOOL allowsBackForwardNavigationGestures;
index 5441953c4873dc417e6556896f0491c855e67d48..ad4e2e27d3c508fea40712c805690fc70cf394c1 100644 (file)
     return nil;
 }
 
+- (void)stopLoading
+{
+    _page->stopLoading();
+}
+
 - (IBAction)stopLoading:(id)sender
 {
     _page->stopLoading();