Webidl and basic implementation of XHR object

This commit is contained in:
Manish Goregaokar 2014-05-02 11:04:21 +05:30
parent 803c922248
commit 619da07a4f
10 changed files with 364 additions and 17 deletions

View file

@ -10,6 +10,7 @@ use self::EventListenerBinding::EventListener;
use dom::event::Event;
use dom::eventdispatcher::dispatch_event;
use dom::node::NodeTypeId;
use dom::xmlhttprequest::XMLHttpRequestId;
use dom::virtualmethods::VirtualMethods;
use servo_util::str::DOMString;
@ -23,8 +24,9 @@ pub enum ListenerPhase {
#[deriving(Eq,Encodable)]
pub enum EventTargetTypeId {
NodeTargetTypeId(NodeTypeId),
WindowTypeId,
NodeTargetTypeId(NodeTypeId)
XMLHttpRequestTargetTypeId(XMLHttpRequestId)
}
#[deriving(Eq,Encodable)]