Changeset 162899 in webkit


Ignore:
Timestamp:
Jan 27, 2014 6:04:30 PM (10 years ago)
Author:
andersca@apple.com
Message:

Add -[WKWebView loadRequest:] API
https://bugs.webkit.org/show_bug.cgi?id=127727

Reviewed by Dan Bernstein.

  • UIProcess/API/Cocoa/WKWebView.h:
  • UIProcess/API/Cocoa/WKWebView.mm:

(-[WKWebView initWithFrame:configuration:]):
(-[WKWebView loadRequest:]):

Location:
trunk/Source/WebKit2
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r162891 r162899  
     12014-01-27  Anders Carlsson  <andersca@apple.com>
     2
     3        Add -[WKWebView loadRequest:] API
     4        https://bugs.webkit.org/show_bug.cgi?id=127727
     5
     6        Reviewed by Dan Bernstein.
     7
     8        * UIProcess/API/Cocoa/WKWebView.h:
     9        * UIProcess/API/Cocoa/WKWebView.mm:
     10        (-[WKWebView initWithFrame:configuration:]):
     11        (-[WKWebView loadRequest:]):
     12
    1132014-01-27  Brady Eidson  <beidson@apple.com>
    214
  • trunk/Source/WebKit2/UIProcess/API/Cocoa/WKWebView.h

    r162865 r162899  
    6767- (instancetype)initWithFrame:(CGRect)frame configuration:(WKWebViewConfiguration *)configuration WK_DESIGNATED_INITIALIZER;
    6868
     69// FIXME: This should return a WKNavigation object.
     70- (void)loadRequest:(NSURLRequest *)request;
     71
    6972@end
    7073
  • trunk/Source/WebKit2/UIProcess/API/Cocoa/WKWebView.mm

    r162886 r162899  
    9898
    9999    [self _frameOrBoundsChanged];
    100 
    101100#endif
    102101
     
    107106{
    108107    return [[_configuration copy] autorelease];
     108}
     109
     110- (void)loadRequest:(NSURLRequest *)request
     111{
     112    _page->loadURLRequest(API::URLRequest::create(request).get());
    109113}
    110114
Note: See TracChangeset for help on using the changeset viewer.