mirror of
https://github.com/servo/servo.git
synced 2025-10-10 13:30:20 +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
|
@ -5,7 +5,6 @@
|
|||
use dom::bindings::codegen::BindingDeclarations::LocationBinding;
|
||||
use dom::bindings::js::{JSRef, Temporary};
|
||||
use dom::bindings::utils::{Reflectable, Reflector, reflect_dom_object};
|
||||
use dom::bindings::error::Fallible;
|
||||
use dom::window::Window;
|
||||
use servo_util::str::DOMString;
|
||||
|
||||
|
@ -37,128 +36,13 @@ impl Location {
|
|||
}
|
||||
|
||||
pub trait LocationMethods {
|
||||
fn Assign(&self, _url: DOMString);
|
||||
fn Replace(&self, _url: DOMString);
|
||||
fn Reload(&self);
|
||||
fn Href(&self) -> DOMString;
|
||||
fn SetHref(&self, _href: DOMString) -> Fallible<()>;
|
||||
fn Origin(&self) -> DOMString;
|
||||
fn Protocol(&self) -> DOMString;
|
||||
fn SetProtocol(&self, _protocol: DOMString);
|
||||
fn Username(&self) -> DOMString;
|
||||
fn SetUsername(&self, _username: DOMString);
|
||||
fn Password(&self) -> DOMString;
|
||||
fn SetPassword(&self, _password: DOMString);
|
||||
fn Host(&self) -> DOMString;
|
||||
fn SetHost(&self, _host: DOMString);
|
||||
fn Hostname(&self) -> DOMString;
|
||||
fn SetHostname(&self, _hostname: DOMString);
|
||||
fn Port(&self) -> DOMString;
|
||||
fn SetPort(&self, _port: DOMString);
|
||||
fn Pathname(&self) -> DOMString;
|
||||
fn SetPathname(&self, _pathname: DOMString);
|
||||
fn Search(&self) -> DOMString;
|
||||
fn SetSearch(&self, _search: DOMString);
|
||||
fn Hash(&self) -> DOMString;
|
||||
fn SetHash(&self, _hash: DOMString);
|
||||
}
|
||||
|
||||
impl<'a> LocationMethods for JSRef<'a, Location> {
|
||||
fn Assign(&self, _url: DOMString) {
|
||||
|
||||
}
|
||||
|
||||
fn Replace(&self, _url: DOMString) {
|
||||
|
||||
}
|
||||
|
||||
fn Reload(&self) {
|
||||
|
||||
}
|
||||
|
||||
fn Href(&self) -> DOMString {
|
||||
self.page.get_url().to_str()
|
||||
}
|
||||
|
||||
fn SetHref(&self, _href: DOMString) -> Fallible<()> {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
fn Origin(&self) -> DOMString {
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn Protocol(&self) -> DOMString {
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetProtocol(&self, _protocol: DOMString) {
|
||||
|
||||
}
|
||||
|
||||
fn Username(&self) -> DOMString {
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetUsername(&self, _username: DOMString) {
|
||||
|
||||
}
|
||||
|
||||
fn Password(&self) -> DOMString {
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetPassword(&self, _password: DOMString) {
|
||||
|
||||
}
|
||||
|
||||
fn Host(&self) -> DOMString {
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetHost(&self, _host: DOMString) {
|
||||
|
||||
}
|
||||
|
||||
fn Hostname(&self) -> DOMString {
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetHostname(&self, _hostname: DOMString) {
|
||||
|
||||
}
|
||||
|
||||
fn Port(&self) -> DOMString {
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetPort(&self, _port: DOMString) {
|
||||
|
||||
}
|
||||
|
||||
fn Pathname(&self) -> DOMString {
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetPathname(&self, _pathname: DOMString) {
|
||||
|
||||
}
|
||||
|
||||
fn Search(&self) -> DOMString {
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetSearch(&self, _search: DOMString) {
|
||||
|
||||
}
|
||||
|
||||
fn Hash(&self) -> DOMString {
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetHash(&self, _hash: DOMString) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
impl Reflectable for Location {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue