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

#import <DOMRange.h>

Inheritance diagram for DOMRange:
DOMObject IDOMRange DOMObject WebScriptObject IDOMObject WebScriptObject IDOMObject WebScriptObject IDOMObject WebScriptObject IDOMObject WebScriptObject IDOMObject WebScriptObject

Instance Methods

(NSString *text- WEBKIT_AVAILABLE_MAC
 
(void- setStart:offset:
 
(void- setEnd:offset:
 
(void- setStartBefore:
 
(void- setStartAfter:
 
(void- setEndBefore:
 
(void- setEndAfter:
 
(void- collapse:
 
(void- selectNode:
 
(void- selectNodeContents:
 
(short) - compareBoundaryPoints:sourceRange:
 
(void- deleteContents
 
(DOMDocumentFragment *) - extractContents
 
(DOMDocumentFragment *) - cloneContents
 
(void- insertNode:
 
(void- surroundContents:
 
(DOMRange *) - cloneRange
 
(NSString *) - toString
 
(void- detach
 
(DOMDocumentFragment *) - createContextualFragment:
 
(short) - compareNode:
 
(BOOL- intersectsNode:
 
(short) - comparePoint:offset:
 
(BOOL- isPointInRange:offset:
 
(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
 
(virtual HRESULT STDMETHODCALLTYPE) - startContainer
 
(virtual HRESULT STDMETHODCALLTYPE) - startOffset
 
(virtual HRESULT STDMETHODCALLTYPE) - endContainer
 
(virtual HRESULT STDMETHODCALLTYPE) - endOffset
 
(virtual HRESULT STDMETHODCALLTYPE) - collapsed
 
(virtual HRESULT STDMETHODCALLTYPE) - commonAncestorContainer
 
(virtual HRESULT STDMETHODCALLTYPE) - setStart
 
(virtual HRESULT STDMETHODCALLTYPE) - setEnd
 
(virtual HRESULT STDMETHODCALLTYPE) - setStartBefore
 
(virtual HRESULT STDMETHODCALLTYPE) - setStartAfter
 
(virtual HRESULT STDMETHODCALLTYPE) - setEndBefore
 
(virtual HRESULT STDMETHODCALLTYPE) - setEndAfter
 
(virtual HRESULT STDMETHODCALLTYPE) - collapse
 
(virtual HRESULT STDMETHODCALLTYPE) - selectNode
 
(virtual HRESULT STDMETHODCALLTYPE) - selectNodeContents
 
(virtual HRESULT STDMETHODCALLTYPE) - compareBoundaryPoints
 
(virtual HRESULT STDMETHODCALLTYPE) - deleteContents
 
(virtual HRESULT STDMETHODCALLTYPE) - extractContents
 
(virtual HRESULT STDMETHODCALLTYPE) - cloneContents
 
(virtual HRESULT STDMETHODCALLTYPE) - insertNode
 
(virtual HRESULT STDMETHODCALLTYPE) - surroundContents
 
(virtual HRESULT STDMETHODCALLTYPE) - cloneRange
 
(virtual HRESULT STDMETHODCALLTYPE) - toString
 
(virtual HRESULT STDMETHODCALLTYPE) - detach
 
(void- setStart::
 
(void- setEnd::
 
(short) - compareBoundaryPoints::
 
(WebVisiblePosition *) - startPosition
 
(WebVisiblePosition *) - endPosition
 
(DOMRange *) - enclosingWordRange
 
- Instance Methods inherited from DOMObject
(instancetype) - NS_UNAVAILABLE
 
(DOMStyleSheet *sheet) - WEBKIT_AVAILABLE_MAC
 
- Instance Methods inherited from WebScriptObject
(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
 
() - WebScriptObject
 
(virtual) - ~WebScriptObject
 
(virtual HRESULT STDMETHODCALLTYPE) - callWebScriptMethod
 
(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)
 
- Instance Methods inherited from IDOMRange
HRESULT startContainer ([out, retval] IDOMNode **node)
 
HRESULT startOffset ([out, retval] int *offset)
 
HRESULT endContainer ([out, retval] IDOMNode **node)
 
HRESULT endOffset ([out, retval] int *offset)
 
HRESULT collapsed ([out, retval] BOOL *result)
 
HRESULT commonAncestorContainer ([out, retval] IDOMNode **container)
 
HRESULT setStart ([in] IDOMNode *refNode, [in] int offset)
 
HRESULT setEnd ([in] IDOMNode *refNode, [in] int offset)
 
HRESULT setStartBefore ([in] IDOMNode *refNode)
 
HRESULT setStartAfter ([in] IDOMNode *refNode)
 
HRESULT setEndBefore ([in] IDOMNode *refNode)
 
HRESULT setEndAfter ([in] IDOMNode *refNode)
 
HRESULT selectNode ([in] IDOMNode *refNode)
 
HRESULT selectNodeContents ([in] IDOMNode *refNode)
 
HRESULT compareBoundaryPoints ([in] unsigned short how, [in] IDOMRange *sourceRange)
 
HRESULT extractContents ([out, retval] IDOMDocumentFragment **fragment)
 
HRESULT cloneContents ([out, retval] IDOMDocumentFragment **fragment)
 
HRESULT insertNode ([in] IDOMNode *newNode)
 
HRESULT surroundContents ([in] IDOMNode *newParent)
 
HRESULT cloneRange ([out, retval] IDOMRange **range)
 
HRESULT toString ([out, retval] BSTR *str)
 

Class Methods

(static IDOMRange *) + createInstance
 
(DOMRange *) + rangeForFirstPosition:second:
 
- Class Methods inherited from WebScriptObject
(BOOL+ throwException:
 
(BOOL+ throwException:
 
(id+ _convertValueToObjcValue:originRootObject:rootObject:
 
(id+ _convertValueToObjcValue:originRootObject:rootObject:
 
(id+ scriptObjectForJSObject:originRootObject:rootObject:
 
(id+ scriptObjectForJSObject:originRootObject:rootObject:
 

Protected Member Functions

() - DOMRange
 
() - ~DOMRange
 

Protected Attributes

WebCore::Rangem_range
 
- Protected Attributes inherited from DOMObject
package DOMObjectInternal_internal
 
- Protected Attributes inherited from WebScriptObject
WebScriptObjectPrivate_private
 
ULONG m_refCount { 0 }
 

Properties

DOMNodestartContainer
 
int startOffset
 
DOMNodeendContainer
 
int endOffset
 
BOOL collapsed
 
DOMNodecommonAncestorContainer
 
WebArchivewebArchive
 
NSStringmarkupString
 

Constructor & Destructor Documentation

◆ DOMRange()

◆ ~DOMRange()

Method Documentation

◆ AddRef()

- (virtual ULONG STDMETHODCALLTYPE) AddRef (void

Reimplemented from DOMObject.

◆ callWebScriptMethod()

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

Reimplemented from DOMObject.

◆ cloneContents() [1/2]

- (DOMDocumentFragment *) cloneContents

◆ cloneContents() [2/2]

- (HRESULT) cloneContents (_COM_Outptr_opt_ IDOMDocumentFragment **)  fragment

◆ cloneRange() [1/2]

- (DOMRange *) cloneRange

◆ cloneRange() [2/2]

- (HRESULT) cloneRange (_COM_Outptr_opt_ IDOMRange **)  range

◆ collapse()

- (HRESULT) collapse (BOOL toStart

Implements IDOMRange.

◆ collapse:()

- (void) collapse: (BOOL toStart

◆ collapsed()

- (HRESULT) collapsed (_Out_ BOOL *)  result

◆ commonAncestorContainer()

- (HRESULT) commonAncestorContainer (_COM_Outptr_opt_ IDOMNode **)  container

◆ compareBoundaryPoints()

- (HRESULT) compareBoundaryPoints (unsigned short)  how
(_In_opt_ IDOMRange *)  sourceRange 

◆ compareBoundaryPoints::()

- (short) compareBoundaryPoints: (unsigned short)  how
: (10_4) 
(10_5)  WEBKIT_DEPRECATED_MAC 

Provided by category DOMRange(DOMRangeDeprecated).

◆ compareBoundaryPoints:sourceRange:()

- (short) compareBoundaryPoints: (unsigned short)  how
sourceRange: (10_5)  WEBKIT_AVAILABLE_MAC 

◆ compareNode:()

- (short) compareNode: (10_5)  WEBKIT_AVAILABLE_MAC

◆ comparePoint:offset:()

- (short) comparePoint: (DOMNode *)  refNode
offset: (10_5)  WEBKIT_AVAILABLE_MAC 

◆ createContextualFragment:()

- (DOMDocumentFragment *) createContextualFragment: (10_5)  WEBKIT_AVAILABLE_MAC

◆ createInstance()

+ (IDOMRange *) createInstance (WebCore::Range *)  range

◆ deleteContents() [1/2]

- (HRESULT) deleteContents

Implements IDOMRange.

◆ deleteContents() [2/2]

- (virtual HRESULT STDMETHODCALLTYPE) deleteContents

Implements IDOMRange.

◆ detach() [1/2]

- (HRESULT) detach

Implements IDOMRange.

◆ detach() [2/2]

- (virtual HRESULT STDMETHODCALLTYPE) detach

Implements IDOMRange.

◆ enclosingWordRange()

- (DOMRange *) enclosingWordRange

Provided by category DOMRange(VisiblePositionExtensions).

◆ endContainer()

- (HRESULT) endContainer (_COM_Outptr_opt_ IDOMNode **)  node

◆ endOffset()

- (HRESULT) endOffset (_Out_ int *)  offset

◆ endPosition()

- (WebVisiblePosition *) endPosition

Provided by category DOMRange(VisiblePositionExtensions).

◆ evaluateWebScript()

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

Reimplemented from DOMObject.

◆ extractContents() [1/2]

- (DOMDocumentFragment *) extractContents

◆ extractContents() [2/2]

- (HRESULT) extractContents (_COM_Outptr_opt_ IDOMDocumentFragment **)  fragment

◆ insertNode()

- (HRESULT) insertNode (_In_opt_ IDOMNode *)  newNode

◆ insertNode:()

- (void) insertNode: (DOMNode *)  newNode

◆ intersectsNode:()

- (BOOL) intersectsNode: (10_5)  WEBKIT_AVAILABLE_MAC

◆ isPointInRange:offset:()

- (BOOL) isPointInRange: (DOMNode *)  refNode
offset: (10_5)  WEBKIT_AVAILABLE_MAC 

◆ QueryInterface()

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

Reimplemented from DOMObject.

◆ rangeForFirstPosition:second:()

+ (DOMRange *) rangeForFirstPosition: (WebVisiblePosition *)  first
second: (WebVisiblePosition *)  second 

Provided by category DOMRange(VisiblePositionExtensions).

◆ Release()

- (virtual ULONG STDMETHODCALLTYPE) Release (void

Reimplemented from DOMObject.

◆ removeWebScriptKey()

- (virtual HRESULT STDMETHODCALLTYPE) removeWebScriptKey (_In_ BSTR name

Reimplemented from DOMObject.

◆ selectNode()

- (HRESULT) selectNode (_In_opt_ IDOMNode *)  refNode

◆ selectNode:()

- (void) selectNode: (DOMNode *)  refNode

◆ selectNodeContents()

- (HRESULT) selectNodeContents (_In_opt_ IDOMNode *)  refNode

◆ selectNodeContents:()

- (void) selectNodeContents: (DOMNode *)  refNode

◆ setEnd()

- (HRESULT) setEnd (_In_opt_ IDOMNode *)  refNode
(int)  offset 

◆ setEnd::()

- (void) setEnd: (DOMNode *)  refNode
: (10_4) 
(10_5)  WEBKIT_DEPRECATED_MAC 

Provided by category DOMRange(DOMRangeDeprecated).

◆ setEnd:offset:()

- (void) setEnd: (DOMNode *)  refNode
offset: (10_5)  WEBKIT_AVAILABLE_MAC 

◆ setEndAfter()

- (HRESULT) setEndAfter (_In_opt_ IDOMNode *)  refNode

◆ setEndAfter:()

- (void) setEndAfter: (DOMNode *)  refNode

◆ setEndBefore()

- (HRESULT) setEndBefore (_In_opt_ IDOMNode *)  refNode

◆ setEndBefore:()

- (void) setEndBefore: (DOMNode *)  refNode

◆ setException()

- (virtual HRESULT STDMETHODCALLTYPE) setException (_In_ BSTR description

Reimplemented from DOMObject.

◆ setStart()

- (HRESULT) setStart (_In_opt_ IDOMNode *)  refNode
(int)  offset 

◆ setStart::()

- (void) setStart: (DOMNode *)  refNode
: (10_4) 
(10_5)  WEBKIT_DEPRECATED_MAC 

Provided by category DOMRange(DOMRangeDeprecated).

◆ setStart:offset:()

- (void) setStart: (DOMNode *)  refNode
offset: (10_5)  WEBKIT_AVAILABLE_MAC 

◆ setStartAfter()

- (HRESULT) setStartAfter (_In_opt_ IDOMNode *)  refNode

◆ setStartAfter:()

- (void) setStartAfter: (DOMNode *)  refNode

◆ setStartBefore()

- (HRESULT) setStartBefore (_In_opt_ IDOMNode *)  refNode

◆ setStartBefore:()

- (void) setStartBefore: (DOMNode *)  refNode

◆ setWebScriptValueAtIndex()

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

Reimplemented from DOMObject.

◆ startContainer()

- (HRESULT) startContainer (_COM_Outptr_opt_ IDOMNode **)  node

◆ startOffset()

- (HRESULT) startOffset (_Out_ int *)  offset

◆ startPosition()

- (WebVisiblePosition *) startPosition

Provided by category DOMRange(VisiblePositionExtensions).

◆ stringRepresentation()

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

Reimplemented from DOMObject.

◆ surroundContents()

- (HRESULT) surroundContents (_In_opt_ IDOMNode *)  newParent

◆ surroundContents:()

- (void) surroundContents: (DOMNode *)  newParent

◆ throwException()

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

Reimplemented from DOMObject.

◆ toString() [1/2]

- (NSString *) toString

◆ toString() [2/2]

- (HRESULT) toString (__deref_opt_out BSTR *)  str

◆ WEBKIT_AVAILABLE_MAC()

- (NSString* text) WEBKIT_AVAILABLE_MAC (10_5) 

◆ webScriptValueAtIndex()

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

Reimplemented from DOMObject.

Member Data Documentation

◆ m_range

- (Range*) DOMRange:
protected

Property Documentation

◆ collapsed

- (BOOL) collapsed
readatomicassign

◆ commonAncestorContainer

- (DOMNode *) commonAncestorContainer
readatomicstrong

◆ endContainer

- (DOMNode *) endContainer
readatomicstrong

◆ endOffset

- (int) endOffset
readatomicassign

◆ markupString

- (NSString *) markupString
readnonatomiccopy

A markup string representing the range.

Provided by category DOMRange(WebDOMRangeOperations).

◆ startContainer

- (DOMNode *) startContainer
readatomicstrong

◆ startOffset

- (int) startOffset
readatomicassign

◆ webArchive

- (WebArchive *) webArchive
readnonatomicstrong

A WebArchive representing the range.

Provided by category DOMRange(WebDOMRangeOperations).


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