webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Instance Methods | Class Methods | Protected Attributes | List of all members
WebScriptObject Class Reference

#import <WebScriptObject.h>

Inheritance diagram for WebScriptObject:
IWebScriptObject IWebScriptObject NSObject NSObject DOMObject DOMObject DOMObject DOMAbstractView DOMBlob DOMCounter DOMCSSRule DOMCSSRuleList DOMCSSStyleDeclaration DOMCSSStyleDeclaration DOMCSSValue DOMEvent DOMEvent DOMEventListener DOMEventListener DOMFileList DOMHTMLCollection DOMHTMLCollection DOMHTMLOptionsCollection DOMHTMLOptionsCollection DOMImplementation DOMMediaError DOMMediaList DOMNamedNodeMap DOMNamedNodeMap DOMNativeXPathNSResolver DOMNode DOMNodeFilter DOMNodeIterator DOMNodeList DOMNodeList DOMRange DOMRange DOMRect DOMRGBColor DOMStyleSheet DOMStyleSheetList DOMTimeRanges DOMTokenList DOMTreeWalker DOMWindow DOMXPathExpression DOMXPathResult DOMAbstractView DOMBlob DOMCounter DOMCSSRule DOMCSSRuleList DOMCSSStyleDeclaration DOMCSSStyleDeclaration DOMCSSValue DOMEvent DOMEvent DOMEventListener DOMEventListener DOMFileList DOMHTMLCollection DOMHTMLCollection DOMHTMLOptionsCollection DOMHTMLOptionsCollection DOMImplementation DOMMediaError DOMMediaList DOMNamedNodeMap DOMNamedNodeMap DOMNativeXPathNSResolver DOMNode DOMNodeFilter DOMNodeIterator DOMNodeList DOMNodeList DOMRange DOMRange DOMRect DOMRGBColor DOMStyleSheet DOMStyleSheetList DOMTimeRanges DOMTokenList DOMTreeWalker DOMWindow DOMXPathExpression DOMXPathResult DOMAbstractView DOMBlob DOMCounter DOMCSSRule DOMCSSRuleList DOMCSSStyleDeclaration DOMCSSStyleDeclaration DOMCSSValue DOMEvent DOMEvent DOMEventListener DOMEventListener DOMFileList DOMHTMLCollection DOMHTMLCollection DOMHTMLOptionsCollection DOMHTMLOptionsCollection DOMImplementation DOMMediaError DOMMediaList DOMNamedNodeMap DOMNamedNodeMap DOMNativeXPathNSResolver DOMNode DOMNodeFilter DOMNodeIterator DOMNodeList DOMNodeList DOMRange DOMRange DOMRect DOMRGBColor DOMStyleSheet DOMStyleSheetList DOMTimeRanges DOMTokenList DOMTreeWalker DOMWindow DOMXPathExpression DOMXPathResult

Instance Methods

(10_5) - WEBKIT_AVAILABLE_MAC
 
(id- callWebScriptMethod:withArguments:
 
(id- evaluateWebScript:
 
(void- removeWebScriptKey:
 
(NSString *) - stringRepresentation
 
(id- webScriptValueAtIndex:
 
(void- setWebScriptValueAtIndex:value:
 
(void- setException:
 
(10_5) - WEBKIT_AVAILABLE_MAC
 
(id- callWebScriptMethod:withArguments:
 
(id- evaluateWebScript:
 
(void- removeWebScriptKey:
 
(NSString *) - stringRepresentation
 
(id- webScriptValueAtIndex:
 
(void- setWebScriptValueAtIndex:value:
 
(void- setException:
 
() - WebScriptObject
 
(virtual) - ~WebScriptObject
 
(virtual HRESULT STDMETHODCALLTYPE) - QueryInterface
 
(virtual ULONG STDMETHODCALLTYPE) - AddRef
 
(virtual ULONG STDMETHODCALLTYPE) - Release
 
(virtual HRESULT STDMETHODCALLTYPE) - throwException
 
(virtual HRESULT STDMETHODCALLTYPE) - callWebScriptMethod
 
(virtual HRESULT STDMETHODCALLTYPE) - evaluateWebScript
 
(virtual HRESULT STDMETHODCALLTYPE) - removeWebScriptKey
 
(virtual HRESULT STDMETHODCALLTYPE) - stringRepresentation
 
(virtual HRESULT STDMETHODCALLTYPE) - webScriptValueAtIndex
 
(virtual HRESULT STDMETHODCALLTYPE) - setWebScriptValueAtIndex
 
(virtual HRESULT STDMETHODCALLTYPE) - setException
 
() - WebScriptObject
 
(virtual) - ~WebScriptObject
 
(virtual HRESULT STDMETHODCALLTYPE) - QueryInterface
 
(virtual ULONG STDMETHODCALLTYPE) - AddRef
 
(virtual ULONG STDMETHODCALLTYPE) - Release
 
(virtual HRESULT STDMETHODCALLTYPE) - throwException
 
(virtual HRESULT STDMETHODCALLTYPE) - callWebScriptMethod
 
(virtual HRESULT STDMETHODCALLTYPE) - evaluateWebScript
 
(virtual HRESULT STDMETHODCALLTYPE) - removeWebScriptKey
 
(virtual HRESULT STDMETHODCALLTYPE) - stringRepresentation
 
(virtual HRESULT STDMETHODCALLTYPE) - webScriptValueAtIndex
 
(virtual HRESULT STDMETHODCALLTYPE) - setWebScriptValueAtIndex
 
(virtual HRESULT STDMETHODCALLTYPE) - setException
 
(id- _init
 
(id- _init
 
(id- _initWithJSObject:originRootObject:rootObject:
 
(id- _initWithJSObject:originRootObject:rootObject:
 
(void- _setImp:originRootObject:rootObject:
 
(void- _setImp:originRootObject:rootObject:
 
(void- _setOriginRootObject:andRootObject:
 
(void- _setOriginRootObject:andRootObject:
 
(void- _initializeScriptDOMNodeImp
 
(void- _initializeScriptDOMNodeImp
 
(JSC::JSObject *) - _imp
 
(JSC::JSObject *) - _imp
 
(BOOL- _hasImp
 
(BOOL- _hasImp
 
(JSC::Bindings::RootObject *) - _rootObject
 
(JSC::Bindings::RootObject *) - _rootObject
 
(JSC::Bindings::RootObject *) - _originRootObject
 
(JSC::Bindings::RootObject *) - _originRootObject
 
(JSGlobalContextRef- _globalContextRef
 
(JSGlobalContextRef- _globalContextRef
 
(BOOL- hasWebScriptKey:
 
(BOOL- hasWebScriptKey:
 
(BOOL- hasWebScriptKey:
 
- Instance Methods inherited from IWebScriptObject
HRESULT throwException ([in] BSTR exceptionMessage, [out, retval] BOOL *result)
 
HRESULT callWebScriptMethod ([in] BSTR name, [in, size_is(cArgs)] const VARIANT args[], [in] int cArgs, [out, retval] VARIANT *result)
 
HRESULT evaluateWebScript ([in] BSTR script, [out, retval] VARIANT *result)
 
HRESULT removeWebScriptKey ([in] BSTR name)
 
HRESULT stringRepresentation ([out, retval] BSTR *stringRepresentation)
 
HRESULT webScriptValueAtIndex ([in] unsigned int index, [out, retval] VARIANT *result)
 
HRESULT setWebScriptValueAtIndex ([in] unsigned int index, [in] VARIANT val)
 
HRESULT setException ([in] BSTR description)
 

Class Methods

(BOOL+ throwException:
 
(BOOL+ throwException:
 
(id+ _convertValueToObjcValue:originRootObject:rootObject:
 
(id+ _convertValueToObjcValue:originRootObject:rootObject:
 
(id+ scriptObjectForJSObject:originRootObject:rootObject:
 
(id+ scriptObjectForJSObject:originRootObject:rootObject:
 

Protected Attributes

WebScriptObjectPrivate_private
 
ULONG m_refCount { 0 }
 

Detailed Description

WebScriptObjects are used to wrap script objects passed from script environments to Objective-C. WebScriptObjects cannot be created directly. In normal uses of WebKit, you gain access to the script environment using the "windowScriptObject" method on WebView.

The following KVC methods are commonly used to access properties of the WebScriptObject:

- (void)setValue:(id)value forKey:(NSString *)key
- (id)valueForKey:(NSString *)key

As it possible to remove attributes from web script objects, the following additional method augments the basic KVC methods:

- (void)removeWebScriptKey:(NSString *)name;

Also, since the sparse array access allowed in script objects doesn't map well to NSArray, the following methods can be used to access index based properties:

- (id)webScriptValueAtIndex:(unsigned)index;
- (void)setWebScriptValueAtIndex:(unsigned)index value:(id)value;

WebScriptObjects are used to wrap script objects passed from script environments to Objective-C. WebScriptObjects cannot be created directly. In normal uses of WebKit, you gain access to the script environment using the "windowScriptObject" method on WebView.

The following KVC methods are commonly used to access properties of the WebScriptObject:

As it possible to remove attributes from web script objects the following additional method augments the basic KVC methods:

Also the sparse array access allowed in web script objects doesn't map well to NSArray, so the following methods can be used to access index based properties:

Constructor & Destructor Documentation

◆ WebScriptObject() [1/2]

◆ ~WebScriptObject() [1/2]

◆ WebScriptObject() [2/2]

◆ ~WebScriptObject() [2/2]

- (virtual ~)WebScriptObject

Method Documentation

◆ _convertValueToObjcValue:originRootObject:rootObject:() [1/2]

+ (id) _convertValueToObjcValue: (JSC::JSValue value
originRootObject: (JSC::Bindings::RootObject *)  originRootObject
rootObject: (JSC::Bindings::RootObject *)  rootObject 

Provided by category WebScriptObject(Private).

◆ _convertValueToObjcValue:originRootObject:rootObject:() [2/2]

+ (id) _convertValueToObjcValue: (JSC::JSValue value
originRootObject: (JSC::Bindings::RootObject *)  originRootObject
rootObject: (JSC::Bindings::RootObject *)  rootObject 

Provided by category WebScriptObject(Private).

◆ _globalContextRef() [1/2]

- (JSGlobalContextRef) _globalContextRef

Provided by category WebScriptObject(Private).

◆ _globalContextRef() [2/2]

- (JSGlobalContextRef) _globalContextRef

Provided by category WebScriptObject(Private).

◆ _hasImp() [1/2]

- (BOOL) _hasImp

Provided by category WebScriptObject(Private).

◆ _hasImp() [2/2]

- (BOOL) _hasImp

Provided by category WebScriptObject(Private).

◆ _imp() [1/2]

- (JSObject* WebScriptObject(Private)):

Provided by category WebScriptObject(Private).

◆ _imp() [2/2]

- (JSObject* WebScriptObject(Private)):

Provided by category WebScriptObject(Private).

◆ _init() [1/2]

- (id) _init

Provided by category WebScriptObject(Private).

◆ _init() [2/2]

- (id) _init

Provided by category WebScriptObject(Private).

◆ _initializeScriptDOMNodeImp() [1/2]

- (void) _initializeScriptDOMNodeImp

Provided by category WebScriptObject(Private).

◆ _initializeScriptDOMNodeImp() [2/2]

- (void) _initializeScriptDOMNodeImp

Provided by category WebScriptObject(Private).

◆ _initWithJSObject:originRootObject:rootObject:() [1/2]

- (id) _initWithJSObject: (JSC::JSObject *)  imp
originRootObject: (PassRefPtr< JSC::Bindings::RootObject >)  originRootObject
rootObject: (PassRefPtr< JSC::Bindings::RootObject >)  rootObject 

Provided by category WebScriptObject(Private).

◆ _initWithJSObject:originRootObject:rootObject:() [2/2]

- (id) _initWithJSObject: (JSC::JSObject *)  imp
originRootObject: (PassRefPtr< JSC::Bindings::RootObject >)  originRootObject
rootObject: (PassRefPtr< JSC::Bindings::RootObject >)  rootObject 

Provided by category WebScriptObject(Private).

◆ _originRootObject() [1/2]

- Bindings:

Provided by category WebScriptObject(Private).

◆ _originRootObject() [2/2]

- Bindings:

Provided by category WebScriptObject(Private).

◆ _rootObject() [1/2]

- Bindings:

Provided by category WebScriptObject(Private).

◆ _rootObject() [2/2]

- Bindings:

Provided by category WebScriptObject(Private).

◆ _setImp:originRootObject:rootObject:() [1/2]

- (void) _setImp: (JSC::JSObject *)  imp
originRootObject: (PassRefPtr< JSC::Bindings::RootObject >)  originRootObject
rootObject: (PassRefPtr< JSC::Bindings::RootObject >)  rootObject 

Provided by category WebScriptObject(Private).

◆ _setImp:originRootObject:rootObject:() [2/2]

- (void) _setImp: (JSC::JSObject *)  imp
originRootObject: (PassRefPtr< JSC::Bindings::RootObject >)  originRootObject
rootObject: (PassRefPtr< JSC::Bindings::RootObject >)  rootObject 

Provided by category WebScriptObject(Private).

◆ _setOriginRootObject:andRootObject:() [1/2]

- (void) _setOriginRootObject: (PassRefPtr< JSC::Bindings::RootObject >)  originRootObject
andRootObject: (PassRefPtr< JSC::Bindings::RootObject >)  rootObject 

Provided by category WebScriptObject(Private).

◆ _setOriginRootObject:andRootObject:() [2/2]

- (void) _setOriginRootObject: (PassRefPtr< JSC::Bindings::RootObject >)  originRootObject
andRootObject: (PassRefPtr< JSC::Bindings::RootObject >)  rootObject 

Provided by category WebScriptObject(Private).

◆ AddRef() [1/2]

- (ULONG) AddRef (void

◆ AddRef() [2/2]

- (virtual ULONG STDMETHODCALLTYPE) AddRef

◆ callWebScriptMethod() [1/2]

- (HRESULT) callWebScriptMethod (_In_ BSTR name
(__in_ecount_opt(cArgs) const VARIANT)  args[]
(int)  cArgs
(_Out_ VARIANT *)  result 

◆ callWebScriptMethod() [2/2]

- (virtual HRESULT STDMETHODCALLTYPE) callWebScriptMethod (_In_ BSTR
(__in_ecount(cArgs) const VARIANT)  []
(int)  cArgs
(_Out_ VARIANT *)   

Implemented in DOMEventListener.

◆ callWebScriptMethod:withArguments:() [1/2]

- (id) callWebScriptMethod: (NSString *)  name
withArguments: (NSArray *)  arguments 

callWebScriptMethod:withArguments:

Parameters
nameThe name of the method to call in the script environment.
argumentsThe arguments to pass to the script environment. Calls the specified method in the script environment using the specified arguments.
Returns
Returns the result of calling the script method. Returns WebUndefined when an exception is thrown in the script environment.

◆ callWebScriptMethod:withArguments:() [2/2]

- (id) callWebScriptMethod: (NSString *)  name
withArguments: (NSArray *)  arguments 

callWebScriptMethod:withArguments:

Parameters
nameThe name of the method to call in the script environment.
argumentsThe arguments to pass to the script environment. Calls the specified method in the script environment using the specified arguments.
Returns
Returns the result of calling the script method. Returns WebUndefined when an exception is thrown in the script environment.

◆ evaluateWebScript() [1/2]

- (HRESULT) evaluateWebScript (_In_ BSTR script
(_Out_ VARIANT *)  result 

◆ evaluateWebScript() [2/2]

- (virtual HRESULT STDMETHODCALLTYPE) evaluateWebScript (_In_ BSTR
(_Out_ VARIANT *)   

◆ evaluateWebScript:() [1/2]

- (id) evaluateWebScript: (NSString *)  script

evaluateWebScript:

Parameters
scriptThe script to execute in the target script environment. The script will be executed in the target script environment. The format of the script is dependent of the target script environment.
Returns
Returns the result of evaluating the script in the script environment. Returns WebUndefined when an exception is thrown in the script environment.

◆ evaluateWebScript:() [2/2]

- (id) evaluateWebScript: (NSString *)  script

evaluateWebScript:

Parameters
scriptThe script to execute in the target script environment. The script will be executed in the target script environment. The format of the script is dependent of the target script environment.
Returns
Returns the result of evaluating the script in the script environment. Returns WebUndefined when an exception is thrown in the script environment.

◆ hasWebScriptKey:() [1/3]

- (BOOL) hasWebScriptKey: (NSString *)  name

Provided by category WebScriptObject(StagedForPublic).

◆ hasWebScriptKey:() [2/3]

- (BOOL) hasWebScriptKey: (NSString *)  name

hasWebScriptKey:

Parameters
nameThe name of the property to check for. Checks for the existence of the property on the object in the script environment.
Returns
Returns YES if the property exists, NO otherwise.

Provided by category WebScriptObject(StagedForPublic).

◆ hasWebScriptKey:() [3/3]

- (BOOL) hasWebScriptKey: (NSString *)  name

hasWebScriptKey:

Parameters
nameThe name of the property to check for. Checks for the existence of the property on the object in the script environment.
Returns
Returns YES if the property exists, NO otherwise.

Provided by category WebScriptObject(StagedForPublic).

◆ QueryInterface() [1/2]

- (HRESULT) QueryInterface (_In_ REFIID)  riid
(_COM_Outptr_ void **)  ppvObject 

◆ QueryInterface() [2/2]

- (virtual HRESULT STDMETHODCALLTYPE) QueryInterface (_In_ REFIID)  riid
(_COM_Outptr_ void **)  ppvObject 

◆ Release() [1/2]

- (ULONG) Release (void

◆ Release() [2/2]

- (virtual ULONG STDMETHODCALLTYPE) Release

◆ removeWebScriptKey() [1/2]

- (HRESULT) removeWebScriptKey (_In_ BSTR name

◆ removeWebScriptKey() [2/2]

- (virtual HRESULT STDMETHODCALLTYPE) removeWebScriptKey (_In_ BSTR

◆ removeWebScriptKey:() [1/2]

- (void) removeWebScriptKey: (NSString *)  name

removeWebScriptKey:

Parameters
nameThe name of the property to remove. Removes the property from the object in the script environment.

◆ removeWebScriptKey:() [2/2]

- (void) removeWebScriptKey: (NSString *)  name

removeWebScriptKey:

Parameters
nameThe name of the property to remove. Removes the property from the object in the script environment.

◆ scriptObjectForJSObject:originRootObject:rootObject:() [1/2]

+ (id) scriptObjectForJSObject: (JSObjectRef jsObject
originRootObject: (JSC::Bindings::RootObject *)  originRootObject
rootObject: (JSC::Bindings::RootObject *)  rootObject 

Provided by category WebScriptObject(Private).

◆ scriptObjectForJSObject:originRootObject:rootObject:() [2/2]

+ (id) scriptObjectForJSObject: (JSObjectRef jsObject
originRootObject: (JSC::Bindings::RootObject *)  originRootObject
rootObject: (JSC::Bindings::RootObject *)  rootObject 

Provided by category WebScriptObject(Private).

◆ setException() [1/2]

- (HRESULT) setException (_In_ BSTR description

◆ setException() [2/2]

- (virtual HRESULT STDMETHODCALLTYPE) setException (_In_ BSTR

◆ setException:() [1/2]

- (void) setException: (NSString *)  description

setException:

Parameters
descriptionThe description of the exception. Raises an exception in the script environment in the context of the current object.

◆ setException:() [2/2]

- (void) setException: (NSString *)  description

setException:

Parameters
descriptionThe description of the exception. Raises an exception in the script environment in the context of the current object.

◆ setWebScriptValueAtIndex() [1/2]

- (HRESULT) setWebScriptValueAtIndex (unsigned)  index
(VARIANT)  val 

◆ setWebScriptValueAtIndex() [2/2]

- (virtual HRESULT STDMETHODCALLTYPE) setWebScriptValueAtIndex (unsigned) 
(VARIANT)   

◆ setWebScriptValueAtIndex:value:() [1/2]

- (void) setWebScriptValueAtIndex: (unsigned)  index
value: (id value 

setWebScriptValueAtIndex:value:

Parameters
indexThe index of the property to set.
valueThe value of the property to set. Sets the property value at the specified index.

◆ setWebScriptValueAtIndex:value:() [2/2]

- (void) setWebScriptValueAtIndex: (unsigned)  index
value: (id value 

setWebScriptValueAtIndex:value:

Parameters
indexThe index of the property to set.
valueThe value of the property to set. Sets the property value at the specified index.

◆ stringRepresentation() [1/4]

- (HRESULT) stringRepresentation (__deref_opt_out BSTR *)  stringRepresentation

◆ stringRepresentation() [2/4]

- (virtual HRESULT STDMETHODCALLTYPE) stringRepresentation (__deref_opt_out BSTR *) 

◆ stringRepresentation() [3/4]

- (NSString *) stringRepresentation

stringRepresentation Converts the target object to a string representation. The coercion of non string objects type is dependent on the script environment.

Returns
Returns the string representation of the object.

◆ stringRepresentation() [4/4]

- (NSString *) stringRepresentation

stringRepresentation Converts the target object to a string representation. The coercion of non string objects type is dependent on the script environment.

Returns
Returns the string representation of the object.

◆ throwException() [1/2]

- (HRESULT) throwException (_In_ BSTR exceptionMessage
(_Out_ BOOL *)  result 

◆ throwException() [2/2]

- (virtual HRESULT STDMETHODCALLTYPE) throwException (_In_ BSTR
(_Out_ BOOL *)   

◆ throwException:() [1/2]

+ (BOOL) throwException: (NSString *)  exceptionMessage

throwException: Throws an exception in the current script execution context.

Returns
Either NO if an exception could not be raised, YES otherwise.

◆ throwException:() [2/2]

+ (BOOL) throwException: (NSString *)  exceptionMessage

throwException: Throws an exception in the current script execution context.

Returns
Either NO if an exception could not be raised, YES otherwise.

◆ WEBKIT_AVAILABLE_MAC() [1/2]

- (10_5) WEBKIT_AVAILABLE_MAC

JSObject

Returns
The equivalent JSObjectRef for this WebScriptObject. Use this method to bridge between the WebScriptObject and JavaScriptCore APIs.

Implemented in DOMDocument, DOMDocument, DOMDocument, DOMElement, DOMElement, DOMHTMLDocument, DOMHTMLDocument, DOMHTMLDocument, DOMHTMLElement, DOMHTMLButtonElement, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, and DOMCSSStyleDeclaration.

◆ WEBKIT_AVAILABLE_MAC() [2/2]

- (10_5) WEBKIT_AVAILABLE_MAC

JSObject

Returns
The equivalent JSObjectRef for this WebScriptObject. Use this method to bridge between the WebScriptObject and JavaScriptCore APIs.

Implemented in DOMDocument, DOMDocument, DOMDocument, DOMElement, DOMElement, DOMHTMLDocument, DOMHTMLDocument, DOMHTMLDocument, DOMHTMLElement, DOMHTMLButtonElement, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, DOMCSSStyleDeclaration, and DOMCSSStyleDeclaration.

◆ webScriptValueAtIndex() [1/2]

- (HRESULT) webScriptValueAtIndex (unsigned)  index
(_Out_ VARIANT *)  result 

◆ webScriptValueAtIndex() [2/2]

- (virtual HRESULT STDMETHODCALLTYPE) webScriptValueAtIndex (unsigned) 
(_Out_ VARIANT *)   

◆ webScriptValueAtIndex:() [1/2]

- (id) webScriptValueAtIndex: (unsigned)  index

webScriptValueAtIndex:

Parameters
indexThe index of the property to return. Gets the value of the property at the specified index.
Returns
The value of the property. Returns WebUndefined when an exception is thrown in the script environment.

◆ webScriptValueAtIndex:() [2/2]

- (id) webScriptValueAtIndex: (unsigned)  index

webScriptValueAtIndex:

Parameters
indexThe index of the property to return. Gets the value of the property at the specified index.
Returns
The value of the property. Returns WebUndefined when an exception is thrown in the script environment.

Member Data Documentation

◆ _private

- (WebScriptObjectPrivate *) _private
protected

◆ m_refCount

- (ULONG) m_refCount { 0 }
protected

The documentation for this class was generated from the following files: