Changeset 163412 in webkit
- Timestamp:
- Feb 4, 2014, 3:55:20 PM (11 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r163409 r163412 1 2014-02-04 Dan Bernstein <mitz@apple.com> 2 3 [Cocoa] Expose more WKWebProcessPlugInNodeHandle properties 4 https://bugs.webkit.org/show_bug.cgi?id=128219 5 6 Reviewed by Anders Carlsson. 7 8 * WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInNodeHandle.h: Declared new 9 properties. 10 * WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInNodeHandle.mm: 11 (-[WKWebProcessPlugInNodeHandle elementBounds]): Added. 12 (-[WKWebProcessPlugInNodeHandle HTMLInputElementIsAutoFilled]): Added. 13 (-[WKWebProcessPlugInNodeHandle setHTMLInputElementIsAutoFilled:]): Added. 14 (-[WKWebProcessPlugInNodeHandle HTMLInputELementIsUserEdited]): Added. 15 (-[WKWebProcessPlugInNodeHandle HTMLTextAreaELementIsUserEdited]): Added. 16 (-[WKWebProcessPlugInNodeHandle HTMLTableCellElementCellAbove]): Added. 17 * WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInNodeHandleInternal.h: Rolled 18 Internal category into the class extension. 19 20 * WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInScriptWorld.h: Declared 21 -clearWrappers. 22 * WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInScriptWorld.mm: 23 (-[WKWebProcessPlugInScriptWorld clearWrappers]): Added. Calls through to clearWrappers(). 24 * WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInScriptWorldInternal.h: Rolled 25 Internal category into the class extension. 26 1 27 2014-02-04 Alexey Proskuryakov <ap@apple.com> 2 28 -
trunk/Source/WebKit2/WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInNodeHandle.h
r162519 r163412 39 39 - (WKWebProcessPlugInFrame *)htmlIFrameElementContentFrame; 40 40 41 @property (nonatomic, readonly) CGRect elementBounds; 42 @property (nonatomic) BOOL HTMLInputElementIsAutoFilled; 43 @property (nonatomic, readonly) BOOL HTMLInputElementIsUserEdited; 44 @property (nonatomic, readonly) BOOL HTMLTextAreaElementIsUserEdited; 45 @property (nonatomic, readonly) WKWebProcessPlugInNodeHandle *HTMLTableCellElementCellAbove; 46 41 47 @end 42 48 -
trunk/Source/WebKit2/WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInNodeHandle.mm
r162519 r163412 28 28 29 29 #import "WKWebProcessPlugInFrameInternal.h" 30 #import <WebCore/IntRect.h> 30 31 31 32 #if WK_API_ENABLED … … 58 59 } 59 60 61 - (CGRect)elementBounds 62 { 63 return _nodeHandle->elementBounds(); 64 } 65 66 - (BOOL)HTMLInputElementIsAutoFilled 67 { 68 return _nodeHandle->isHTMLInputElementAutofilled(); 69 } 70 71 - (void)setHTMLInputElementIsAutoFilled:(BOOL)isAutoFilled 72 { 73 _nodeHandle->setHTMLInputElementAutofilled(isAutoFilled); 74 } 75 76 - (BOOL)HTMLInputELementIsUserEdited 77 { 78 return _nodeHandle->htmlInputElementLastChangeWasUserEdit(); 79 } 80 81 - (BOOL)HTMLTextAreaELementIsUserEdited 82 { 83 return _nodeHandle->htmlTextAreaElementLastChangeWasUserEdit(); 84 } 85 86 - (WKWebProcessPlugInNodeHandle *)HTMLTableCellElementCellAbove 87 { 88 auto nodeHandle = _nodeHandle->htmlTableCellElementCellAbove(); 89 if (!nodeHandle) 90 return nil; 91 92 return [wrapper(*nodeHandle.leakRef()) autorelease]; 93 } 94 95 - (InjectedBundleNodeHandle&)_nodeHandle 96 { 97 return *_nodeHandle; 98 } 99 60 100 #pragma mark WKObject protocol implementation 61 101 … … 67 107 @end 68 108 69 @implementation WKWebProcessPlugInNodeHandle (Internal)70 71 - (InjectedBundleNodeHandle&)_nodeHandle72 {73 return *_nodeHandle;74 }75 76 @end77 78 109 #endif // WK_API_ENABLED -
trunk/Source/WebKit2/WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInNodeHandleInternal.h
r160530 r163412 42 42 43 43 @interface WKWebProcessPlugInNodeHandle () <WKObject> 44 @end45 46 @interface WKWebProcessPlugInNodeHandle (Internal)47 44 48 45 @property (readonly) WebKit::InjectedBundleNodeHandle& _nodeHandle; -
trunk/Source/WebKit2/WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInScriptWorld.h
r160530 r163412 36 36 + (WKWebProcessPlugInScriptWorld *)normalWorld; 37 37 38 - (void)clearWrappers; 39 38 40 @end 39 41 -
trunk/Source/WebKit2/WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInScriptWorld.mm
r162106 r163412 52 52 } 53 53 54 - (void)clearWrappers 55 { 56 _world->clearWrappers(); 57 } 58 59 - (InjectedBundleScriptWorld&)_scriptWorld 60 { 61 return *_world; 62 } 63 54 64 #pragma mark WKObject protocol implementation 55 65 … … 61 71 @end 62 72 63 @implementation WKWebProcessPlugInScriptWorld (Internal)64 65 - (InjectedBundleScriptWorld&)_scriptWorld66 {67 return *_world;68 }69 70 @end71 72 73 #endif // WK_API_ENABLED -
trunk/Source/WebKit2/WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInScriptWorldInternal.h
r160530 r163412 42 42 43 43 @interface WKWebProcessPlugInScriptWorld () <WKObject> 44 @end45 46 @interface WKWebProcessPlugInScriptWorld (Internal)47 44 48 45 @property (readonly) WebKit::InjectedBundleScriptWorld& _scriptWorld;
Note:
See TracChangeset
for help on using the changeset viewer.