Changeset 164067 in webkit


Ignore:
Timestamp:
Feb 13, 2014 3:33:34 PM (10 years ago)
Author:
andersca@apple.com
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:]):

Location:
trunk/Source/WebKit2
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r164054 r164067  
     12014-02-13  Anders Carlsson  <andersca@apple.com>
     2
     3        Add -[WKWebView goToBackForwardListItem:]
     4        https://bugs.webkit.org/show_bug.cgi?id=128773
     5
     6        Reviewed by Andreas Kling.
     7
     8        * UIProcess/API/Cocoa/WKWebView.h:
     9        * UIProcess/API/Cocoa/WKWebView.mm:
     10        (-[WKWebView goToBackForwardListItem:]):
     11
    1122014-02-13  Anders Carlsson  <andersca@apple.com>
    213
  • trunk/Source/WebKit2/UIProcess/API/Cocoa/WKWebView.h

    r163994 r164067  
    3636
    3737@class WKBackForwardList;
     38@class WKBackForwardListItem;
    3839@class WKNavigation;
    3940@class WKWebViewConfiguration;
     
    7879- (WKNavigation *)loadRequest:(NSURLRequest *)request;
    7980
     81/*! @abstract Navigates to an item from the back-forward list and sets it as the current item.
     82 @param item The item to navigate to. Must be one of the items in the receiver's back-forward
     83 list.
     84 @result A new navigation to requested item, or nil if it is the current item.
     85 @seealso backForwardList
     86 */
     87- (WKNavigation *)goToBackForwardListItem:(WKBackForwardListItem *)item;
     88
    8089@property (nonatomic, readonly) NSString *title;
    8190
  • trunk/Source/WebKit2/UIProcess/API/Cocoa/WKWebView.mm

    r164050 r164067  
    3333#import "RemoteObjectRegistryMessages.h"
    3434#import "WKBackForwardListInternal.h"
     35#import "WKBackForwardListItemInternal.h"
    3536#import "WKNavigationDelegate.h"
    3637#import "WKNavigationInternal.h"
     
    178179}
    179180
     181- (WKNavigation *)goToBackForwardListItem:(WKBackForwardListItem *)item
     182{
     183    _page->goToBackForwardItem(&item._item);
     184
     185    // FIXME: return a WKNavigation object.
     186    return nil;
     187}
     188
    180189- (NSString *)title
    181190{
Note: See TracChangeset for help on using the changeset viewer.