Changeset 28097 in webkit for trunk/JavaScriptCore/API/JSObjectRef.h
- Timestamp:
- Nov 27, 2007, 8:31:51 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/API/JSObjectRef.h
r24809 r28097 377 377 @result A JSClass with the given definition. Ownership follows the Create Rule. 378 378 */ 379 JS ClassRef JSClassCreate(const JSClassDefinition* definition);379 JS_EXPORT JSClassRef JSClassCreate(const JSClassDefinition* definition); 380 380 381 381 /*! … … 385 385 @result A JSClass that is the same as jsClass. 386 386 */ 387 JS ClassRef JSClassRetain(JSClassRef jsClass);387 JS_EXPORT JSClassRef JSClassRetain(JSClassRef jsClass); 388 388 389 389 /*! … … 392 392 @param jsClass The JSClass to release. 393 393 */ 394 void JSClassRelease(JSClassRef jsClass);394 JS_EXPORT void JSClassRelease(JSClassRef jsClass); 395 395 396 396 /*! … … 405 405 data is set on the created object before the intialize methods in its class chain are called. This enables the initialize methods to retrieve and manipulate data through JSObjectGetPrivate. 406 406 */ 407 JS ObjectRef JSObjectMake(JSContextRef ctx, JSClassRef jsClass, void* data);407 JS_EXPORT JSObjectRef JSObjectMake(JSContextRef ctx, JSClassRef jsClass, void* data); 408 408 409 409 /*! … … 415 415 @result A JSObject that is a function. The object's prototype will be the default function prototype. 416 416 */ 417 JS ObjectRef JSObjectMakeFunctionWithCallback(JSContextRef ctx, JSStringRef name, JSObjectCallAsFunctionCallback callAsFunction);417 JS_EXPORT JSObjectRef JSObjectMakeFunctionWithCallback(JSContextRef ctx, JSStringRef name, JSObjectCallAsFunctionCallback callAsFunction); 418 418 419 419 /*! … … 426 426 @discussion The default object constructor takes no arguments and constructs an object of class jsClass with no private data. 427 427 */ 428 JS ObjectRef JSObjectMakeConstructor(JSContextRef ctx, JSClassRef jsClass, JSObjectCallAsConstructorCallback callAsConstructor);428 JS_EXPORT JSObjectRef JSObjectMakeConstructor(JSContextRef ctx, JSClassRef jsClass, JSObjectCallAsConstructorCallback callAsConstructor); 429 429 430 430 /*! … … 442 442 @discussion Use this method when you want to execute a script repeatedly, to avoid the cost of re-parsing the script before each execution. 443 443 */ 444 JS ObjectRef JSObjectMakeFunction(JSContextRef ctx, JSStringRef name, unsigned parameterCount, const JSStringRef parameterNames[], JSStringRef body, JSStringRef sourceURL, int startingLineNumber, JSValueRef* exception);444 JS_EXPORT JSObjectRef JSObjectMakeFunction(JSContextRef ctx, JSStringRef name, unsigned parameterCount, const JSStringRef parameterNames[], JSStringRef body, JSStringRef sourceURL, int startingLineNumber, JSValueRef* exception); 445 445 446 446 /*! … … 451 451 @result A JSValue that is the object's prototype. 452 452 */ 453 JS ValueRef JSObjectGetPrototype(JSContextRef ctx, JSObjectRef object);453 JS_EXPORT JSValueRef JSObjectGetPrototype(JSContextRef ctx, JSObjectRef object); 454 454 455 455 /*! … … 460 460 @param value A JSValue to set as the object's prototype. 461 461 */ 462 void JSObjectSetPrototype(JSContextRef ctx, JSObjectRef object, JSValueRef value);462 JS_EXPORT void JSObjectSetPrototype(JSContextRef ctx, JSObjectRef object, JSValueRef value); 463 463 464 464 /*! … … 469 469 @result true if the object has a property whose name matches propertyName, otherwise false. 470 470 */ 471 bool JSObjectHasProperty(JSContextRef ctx, JSObjectRef object, JSStringRef propertyName);471 JS_EXPORT bool JSObjectHasProperty(JSContextRef ctx, JSObjectRef object, JSStringRef propertyName); 472 472 473 473 /*! … … 480 480 @result The property's value if object has the property, otherwise the undefined value. 481 481 */ 482 JS ValueRef JSObjectGetProperty(JSContextRef ctx, JSObjectRef object, JSStringRef propertyName, JSValueRef* exception);482 JS_EXPORT JSValueRef JSObjectGetProperty(JSContextRef ctx, JSObjectRef object, JSStringRef propertyName, JSValueRef* exception); 483 483 484 484 /*! … … 492 492 @param attributes A logically ORed set of JSPropertyAttributes to give to the property. 493 493 */ 494 void JSObjectSetProperty(JSContextRef ctx, JSObjectRef object, JSStringRef propertyName, JSValueRef value, JSPropertyAttributes attributes, JSValueRef* exception);494 JS_EXPORT void JSObjectSetProperty(JSContextRef ctx, JSObjectRef object, JSStringRef propertyName, JSValueRef value, JSPropertyAttributes attributes, JSValueRef* exception); 495 495 496 496 /*! … … 503 503 @result true if the delete operation succeeds, otherwise false (for example, if the property has the kJSPropertyAttributeDontDelete attribute set). 504 504 */ 505 bool JSObjectDeleteProperty(JSContextRef ctx, JSObjectRef object, JSStringRef propertyName, JSValueRef* exception);505 JS_EXPORT bool JSObjectDeleteProperty(JSContextRef ctx, JSObjectRef object, JSStringRef propertyName, JSValueRef* exception); 506 506 507 507 /*! … … 515 515 @discussion Calling JSObjectGetPropertyAtIndex is equivalent to calling JSObjectGetProperty with a string containing propertyIndex, but JSObjectGetPropertyAtIndex provides optimized access to numeric properties. 516 516 */ 517 JS ValueRef JSObjectGetPropertyAtIndex(JSContextRef ctx, JSObjectRef object, unsigned propertyIndex, JSValueRef* exception);517 JS_EXPORT JSValueRef JSObjectGetPropertyAtIndex(JSContextRef ctx, JSObjectRef object, unsigned propertyIndex, JSValueRef* exception); 518 518 519 519 /*! … … 527 527 @discussion Calling JSObjectSetPropertyAtIndex is equivalent to calling JSObjectSetProperty with a string containing propertyIndex, but JSObjectSetPropertyAtIndex provides optimized access to numeric properties. 528 528 */ 529 void JSObjectSetPropertyAtIndex(JSContextRef ctx, JSObjectRef object, unsigned propertyIndex, JSValueRef value, JSValueRef* exception);529 JS_EXPORT void JSObjectSetPropertyAtIndex(JSContextRef ctx, JSObjectRef object, unsigned propertyIndex, JSValueRef value, JSValueRef* exception); 530 530 531 531 /*! … … 535 535 @result A void* that is the object's private data, if the object has private data, otherwise NULL. 536 536 */ 537 void* JSObjectGetPrivate(JSObjectRef object);537 JS_EXPORT void* JSObjectGetPrivate(JSObjectRef object); 538 538 539 539 /*! … … 545 545 @discussion The default object class does not allocate storage for private data. Only objects created with a non-NULL JSClass can store private data. 546 546 */ 547 bool JSObjectSetPrivate(JSObjectRef object, void* data);547 JS_EXPORT bool JSObjectSetPrivate(JSObjectRef object, void* data); 548 548 549 549 /*! … … 554 554 @result true if the object can be called as a function, otherwise false. 555 555 */ 556 bool JSObjectIsFunction(JSContextRef ctx, JSObjectRef object);556 JS_EXPORT bool JSObjectIsFunction(JSContextRef ctx, JSObjectRef object); 557 557 558 558 /*! … … 567 567 @result The JSValue that results from calling object as a function, or NULL if an exception is thrown or object is not a function. 568 568 */ 569 JS ValueRef JSObjectCallAsFunction(JSContextRef ctx, JSObjectRef object, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception);569 JS_EXPORT JSValueRef JSObjectCallAsFunction(JSContextRef ctx, JSObjectRef object, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception); 570 570 571 571 /*! … … 576 576 @result true if the object can be called as a constructor, otherwise false. 577 577 */ 578 bool JSObjectIsConstructor(JSContextRef ctx, JSObjectRef object);578 JS_EXPORT bool JSObjectIsConstructor(JSContextRef ctx, JSObjectRef object); 579 579 580 580 /*! … … 588 588 @result The JSObject that results from calling object as a constructor, or NULL if an exception is thrown or object is not a constructor. 589 589 */ 590 JS ObjectRef JSObjectCallAsConstructor(JSContextRef ctx, JSObjectRef object, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception);590 JS_EXPORT JSObjectRef JSObjectCallAsConstructor(JSContextRef ctx, JSObjectRef object, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception); 591 591 592 592 /*! … … 597 597 @result A JSPropertyNameArray containing the names object's enumerable properties. 598 598 */ 599 JS PropertyNameArrayRef JSObjectCopyPropertyNames(JSContextRef ctx, JSObjectRef object);599 JS_EXPORT JSPropertyNameArrayRef JSObjectCopyPropertyNames(JSContextRef ctx, JSObjectRef object); 600 600 601 601 /*! … … 605 605 @result A JSPropertyNameArray that is the same as array. 606 606 */ 607 JS PropertyNameArrayRef JSPropertyNameArrayRetain(JSPropertyNameArrayRef array);607 JS_EXPORT JSPropertyNameArrayRef JSPropertyNameArrayRetain(JSPropertyNameArrayRef array); 608 608 609 609 /*! … … 612 612 @param array The JSPropetyNameArray to release. 613 613 */ 614 void JSPropertyNameArrayRelease(JSPropertyNameArrayRef array);614 JS_EXPORT void JSPropertyNameArrayRelease(JSPropertyNameArrayRef array); 615 615 616 616 /*! … … 620 620 @result An integer count of the number of names in array. 621 621 */ 622 size_t JSPropertyNameArrayGetCount(JSPropertyNameArrayRef array);622 JS_EXPORT size_t JSPropertyNameArrayGetCount(JSPropertyNameArrayRef array); 623 623 624 624 /*! … … 629 629 @result A JSStringRef containing the property name. 630 630 */ 631 JS StringRef JSPropertyNameArrayGetNameAtIndex(JSPropertyNameArrayRef array, size_t index);631 JS_EXPORT JSStringRef JSPropertyNameArrayGetNameAtIndex(JSPropertyNameArrayRef array, size_t index); 632 632 633 633 /*! … … 637 637 @param propertyName The property name to add. 638 638 */ 639 void JSPropertyNameAccumulatorAddName(JSPropertyNameAccumulatorRef accumulator, JSStringRef propertyName);639 JS_EXPORT void JSPropertyNameAccumulatorAddName(JSPropertyNameAccumulatorRef accumulator, JSStringRef propertyName); 640 640 641 641 #ifdef __cplusplus
Note:
See TracChangeset
for help on using the changeset viewer.