Changeset 166623 in webkit


Ignore:
Timestamp:
Apr 1, 2014 4:37:58 PM (10 years ago)
Author:
andersca@apple.com
Message:

Rename -[WKWebView activeURL] to -[WKWebView URL]
https://bugs.webkit.org/show_bug.cgi?id=131077

Reviewed by Tim Horton.

Keep -[WKWebView activeURL] as SPI until no clients depend on it.

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

(-[WKWebView URL]):
(-[WKWebView activeURL]):

  • UIProcess/API/Cocoa/WKWebViewPrivate.h:
  • UIProcess/Cocoa/NavigationState.mm:

(WebKit::NavigationState::willChangeActiveURL):
(WebKit::NavigationState::didChangeActiveURL):

Location:
trunk/Source/WebKit2
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r166621 r166623  
     12014-04-01  Anders Carlsson  <andersca@apple.com>
     2
     3        Rename -[WKWebView activeURL] to -[WKWebView URL]
     4        https://bugs.webkit.org/show_bug.cgi?id=131077
     5
     6        Reviewed by Tim Horton.
     7
     8        Keep -[WKWebView activeURL] as SPI until no clients depend on it.
     9
     10        * UIProcess/API/Cocoa/WKWebView.h:
     11        * UIProcess/API/Cocoa/WKWebView.mm:
     12        (-[WKWebView URL]):
     13        (-[WKWebView activeURL]):
     14        * UIProcess/API/Cocoa/WKWebViewPrivate.h:
     15        * UIProcess/Cocoa/NavigationState.mm:
     16        (WebKit::NavigationState::willChangeActiveURL):
     17        (WebKit::NavigationState::didChangeActiveURL):
     18
    1192014-04-01  Anders Carlsson  <andersca@apple.com>
    220
  • trunk/Source/WebKit2/UIProcess/API/Cocoa/WKWebView.h

    r166621 r166623  
    9595 @discussion This is the URL that should be reflected in the user interface.
    9696 */
    97 @property (nonatomic, readonly) NSURL *activeURL;
     97@property (nonatomic, readonly) NSURL *URL;
    9898
    9999/*! @abstract Whether the view is loading content. @link WKWebView @/link is KVO-compliant for this
  • trunk/Source/WebKit2/UIProcess/API/Cocoa/WKWebView.mm

    r166621 r166623  
    266266}
    267267
    268 - (NSURL *)activeURL
     268- (NSURL *)URL
    269269{
    270270    return [NSURL _web_URLWithWTFString:_page->pageLoadState().activeURL()];
     
    11801180}
    11811181
     1182// FIXME: Remove this once nobody uses it.
     1183- (NSURL *)activeURL
     1184{
     1185    return self.URL;
     1186}
     1187
    11821188#else
    11831189
  • trunk/Source/WebKit2/UIProcess/API/Cocoa/WKWebViewPrivate.h

    r166612 r166623  
    100100
    101101- (void)_snapshotRect:(CGRect)rectInViewCoordinates intoImageOfWidth:(CGFloat)imageWidth completionHandler:(void(^)(CGImageRef))completionHandler;
     102
     103// FIXME: Remove this once nobody uses it.
     104@property (nonatomic, readonly) NSURL *activeURL;
     105
    102106#else
    103107@property (readonly) NSColor *_pageExtendedBackgroundColor;
  • trunk/Source/WebKit2/UIProcess/Cocoa/NavigationState.mm

    r166613 r166623  
    543543void NavigationState::willChangeActiveURL()
    544544{
    545     [m_webView willChangeValueForKey:@"activeURL"];
     545    [m_webView willChangeValueForKey:@"URL"];
    546546}
    547547
    548548void NavigationState::didChangeActiveURL()
    549549{
    550     [m_webView didChangeValueForKey:@"activeURL"];
     550    [m_webView didChangeValueForKey:@"URL"];
    551551}
    552552
Note: See TracChangeset for help on using the changeset viewer.