Changeset 164079 in webkit
- Timestamp:
- Feb 13, 2014 5:24:09 PM (10 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r164067 r164079 1 2014-02-13 Anders Carlsson <andersca@apple.com> 2 3 Add -[WKWebView activeURL] 4 https://bugs.webkit.org/show_bug.cgi?id=128777 5 6 Reviewed by Dan Bernstein. 7 8 * UIProcess/API/Cocoa/WKWebView.h: 9 * UIProcess/API/Cocoa/WKWebView.mm: 10 (-[WKWebView activeURL]): 11 * UIProcess/Cocoa/NavigationState.mm: 12 (WebKit::NavigationState::willChangeActiveURL): 13 (WebKit::NavigationState::didChangeActiveURL): 14 1 15 2014-02-13 Anders Carlsson <andersca@apple.com> 2 16 -
trunk/Source/WebKit2/UIProcess/API/Cocoa/WKWebView.h
r164067 r164079 89 89 @property (nonatomic, readonly) NSString *title; 90 90 91 /*! @abstract The active URL. @link WKWebView @/link is KVO-compliant for this property. 92 @discussion This is the URL that should be reflected in the user interface. 93 */ 94 @property (nonatomic, readonly) NSURL *activeURL; 95 91 96 /*! @abstract Whether the view is loading content. @link WKWebView @/link is KVO-compliant for this 92 97 property. */ -
trunk/Source/WebKit2/UIProcess/API/Cocoa/WKWebView.mm
r164067 r164079 30 30 31 31 #import "NavigationState.h" 32 #import "RemoteLayerTreeTransaction.h" 32 33 #import "RemoteObjectRegistry.h" 33 34 #import "RemoteObjectRegistryMessages.h" … … 44 45 #import "WebPageProxy.h" 45 46 #import "WebProcessProxy.h" 46 #import <WebKit2/RemoteLayerTreeTransaction.h>47 #import "WKNSURLExtras.h" 47 48 #import <wtf/RetainPtr.h> 48 49 … … 192 193 } 193 194 195 - (NSURL *)activeURL 196 { 197 return [NSURL _web_URLWithWTFString:_page->pageLoadState().activeURL()]; 198 } 199 194 200 - (BOOL)isLoading 195 201 { -
trunk/Source/WebKit2/UIProcess/Cocoa/NavigationState.mm
r164049 r164079 395 395 void NavigationState::willChangeActiveURL() 396 396 { 397 [m_webView willChangeValueForKey:@"activeURL"]; 397 398 } 398 399 399 400 void NavigationState::didChangeActiveURL() 400 401 { 402 [m_webView didChangeValueForKey:@"activeURL"]; 401 403 } 402 404
Note: See TracChangeset
for help on using the changeset viewer.