mirror of
https://github.com/servo/servo.git
synced 2025-10-08 04:29:24 +01:00
Remove not-yet-implemented APIs, and update MouseEvent to specification.
This commit is contained in:
parent
59cef940e8
commit
c1d2d700c5
15 changed files with 198 additions and 706 deletions
|
@ -8,7 +8,6 @@ use dom::bindings::js::{JS, JSRef, RootedReference, Temporary, OptionalSettable}
|
|||
use dom::bindings::error::Fallible;
|
||||
use dom::bindings::utils::{Reflectable, Reflector, reflect_dom_object};
|
||||
use dom::event::{Event, EventMethods, EventTypeId, UIEventTypeId};
|
||||
use dom::node::Node;
|
||||
use dom::window::Window;
|
||||
use servo_util::str::DOMString;
|
||||
|
||||
|
@ -67,16 +66,6 @@ impl UIEvent {
|
|||
pub trait UIEventMethods {
|
||||
fn GetView(&self) -> Option<Temporary<Window>>;
|
||||
fn Detail(&self) -> i32;
|
||||
fn LayerX(&self) -> i32;
|
||||
fn LayerY(&self) -> i32;
|
||||
fn PageX(&self) -> i32;
|
||||
fn PageY(&self) -> i32;
|
||||
fn Which(&self) -> u32;
|
||||
fn GetRangeParent(&self) -> Option<Temporary<Node>>;
|
||||
fn RangeOffset(&self) -> i32;
|
||||
fn CancelBubble(&self) -> bool;
|
||||
fn SetCancelBubble(&self, _val: bool);
|
||||
fn IsChar(&self) -> bool;
|
||||
fn InitUIEvent(&mut self,
|
||||
type_: DOMString,
|
||||
can_bubble: bool,
|
||||
|
@ -107,55 +96,6 @@ impl<'a> UIEventMethods for JSRef<'a, UIEvent> {
|
|||
self.view.assign(view);
|
||||
self.detail = detail;
|
||||
}
|
||||
|
||||
fn LayerX(&self) -> i32 {
|
||||
//TODO
|
||||
0
|
||||
}
|
||||
|
||||
fn LayerY(&self) -> i32 {
|
||||
//TODO
|
||||
0
|
||||
}
|
||||
|
||||
fn PageX(&self) -> i32 {
|
||||
//TODO
|
||||
0
|
||||
}
|
||||
|
||||
fn PageY(&self) -> i32 {
|
||||
//TODO
|
||||
0
|
||||
}
|
||||
|
||||
fn Which(&self) -> u32 {
|
||||
//TODO
|
||||
0
|
||||
}
|
||||
|
||||
fn GetRangeParent(&self) -> Option<Temporary<Node>> {
|
||||
//TODO
|
||||
None
|
||||
}
|
||||
|
||||
fn RangeOffset(&self) -> i32 {
|
||||
//TODO
|
||||
0
|
||||
}
|
||||
|
||||
fn CancelBubble(&self) -> bool {
|
||||
//TODO
|
||||
false
|
||||
}
|
||||
|
||||
fn SetCancelBubble(&self, _val: bool) {
|
||||
//TODO
|
||||
}
|
||||
|
||||
fn IsChar(&self) -> bool {
|
||||
//TODO
|
||||
false
|
||||
}
|
||||
}
|
||||
|
||||
impl Reflectable for UIEvent {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue