mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Make EventTypeId reflect DOM inheritance hierarchy
This commit is contained in:
parent
50e1c967e4
commit
d3c60af5c6
4 changed files with 22 additions and 13 deletions
|
@ -10,6 +10,7 @@ use dom::bindings::global::GlobalRef;
|
|||
use dom::bindings::js::{JS, MutNullableHeap, Root};
|
||||
use dom::bindings::utils::{Reflector, reflect_dom_object};
|
||||
use dom::eventtarget::{EventTarget, EventTargetHelpers};
|
||||
use dom::uievent::{UIEventTypeId};
|
||||
use util::str::DOMString;
|
||||
|
||||
use std::borrow::ToOwned;
|
||||
|
@ -32,12 +33,10 @@ pub enum EventPhase {
|
|||
pub enum EventTypeId {
|
||||
CustomEvent,
|
||||
HTMLEvent,
|
||||
KeyboardEvent,
|
||||
MessageEvent,
|
||||
MouseEvent,
|
||||
ProgressEvent,
|
||||
StorageEvent,
|
||||
UIEvent,
|
||||
UIEvent(UIEventTypeId),
|
||||
ErrorEvent,
|
||||
CloseEvent
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue