mirror of
https://github.com/servo/servo.git
synced 2025-10-08 04:29:24 +01:00
Remove all traces of WindowProxy. Implement basic browser context concept and outerizing of inner windows.
This commit is contained in:
parent
c760577aee
commit
94dffca1e1
24 changed files with 354 additions and 155 deletions
|
@ -10,13 +10,14 @@ use dom::bindings::utils::{Reflectable, Reflector, reflect_dom_object};
|
|||
use dom::event::{Event, EventTypeId, UIEventTypeId};
|
||||
use dom::node::Node;
|
||||
use dom::window::Window;
|
||||
use dom::windowproxy::WindowProxy;
|
||||
use servo_util::str::DOMString;
|
||||
|
||||
use serialize::{Encoder, Encodable};
|
||||
|
||||
#[deriving(Encodable)]
|
||||
pub struct UIEvent {
|
||||
event: Event,
|
||||
view: Option<JS<WindowProxy>>,
|
||||
view: Option<JS<Window>>,
|
||||
detail: i32
|
||||
}
|
||||
|
||||
|
@ -50,7 +51,7 @@ impl UIEvent {
|
|||
Ok(ev)
|
||||
}
|
||||
|
||||
pub fn GetView(&self) -> Option<JS<WindowProxy>> {
|
||||
pub fn GetView(&self) -> Option<JS<Window>> {
|
||||
self.view.clone()
|
||||
}
|
||||
|
||||
|
@ -62,7 +63,7 @@ impl UIEvent {
|
|||
type_: DOMString,
|
||||
can_bubble: bool,
|
||||
cancelable: bool,
|
||||
view: Option<JS<WindowProxy>>,
|
||||
view: Option<JS<Window>>,
|
||||
detail: i32) {
|
||||
self.event.InitEvent(type_, can_bubble, cancelable);
|
||||
self.view = view;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue