Generate all Derived implementations in codegen

This commit is contained in:
Anthony Ramine 2015-09-27 17:52:37 +02:00
parent 32daa17d5c
commit 617fc08783
93 changed files with 137 additions and 1027 deletions

View file

@ -5,13 +5,11 @@
use dom::bindings::codegen::Bindings::KeyboardEventBinding;
use dom::bindings::codegen::Bindings::KeyboardEventBinding::{KeyboardEventConstants, KeyboardEventMethods};
use dom::bindings::codegen::Bindings::UIEventBinding::UIEventMethods;
use dom::bindings::codegen::InheritTypes::{EventCast, EventTypeId, KeyboardEventDerived};
use dom::bindings::codegen::InheritTypes::{UIEventCast, UIEventTypeId};
use dom::bindings::codegen::InheritTypes::{EventCast, UIEventCast};
use dom::bindings::error::Fallible;
use dom::bindings::global::GlobalRef;
use dom::bindings::js::{Root, RootedReference};
use dom::bindings::utils::{Reflectable, reflect_dom_object};
use dom::event::Event;
use dom::uievent::UIEvent;
use dom::window::Window;
use msg::constellation_msg;
@ -40,12 +38,6 @@ pub struct KeyboardEvent {
key_code: Cell<u32>,
}
impl KeyboardEventDerived for Event {
fn is_keyboardevent(&self) -> bool {
*self.type_id() == EventTypeId::UIEvent(UIEventTypeId::KeyboardEvent)
}
}
impl KeyboardEvent {
fn new_inherited() -> KeyboardEvent {
KeyboardEvent {