mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Move osmain into platform
This commit is contained in:
parent
9e37dd65cb
commit
6f52d2ec9e
4 changed files with 5 additions and 5 deletions
|
@ -1,3 +1,4 @@
|
|||
import platform::osmain;
|
||||
import geom::*;
|
||||
import comm::*;
|
||||
import layout::display_list::*;
|
||||
|
|
|
@ -39,11 +39,10 @@ mod parser {
|
|||
|
||||
mod platform {
|
||||
mod base;
|
||||
mod osmain;
|
||||
}
|
||||
|
||||
mod util {
|
||||
mod tree;
|
||||
}
|
||||
|
||||
mod osmain;
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@ fn main(args: [str]) {
|
|||
}
|
||||
|
||||
// The platform event handler thread
|
||||
let osmain = osmain::osmain();
|
||||
let osmain = platform::osmain::osmain();
|
||||
|
||||
// The compositor
|
||||
let renderer = gfx::renderer::renderer(osmain);
|
||||
|
@ -35,7 +35,7 @@ fn main(args: [str]) {
|
|||
|
||||
// The keyboard handler
|
||||
let key_po = port();
|
||||
send(osmain, osmain::add_key_handler(chan(key_po)));
|
||||
send(osmain, platform::osmain::add_key_handler(chan(key_po)));
|
||||
|
||||
loop {
|
||||
send(layout, layout::layout::build);
|
||||
|
@ -49,7 +49,7 @@ fn main(args: [str]) {
|
|||
comm::send(renderer, gfx::renderer::exit(comm::chan(draw_exit_confirm_po)));
|
||||
|
||||
comm::recv(draw_exit_confirm_po);
|
||||
comm::send(osmain, osmain::exit);
|
||||
comm::send(osmain, platform::osmain::exit);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue