Changeset 166546 in webkit
- Timestamp:
- Mar 31, 2014 4:49:47 PM (10 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r166545 r166546 1 2014-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 1 19 2014-03-31 Tim Horton <timothy_horton@apple.com> 2 20 -
trunk/Source/WebKit2/UIProcess/API/Cocoa/WKNavigationAction.h
r165678 r166546 44 44 45 45 @property (nonatomic, readonly) WKFrameInfo *sourceFrame; 46 @property (nonatomic, readonly) WKFrameInfo * destinationFrame;46 @property (nonatomic, readonly) WKFrameInfo *targetFrame; 47 47 48 48 @property (nonatomic, readonly) WKNavigationType navigationType; -
trunk/Source/WebKit2/UIProcess/API/Cocoa/WKNavigationAction.mm
r165412 r166546 33 33 @implementation WKNavigationAction { 34 34 RetainPtr<WKFrameInfo> _sourceFrame; 35 RetainPtr<WKFrameInfo> _ destinationFrame;35 RetainPtr<WKFrameInfo> _targetFrame; 36 36 RetainPtr<NSURLRequest> _request; 37 37 RetainPtr<NSURL> _originalURL; … … 40 40 - (NSString *)description 41 41 { 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()]; 44 44 } 45 45 … … 54 54 } 55 55 56 - (WKFrameInfo *) destinationFrame56 - (WKFrameInfo *)targetFrame 57 57 { 58 return _ destinationFrame.get();58 return _targetFrame.get(); 59 59 } 60 60 61 - (void)set DestinationFrame:(WKFrameInfo *)destinationFrame61 - (void)setTargetFrame:(WKFrameInfo *)targetFrame 62 62 { 63 _ destinationFrame = destinationFrame;63 _targetFrame = targetFrame; 64 64 } 65 65 -
trunk/Source/WebKit2/UIProcess/API/Cocoa/WKNavigationActionInternal.h
r164315 r166546 31 31 32 32 @property (nonatomic, readwrite, strong) WKFrameInfo *sourceFrame; 33 @property (nonatomic, readwrite, strong) WKFrameInfo * destinationFrame;33 @property (nonatomic, readwrite, strong) WKFrameInfo *targetFrame; 34 34 35 35 @property (nonatomic, readwrite) WKNavigationType navigationType; -
trunk/Source/WebKit2/UIProcess/Cocoa/NavigationState.mm
r166338 r166546 247 247 248 248 if (destinationFrame) 249 [navigationAction set DestinationFrame:adoptNS([[WKFrameInfo alloc] initWithWebFrameProxy:*destinationFrame]).get()];249 [navigationAction setTargetFrame:adoptNS([[WKFrameInfo alloc] initWithWebFrameProxy:*destinationFrame]).get()]; 250 250 251 251 if (sourceFrame) { 252 252 if (sourceFrame == destinationFrame) 253 [navigationAction setSourceFrame:[navigationAction destinationFrame]];253 [navigationAction setSourceFrame:[navigationAction targetFrame]]; 254 254 else 255 [navigationAction set DestinationFrame:adoptNS([[WKFrameInfo alloc] initWithWebFrameProxy:*sourceFrame]).get()];255 [navigationAction setTargetFrame:adoptNS([[WKFrameInfo alloc] initWithWebFrameProxy:*sourceFrame]).get()]; 256 256 } 257 257
Note: See TracChangeset
for help on using the changeset viewer.