Changeset 163449 in webkit
- Timestamp:
- Feb 5, 2014 9:13:57 AM (10 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r163448 r163449 1 2014-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 1 14 2014-02-05 Dan Bernstein <mitz@apple.com> 2 15 -
trunk/Source/WebKit2/WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInFrame.h
r160530 r163449 39 39 @interface WKWebProcessPlugInFrame : NSObject 40 40 41 @property (nonatomic, readonly) NSURL *URL; 42 @property (nonatomic, readonly) NSArray *childFrames; 43 @property (nonatomic, readonly) BOOL containsAnyFormElements; 44 41 45 - (JSContext *)jsContextForWorld:(WKWebProcessPlugInScriptWorld *)world; 42 46 - (WKWebProcessPlugInHitTestResult *)hitTest:(CGPoint)point; -
trunk/Source/WebKit2/WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInFrame.mm
r160530 r163449 29 29 #if WK_API_ENABLED 30 30 31 #import "WKNSArray.h" 32 #import "WKNSURLExtras.h" 31 33 #import "WKWebProcessPlugInHitTestResultInternal.h" 32 34 #import "WKWebProcessPlugInNodeHandleInternal.h" … … 64 66 } 65 67 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 66 83 #pragma mark WKObject protocol implementation 67 84
Note: See TracChangeset
for help on using the changeset viewer.