mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
auto merge of #955 : kmcallister/servo/bindings, r=metajack
This commit is contained in:
commit
7ffcc29d54
79 changed files with 1329 additions and 1020 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;
|
||||
|
@ -69,7 +69,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) {
|
||||
|
@ -81,14 +81,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) {
|
||||
|
@ -123,7 +123,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