Changeset 164111 in webkit


Ignore:
Timestamp:
Feb 14, 2014 11:26:32 AM (10 years ago)
Author:
andersca@apple.com
Message:

Add -[WKWebView estimatedProgress]
https://bugs.webkit.org/show_bug.cgi?id=128830

Reviewed by Dan Bernstein.

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

(-[WKWebView estimatedProgress]):

  • UIProcess/Cocoa/NavigationState.mm:

(WebKit::NavigationState::willChangeEstimatedProgress):
(WebKit::NavigationState::didChangeEstimatedProgress):

Location:
trunk/Source/WebKit2
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r164110 r164111  
     12014-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
    1152014-02-13  Simon Fraser  <simon.fraser@apple.com>
    216
  • trunk/Source/WebKit2/UIProcess/API/Cocoa/WKWebView.h

    r164083 r164111  
    100100@property (nonatomic, readonly, getter=isLoading) BOOL loading;
    101101
     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
    102112@property (nonatomic, readonly) BOOL hasOnlySecureContent;
    103113
  • trunk/Source/WebKit2/UIProcess/API/Cocoa/WKWebView.mm

    r164109 r164111  
    209209}
    210210
     211- (double)estimatedProgress
     212{
     213    return _page->pageLoadState().estimatedProgress();
     214}
     215
    211216- (BOOL)hasOnlySecureContent
    212217{
  • trunk/Source/WebKit2/UIProcess/Cocoa/NavigationState.mm

    r164079 r164111  
    415415void NavigationState::willChangeEstimatedProgress()
    416416{
     417    [m_webView willChangeValueForKey:@"estimatedProgress"];
    417418}
    418419
    419420void NavigationState::didChangeEstimatedProgress()
    420421{
     422    [m_webView didChangeValueForKey:@"estimatedProgress"];
    421423}
    422424
Note: See TracChangeset for help on using the changeset viewer.