mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
parent
5be084a3b6
commit
68ddc6b4ab
69 changed files with 435 additions and 461 deletions
|
@ -3,8 +3,8 @@
|
|||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
use dom::bindings::codegen::WindowBinding;
|
||||
use dom::bindings::utils::{WrapperCache, DOMString, null_string, Traceable};
|
||||
use dom::bindings::utils::{CacheableWrapper, BindingObject};
|
||||
use dom::bindings::utils::{WrapperCache, DOMString, Traceable};
|
||||
use dom::bindings::utils::{CacheableWrapper, BindingObject, null_str_as_empty};
|
||||
use dom::document::AbstractDocument;
|
||||
use dom::node::{AbstractNode, ScriptView};
|
||||
use dom::navigator::Navigator;
|
||||
|
@ -65,7 +65,7 @@ pub struct TimerData {
|
|||
impl Window {
|
||||
pub fn Alert(&self, s: &DOMString) {
|
||||
// Right now, just print to the console
|
||||
io::println(fmt!("ALERT: %s", s.to_str()));
|
||||
io::println(fmt!("ALERT: %s", null_str_as_empty(s)));
|
||||
}
|
||||
|
||||
pub fn Close(&self) {
|
||||
|
@ -77,14 +77,14 @@ impl Window {
|
|||
}
|
||||
|
||||
pub fn Name(&self) -> DOMString {
|
||||
null_string
|
||||
None
|
||||
}
|
||||
|
||||
pub fn SetName(&self, _name: &DOMString) {
|
||||
}
|
||||
|
||||
pub fn Status(&self) -> DOMString {
|
||||
null_string
|
||||
None
|
||||
}
|
||||
|
||||
pub fn SetStatus(&self, _status: &DOMString) {
|
||||
|
@ -119,7 +119,7 @@ impl Window {
|
|||
}
|
||||
|
||||
pub fn Prompt(&self, _message: &DOMString, _default: &DOMString) -> DOMString {
|
||||
null_string
|
||||
None
|
||||
}
|
||||
|
||||
pub fn Print(&self) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue