Changeset 166546 in webkit


Ignore:
Timestamp:
Mar 31, 2014 4:49:47 PM (10 years ago)
Author:
andersca@apple.com
Message:

Rename -[WKNavigationAction destinationFrame] to -[WKNavigationAction targetFrame]
https://bugs.webkit.org/show_bug.cgi?id=130994

Reviewed by Dan Bernstein.

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

(-[WKNavigationAction description]):
(-[WKNavigationAction targetFrame]):
(-[WKNavigationAction setTargetFrame:]):
(-[WKNavigationAction destinationFrame]): Deleted.
(-[WKNavigationAction setDestinationFrame:]): Deleted.

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

(WebKit::NavigationState::PolicyClient::decidePolicyForNavigationAction):

Location:
trunk/Source/WebKit2
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r166545 r166546  
     12014-03-31  Anders Carlsson  <andersca@apple.com>
     2
     3        Rename -[WKNavigationAction destinationFrame] to -[WKNavigationAction targetFrame]
     4        https://bugs.webkit.org/show_bug.cgi?id=130994
     5
     6        Reviewed by Dan Bernstein.
     7
     8        * UIProcess/API/Cocoa/WKNavigationAction.h:
     9        * UIProcess/API/Cocoa/WKNavigationAction.mm:
     10        (-[WKNavigationAction description]):
     11        (-[WKNavigationAction targetFrame]):
     12        (-[WKNavigationAction setTargetFrame:]):
     13        (-[WKNavigationAction destinationFrame]): Deleted.
     14        (-[WKNavigationAction setDestinationFrame:]): Deleted.
     15        * UIProcess/API/Cocoa/WKNavigationActionInternal.h:
     16        * UIProcess/Cocoa/NavigationState.mm:
     17        (WebKit::NavigationState::PolicyClient::decidePolicyForNavigationAction):
     18
    1192014-03-31  Tim Horton  <timothy_horton@apple.com>
    220
  • trunk/Source/WebKit2/UIProcess/API/Cocoa/WKNavigationAction.h

    r165678 r166546  
    4444
    4545@property (nonatomic, readonly) WKFrameInfo *sourceFrame;
    46 @property (nonatomic, readonly) WKFrameInfo *destinationFrame;
     46@property (nonatomic, readonly) WKFrameInfo *targetFrame;
    4747
    4848@property (nonatomic, readonly) WKNavigationType navigationType;
  • trunk/Source/WebKit2/UIProcess/API/Cocoa/WKNavigationAction.mm

    r165412 r166546  
    3333@implementation WKNavigationAction {
    3434    RetainPtr<WKFrameInfo> _sourceFrame;
    35     RetainPtr<WKFrameInfo> _destinationFrame;
     35    RetainPtr<WKFrameInfo> _targetFrame;
    3636    RetainPtr<NSURLRequest> _request;
    3737    RetainPtr<NSURL> _originalURL;
     
    4040- (NSString *)description
    4141{
    42     return [NSString stringWithFormat:@"<%@: %p; navigationType = %ld; request = %@; sourceFrame = %@; destinationFrame = %@>", NSStringFromClass(self.class), self,
    43         (long)_navigationType, _request.get(), _sourceFrame.get(), _destinationFrame.get()];
     42    return [NSString stringWithFormat:@"<%@: %p; navigationType = %ld; request = %@; sourceFrame = %@; targetFrame = %@>", NSStringFromClass(self.class), self,
     43        (long)_navigationType, _request.get(), _sourceFrame.get(), _targetFrame.get()];
    4444}
    4545
     
    5454}
    5555
    56 - (WKFrameInfo *)destinationFrame
     56- (WKFrameInfo *)targetFrame
    5757{
    58     return _destinationFrame.get();
     58    return _targetFrame.get();
    5959}
    6060
    61 - (void)setDestinationFrame:(WKFrameInfo *)destinationFrame
     61- (void)setTargetFrame:(WKFrameInfo *)targetFrame
    6262{
    63     _destinationFrame = destinationFrame;
     63    _targetFrame = targetFrame;
    6464}
    6565
  • trunk/Source/WebKit2/UIProcess/API/Cocoa/WKNavigationActionInternal.h

    r164315 r166546  
    3131
    3232@property (nonatomic, readwrite, strong) WKFrameInfo *sourceFrame;
    33 @property (nonatomic, readwrite, strong) WKFrameInfo *destinationFrame;
     33@property (nonatomic, readwrite, strong) WKFrameInfo *targetFrame;
    3434
    3535@property (nonatomic, readwrite) WKNavigationType navigationType;
  • trunk/Source/WebKit2/UIProcess/Cocoa/NavigationState.mm

    r166338 r166546  
    247247
    248248    if (destinationFrame)
    249         [navigationAction setDestinationFrame:adoptNS([[WKFrameInfo alloc] initWithWebFrameProxy:*destinationFrame]).get()];
     249        [navigationAction setTargetFrame:adoptNS([[WKFrameInfo alloc] initWithWebFrameProxy:*destinationFrame]).get()];
    250250
    251251    if (sourceFrame) {
    252252        if (sourceFrame == destinationFrame)
    253             [navigationAction setSourceFrame:[navigationAction destinationFrame]];
     253            [navigationAction setSourceFrame:[navigationAction targetFrame]];
    254254        else
    255             [navigationAction setDestinationFrame:adoptNS([[WKFrameInfo alloc] initWithWebFrameProxy:*sourceFrame]).get()];
     255            [navigationAction setTargetFrame:adoptNS([[WKFrameInfo alloc] initWithWebFrameProxy:*sourceFrame]).get()];
    256256    }
    257257
Note: See TracChangeset for help on using the changeset viewer.