Changeset 163449 in webkit


Ignore:
Timestamp:
Feb 5, 2014 9:13:57 AM (10 years ago)
Author:
mitz@apple.com
Message:

[Cocoa] Expose more WKWebProcessPlugInFrame properties
https://bugs.webkit.org/show_bug.cgi?id=128240

Reviewed by Anders Carlsson.

  • WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInFrame.h: Declared new properties.
  • WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInFrame.mm:

(-[WKWebProcessPlugInFrame URL]): Added.
(-[WKWebProcessPlugInFrame childFrames]): Added.
(-[WKWebProcessPlugInFrame containsAnyFormElements]): Added.

Location:
trunk/Source/WebKit2
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r163448 r163449  
     12014-02-05  Dan Bernstein  <mitz@apple.com>
     2
     3        [Cocoa] Expose more WKWebProcessPlugInFrame properties
     4        https://bugs.webkit.org/show_bug.cgi?id=128240
     5
     6        Reviewed by Anders Carlsson.
     7
     8        * WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInFrame.h: Declared new properties.
     9        * WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInFrame.mm:
     10        (-[WKWebProcessPlugInFrame URL]): Added.
     11        (-[WKWebProcessPlugInFrame childFrames]): Added.
     12        (-[WKWebProcessPlugInFrame containsAnyFormElements]): Added.
     13
    1142014-02-05  Dan Bernstein  <mitz@apple.com>
    215
  • trunk/Source/WebKit2/WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInFrame.h

    r160530 r163449  
    3939@interface WKWebProcessPlugInFrame : NSObject
    4040
     41@property (nonatomic, readonly) NSURL *URL;
     42@property (nonatomic, readonly) NSArray *childFrames;
     43@property (nonatomic, readonly) BOOL containsAnyFormElements;
     44
    4145- (JSContext *)jsContextForWorld:(WKWebProcessPlugInScriptWorld *)world;
    4246- (WKWebProcessPlugInHitTestResult *)hitTest:(CGPoint)point;
  • trunk/Source/WebKit2/WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInFrame.mm

    r160530 r163449  
    2929#if WK_API_ENABLED
    3030
     31#import "WKNSArray.h"
     32#import "WKNSURLExtras.h"
    3133#import "WKWebProcessPlugInHitTestResultInternal.h"
    3234#import "WKWebProcessPlugInNodeHandleInternal.h"
     
    6466}
    6567
     68- (NSURL *)URL
     69{
     70    return [NSURL _web_URLWithWTFString:_frame->url()];
     71}
     72
     73- (NSArray *)childFrames
     74{
     75    return [wrapper(*_frame->childFrames().leakRef()) autorelease];
     76}
     77
     78- (BOOL)containsAnyFormElements
     79{
     80    return !!_frame->containsAnyFormElements();
     81}
     82
    6683#pragma mark WKObject protocol implementation
    6784
Note: See TracChangeset for help on using the changeset viewer.