WebScriptObject.inc 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. { Parsed from WebKit.framework WebScriptObject.h }
  2. { Types from WebScriptObject }
  3. {$ifdef TYPES}
  4. {$endif}
  5. {$ifdef TYPES}
  6. type
  7. WebScriptObjectPtr = ^WebScriptObject;
  8. WebUndefinedPtr = ^WebUndefined;
  9. {$endif}
  10. {$ifndef WebScriptObject_h}
  11. {$ifdef CLASSES}
  12. type
  13. WebScripting = objccategory external (NSObject)
  14. class function webScriptNameForSelector (selector: SEL): NSString; message 'webScriptNameForSelector:'; { available in 10_4 }
  15. class function isSelectorExcludedFromWebScript (selector: SEL): ObjCBOOL; message 'isSelectorExcludedFromWebScript:'; { available in 10_4 }
  16. class function webScriptNameForKey (name: PAnsiChar): NSString; message 'webScriptNameForKey:'; { available in 10_4 }
  17. class function isKeyExcludedFromWebScript (name: PAnsiChar): ObjCBOOL; message 'isKeyExcludedFromWebScript:'; { available in 10_4 }
  18. function invokeUndefinedMethodFromWebScript_withArguments (name: NSString; arguments: NSArray): id; message 'invokeUndefinedMethodFromWebScript:withArguments:'; { available in 10_4 }
  19. function invokeDefaultMethodWithArguments (arguments: NSArray): id; message 'invokeDefaultMethodWithArguments:'; { available in 10_4 }
  20. procedure finalizeForWebScript; message 'finalizeForWebScript'; { available in 10_4 }
  21. end;
  22. type
  23. WebScriptObject = objcclass external (NSObject)
  24. private
  25. _private: WebScriptObjectPrivate;
  26. public
  27. class function throwException (exceptionMessage: NSString): ObjCBOOL; message 'throwException:';
  28. function JSObject: JSObjectRef; message 'JSObject'; { available in 10_5 }
  29. function callWebScriptMethod_withArguments (name: NSString; arguments: NSArray): id; message 'callWebScriptMethod:withArguments:';
  30. function evaluateWebScript (script: NSString): id; message 'evaluateWebScript:';
  31. procedure removeWebScriptKey (name: NSString); message 'removeWebScriptKey:';
  32. function stringRepresentation: NSString; message 'stringRepresentation';
  33. function webScriptValueAtIndex (index: cuint): id; message 'webScriptValueAtIndex:';
  34. procedure setWebScriptValueAtIndex_value (index: cuint; value: id); message 'setWebScriptValueAtIndex:value:';
  35. procedure setException (description: NSString); message 'setException:';
  36. {$if defined(JSC_OBJC_API_ENABLED)}
  37. function JSValue_: JSValue; message 'JSValue';
  38. {$endif}
  39. end;
  40. type
  41. WebUndefined = objcclass external (NSObject, NSCodingProtocol, NSCopyingProtocol)
  42. public
  43. class function undefined: WebUndefined; message 'undefined';
  44. { Adopted protocols }
  45. function copyWithZone (zone: NSZonePtr): id; message 'copyWithZone:';
  46. procedure encodeWithCoder (aCoder: NSCoder); message 'encodeWithCoder:';
  47. function initWithCoder (aDecoder: NSCoder): id; message 'initWithCoder:';
  48. end;
  49. {$endif}
  50. {$endif}