Title: [164067] trunk/Source/WebKit2
- Revision
- 164067
- Author
- [email protected]
- Date
- 2014-02-13 15:33:34 -0800 (Thu, 13 Feb 2014)
Log Message
Add -[WKWebView goToBackForwardListItem:]
https://bugs.webkit.org/show_bug.cgi?id=128773
Reviewed by Andreas Kling.
* UIProcess/API/Cocoa/WKWebView.h:
* UIProcess/API/Cocoa/WKWebView.mm:
(-[WKWebView goToBackForwardListItem:]):
Modified Paths
Diff
Modified: trunk/Source/WebKit2/ChangeLog (164066 => 164067)
--- trunk/Source/WebKit2/ChangeLog 2014-02-13 23:31:20 UTC (rev 164066)
+++ trunk/Source/WebKit2/ChangeLog 2014-02-13 23:33:34 UTC (rev 164067)
@@ -1,5 +1,16 @@
2014-02-13 Anders Carlsson <[email protected]>
+ Add -[WKWebView goToBackForwardListItem:]
+ https://bugs.webkit.org/show_bug.cgi?id=128773
+
+ Reviewed by Andreas Kling.
+
+ * UIProcess/API/Cocoa/WKWebView.h:
+ * UIProcess/API/Cocoa/WKWebView.mm:
+ (-[WKWebView goToBackForwardListItem:]):
+
+2014-02-13 Anders Carlsson <[email protected]>
+
Make WKWebViewConfigurationPrivate.h private
https://bugs.webkit.org/show_bug.cgi?id=128761
Modified: trunk/Source/WebKit2/UIProcess/API/Cocoa/WKWebView.h (164066 => 164067)
--- trunk/Source/WebKit2/UIProcess/API/Cocoa/WKWebView.h 2014-02-13 23:31:20 UTC (rev 164066)
+++ trunk/Source/WebKit2/UIProcess/API/Cocoa/WKWebView.h 2014-02-13 23:33:34 UTC (rev 164067)
@@ -35,6 +35,7 @@
#endif
@class WKBackForwardList;
+@class WKBackForwardListItem;
@class WKNavigation;
@class WKWebViewConfiguration;
@@ -77,6 +78,14 @@
- (WKNavigation *)loadRequest:(NSURLRequest *)request;
+/*! @abstract Navigates to an item from the back-forward list and sets it as the current item.
+ @param item The item to navigate to. Must be one of the items in the receiver's back-forward
+ list.
+ @result A new navigation to requested item, or nil if it is the current item.
+ @seealso backForwardList
+ */
+- (WKNavigation *)goToBackForwardListItem:(WKBackForwardListItem *)item;
+
@property (nonatomic, readonly) NSString *title;
/*! @abstract Whether the view is loading content. @link WKWebView @/link is KVO-compliant for this
Modified: trunk/Source/WebKit2/UIProcess/API/Cocoa/WKWebView.mm (164066 => 164067)
--- trunk/Source/WebKit2/UIProcess/API/Cocoa/WKWebView.mm 2014-02-13 23:31:20 UTC (rev 164066)
+++ trunk/Source/WebKit2/UIProcess/API/Cocoa/WKWebView.mm 2014-02-13 23:33:34 UTC (rev 164067)
@@ -32,6 +32,7 @@
#import "RemoteObjectRegistry.h"
#import "RemoteObjectRegistryMessages.h"
#import "WKBackForwardListInternal.h"
+#import "WKBackForwardListItemInternal.h"
#import "WKNavigationDelegate.h"
#import "WKNavigationInternal.h"
#import "WKPreferencesInternal.h"
@@ -177,6 +178,14 @@
return [navigation.leakRef() autorelease];
}
+- (WKNavigation *)goToBackForwardListItem:(WKBackForwardListItem *)item
+{
+ _page->goToBackForwardItem(&item._item);
+
+ // FIXME: return a WKNavigation object.
+ return nil;
+}
+
- (NSString *)title
{
return _page->pageLoadState().title();
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes