DOM module: re-add more missing stuff
This commit is contained in:
parent
4ed7507cb2
commit
8bc7c50c86
1 changed files with 36 additions and 1 deletions
|
|
@ -72,6 +72,37 @@ type
|
||||||
Unload = "unload",
|
Unload = "unload",
|
||||||
Wheel = "wheel"
|
Wheel = "wheel"
|
||||||
|
|
||||||
|
PerformanceMemory* {.importc.} = ref object
|
||||||
|
jsHeapSizeLimit*: float
|
||||||
|
totalJSHeapSize*: float
|
||||||
|
usedJSHeapSize*: float
|
||||||
|
|
||||||
|
PerformanceTiming* {.importc.} = ref object
|
||||||
|
connectStart*: float
|
||||||
|
domComplete*: float
|
||||||
|
domContentLoadedEventEnd*: float
|
||||||
|
domContentLoadedEventStart*: float
|
||||||
|
domInteractive*: float
|
||||||
|
domLoading*: float
|
||||||
|
domainLookupEnd*: float
|
||||||
|
domainLookupStart*: float
|
||||||
|
fetchStart*: float
|
||||||
|
loadEventEnd*: float
|
||||||
|
loadEventStart*: float
|
||||||
|
navigationStart*: float
|
||||||
|
redirectEnd*: float
|
||||||
|
redirectStart*: float
|
||||||
|
requestStart*: float
|
||||||
|
responseEnd*: float
|
||||||
|
responseStart*: float
|
||||||
|
secureConnectionStart*: float
|
||||||
|
unloadEventEnd*: float
|
||||||
|
unloadEventStart*: float
|
||||||
|
|
||||||
|
Performance* {.importc.} = ref object
|
||||||
|
memory*: PerformanceMemory
|
||||||
|
timing*: PerformanceTiming
|
||||||
|
|
||||||
Window* = ref WindowObj
|
Window* = ref WindowObj
|
||||||
WindowObj {.importc.} = object of EventTargetObj
|
WindowObj {.importc.} = object of EventTargetObj
|
||||||
document*: Document
|
document*: Document
|
||||||
|
|
@ -80,12 +111,15 @@ type
|
||||||
location*: Location
|
location*: Location
|
||||||
closed*: bool
|
closed*: bool
|
||||||
defaultStatus*: cstring
|
defaultStatus*: cstring
|
||||||
|
devicePixelRatio*: float
|
||||||
innerHeight*, innerWidth*: int
|
innerHeight*, innerWidth*: int
|
||||||
locationbar*: ref LocationBar
|
locationbar*: ref LocationBar
|
||||||
menubar*: ref MenuBar
|
menubar*: ref MenuBar
|
||||||
name*: cstring
|
name*: cstring
|
||||||
outerHeight*, outerWidth*: int
|
outerHeight*, outerWidth*: int
|
||||||
pageXOffset*, pageYOffset*: int
|
pageXOffset*, pageYOffset*: int
|
||||||
|
scrollX*: float
|
||||||
|
scrollY*: float
|
||||||
personalbar*: ref PersonalBar
|
personalbar*: ref PersonalBar
|
||||||
scrollbars*: ref ScrollBars
|
scrollbars*: ref ScrollBars
|
||||||
statusbar*: ref StatusBar
|
statusbar*: ref StatusBar
|
||||||
|
|
@ -93,6 +127,8 @@ type
|
||||||
toolbar*: ref ToolBar
|
toolbar*: ref ToolBar
|
||||||
frames*: seq[Frame]
|
frames*: seq[Frame]
|
||||||
screen*: Screen
|
screen*: Screen
|
||||||
|
performance*: Performance
|
||||||
|
onpopstate*: proc (event: Event)
|
||||||
|
|
||||||
Frame* = ref FrameObj
|
Frame* = ref FrameObj
|
||||||
FrameObj {.importc.} = object of WindowObj
|
FrameObj {.importc.} = object of WindowObj
|
||||||
|
|
@ -1075,7 +1111,6 @@ proc setTimeout*(w: Window, function: proc (), pause: int): ref Interval
|
||||||
proc stop*(w: Window)
|
proc stop*(w: Window)
|
||||||
proc requestAnimationFrame*(w: Window, function: proc (time: float)): int
|
proc requestAnimationFrame*(w: Window, function: proc (time: float)): int
|
||||||
proc cancelAnimationFrame*(w: Window, id: int)
|
proc cancelAnimationFrame*(w: Window, id: int)
|
||||||
proc onpopstate*(w: Window, ev: Event)
|
|
||||||
|
|
||||||
# Node "methods"
|
# Node "methods"
|
||||||
proc appendData*(n: Node, data: cstring)
|
proc appendData*(n: Node, data: cstring)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue