Changeset 166731 in webkit


Ignore:
Timestamp:
Apr 3, 2014 11:06:50 AM (10 years ago)
Author:
andersca@apple.com
Message:

Document WKNavigationAction and WKNavigationResponse
https://bugs.webkit.org/show_bug.cgi?id=131138

Reviewed by Sam Weinig.

  • UIProcess/API/Cocoa/WKFrameInfo.h:
  • UIProcess/API/Cocoa/WKNavigationAction.h:
  • UIProcess/API/Cocoa/WKNavigationResponse.h:
Location:
trunk/Source/WebKit2
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r166730 r166731  
     12014-04-02  Anders Carlsson  <andersca@apple.com>
     2
     3        Document WKNavigationAction and WKNavigationResponse
     4        https://bugs.webkit.org/show_bug.cgi?id=131138
     5
     6        Reviewed by Sam Weinig.
     7
     8        * UIProcess/API/Cocoa/WKFrameInfo.h:
     9        * UIProcess/API/Cocoa/WKNavigationAction.h:
     10        * UIProcess/API/Cocoa/WKNavigationResponse.h:
     11
    1122014-04-03  Anders Carlsson  <andersca@apple.com>
    213
  • trunk/Source/WebKit2/UIProcess/API/Cocoa/WKFrameInfo.h

    r163501 r166731  
    2929#if WK_API_ENABLED
    3030
     31/*! A @link WKFrameInfo @/link object contains information about a frame on a web page.
     32 @discussion WKFrameInfo objects are transient data only objects, they can not be used to uniquely
     33 identify a frame across multiple delegate method calls.
     34 */
    3135WK_API_CLASS
    3236@interface WKFrameInfo : NSObject
    3337
     38/*! @abstract Whether the frame is the main frame or a subframe.
     39 */
    3440@property (nonatomic, readonly, getter=isMainFrame) BOOL mainFrame;
     41
     42/*! @abstract The current NSURLRequest of this frame.
     43 */
    3544@property (nonatomic, readonly) NSURLRequest *request;
    3645
  • trunk/Source/WebKit2/UIProcess/API/Cocoa/WKNavigationAction.h

    r166546 r166731  
    3131@class WKFrameInfo;
    3232
     33/*! @enum WKNavigationType
     34 @abstract the type of action that triggered a possible navigation.
     35 @constant WKNavigationTypeLinkActivated    A link with an href activated by the user.
     36 @constant WKNavigationTypeFormSubmitted    A form was submitted.
     37 @constant WKNavigationTypeBackForward      The user requested an item from the back forward list.
     38 @constant WKNavigationTypeReload           The user reloaded a page.
     39 @constant WKNavigationTypeFormResubmitted  A form as resubmitted (for example by going back, forward or reloading).
     40 @constant WKNavigationTypeOther            Navigation is taking place for some other reason.
     41 */
    3342typedef NS_ENUM(NSInteger, WKNavigationType) {
    3443    WKNavigationTypeLinkActivated,
     
    4049};
    4150
     51
     52/*! Contains information about an action that may cause a navigation, used for making policy decisions.
     53 */
    4254WK_API_CLASS
    4355@interface WKNavigationAction : NSObject
    4456
     57/*! @abstract Represents the frame that is requesting the navigation.
     58 */
    4559@property (nonatomic, readonly) WKFrameInfo *sourceFrame;
     60
     61/*! @abstract Represents the target frame. If this is a new window navigation, targetFrame will be nil.
     62 */
    4663@property (nonatomic, readonly) WKFrameInfo *targetFrame;
    4764
     65/*! @abstract The type of the navigation.
     66 */
    4867@property (nonatomic, readonly) WKNavigationType navigationType;
     68
     69/*! @abstract The NSURLRequest of the navigation.
     70 */
    4971@property (nonatomic, readonly) NSURLRequest *request;
    5072
  • trunk/Source/WebKit2/UIProcess/API/Cocoa/WKNavigationResponse.h

    r165678 r166731  
    3131@class WKFrameInfo;
    3232
     33/*! Contains information about a navigation response, used for making policy decisions.
     34 */
    3335WK_API_CLASS
    3436@interface WKNavigationResponse : NSObject
    3537
     38/*! @abstract Represents the frame that is being navigated.
     39 */
    3640@property (nonatomic, readonly) WKFrameInfo *frame;
     41
     42/*! @abstract The NSURLResponse of the frame.
     43 */
    3744@property (nonatomic, readonly) NSURLResponse *response;
     45
     46/*! @abstract Whether WebKit can show the MIME type natively or not.
     47 */
    3848@property (nonatomic, readonly) BOOL canShowMIMEType;
    3949
Note: See TracChangeset for help on using the changeset viewer.