Changeset 164111 in webkit
- Timestamp:
- Feb 14, 2014 11:26:32 AM (10 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r164110 r164111 1 2014-02-14 Anders Carlsson <andersca@apple.com> 2 3 Add -[WKWebView estimatedProgress] 4 https://bugs.webkit.org/show_bug.cgi?id=128830 5 6 Reviewed by Dan Bernstein. 7 8 * UIProcess/API/Cocoa/WKWebView.h: 9 * UIProcess/API/Cocoa/WKWebView.mm: 10 (-[WKWebView estimatedProgress]): 11 * UIProcess/Cocoa/NavigationState.mm: 12 (WebKit::NavigationState::willChangeEstimatedProgress): 13 (WebKit::NavigationState::didChangeEstimatedProgress): 14 1 15 2014-02-13 Simon Fraser <simon.fraser@apple.com> 2 16 -
trunk/Source/WebKit2/UIProcess/API/Cocoa/WKWebView.h
r164083 r164111 100 100 @property (nonatomic, readonly, getter=isLoading) BOOL loading; 101 101 102 /*! 103 @abstract An estimate of the fraction complete for a document load. @link WKWebView @/link is 104 KVO-compliant for this property. 105 @discussion This value will range from 0 to 1 and, once a load completes, will remain at 1.0 106 until a new load starts, at which point it will be reset to 0. The value is an estimate based 107 on the total number of bytes expected to be received for a document, 108 including all its possible subresources. 109 */ 110 @property (nonatomic, readonly) double estimatedProgress; 111 102 112 @property (nonatomic, readonly) BOOL hasOnlySecureContent; 103 113 -
trunk/Source/WebKit2/UIProcess/API/Cocoa/WKWebView.mm
r164109 r164111 209 209 } 210 210 211 - (double)estimatedProgress 212 { 213 return _page->pageLoadState().estimatedProgress(); 214 } 215 211 216 - (BOOL)hasOnlySecureContent 212 217 { -
trunk/Source/WebKit2/UIProcess/Cocoa/NavigationState.mm
r164079 r164111 415 415 void NavigationState::willChangeEstimatedProgress() 416 416 { 417 [m_webView willChangeValueForKey:@"estimatedProgress"]; 417 418 } 418 419 419 420 void NavigationState::didChangeEstimatedProgress() 420 421 { 422 [m_webView didChangeValueForKey:@"estimatedProgress"]; 421 423 } 422 424
Note: See TracChangeset
for help on using the changeset viewer.