mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Generate all Derived implementations in codegen
This commit is contained in:
parent
32daa17d5c
commit
617fc08783
93 changed files with 137 additions and 1027 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue