diff options
author | Corey Farwell <coreyf@rwell.org> | 2015-08-31 19:19:08 -0400 |
---|---|---|
committer | Corey Farwell <coreyf@rwell.org> | 2015-08-31 21:02:23 -0400 |
commit | 3a1d140ab5c26415b8fa0764bd8aa688f0b23636 (patch) | |
tree | 2f93c677ae9288a511b54ce00462aea3c37f76a3 /components/script/dom/xmlhttprequesteventtarget.rs | |
parent | 7474b295104e75c013849e104704019dc4801c91 (diff) | |
download | servo-3a1d140ab5c26415b8fa0764bd8aa688f0b23636.tar.gz servo-3a1d140ab5c26415b8fa0764bd8aa688f0b23636.zip |
Enforce linking to spec for method implementations via macros
Diffstat (limited to 'components/script/dom/xmlhttprequesteventtarget.rs')
-rw-r--r-- | components/script/dom/xmlhttprequesteventtarget.rs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/components/script/dom/xmlhttprequesteventtarget.rs b/components/script/dom/xmlhttprequesteventtarget.rs index 0e443d65041..627e4882dde 100644 --- a/components/script/dom/xmlhttprequesteventtarget.rs +++ b/components/script/dom/xmlhttprequesteventtarget.rs @@ -38,11 +38,24 @@ impl XMLHttpRequestEventTargetDerived for EventTarget { } impl XMLHttpRequestEventTargetMethods for XMLHttpRequestEventTarget { + // https://xhr.spec.whatwg.org/#handler-xhr-onloadstart event_handler!(loadstart, GetOnloadstart, SetOnloadstart); + + // https://xhr.spec.whatwg.org/#handler-xhr-onprogress event_handler!(progress, GetOnprogress, SetOnprogress); + + // https://xhr.spec.whatwg.org/#handler-xhr-onabort event_handler!(abort, GetOnabort, SetOnabort); + + // https://xhr.spec.whatwg.org/#handler-xhr-onerror event_handler!(error, GetOnerror, SetOnerror); + + // https://xhr.spec.whatwg.org/#handler-xhr-onload event_handler!(load, GetOnload, SetOnload); + + // https://xhr.spec.whatwg.org/#handler-xhr-ontimeout event_handler!(timeout, GetOntimeout, SetOntimeout); + + // https://xhr.spec.whatwg.org/#handler-xhr-onloadend event_handler!(loadend, GetOnloadend, SetOnloadend); } |