aboutsummaryrefslogtreecommitdiffstats
path: root/components/servo/lib.rs
diff options
context:
space:
mode:
authorKyle Headley <kyle.headley@colorado.edu>2016-05-26 10:00:23 -0600
committerKyle Headley <kyle.headley@colorado.edu>2016-05-31 15:29:19 -0600
commit2bb109b14f6dd372b8a3da94787a9c7b1a84559a (patch)
tree31bcbe4ba91da0357c6399006d35a166eac6a1b0 /components/servo/lib.rs
parent55b0bb027caba9ca4f3fb091c55a53c24380dccb (diff)
downloadservo-2bb109b14f6dd372b8a3da94787a9c7b1a84559a.tar.gz
servo-2bb109b14f6dd372b8a3da94787a9c7b1a84559a.zip
Removed CompositorEventListener trait
Diffstat (limited to 'components/servo/lib.rs')
-rw-r--r--components/servo/lib.rs12
1 files changed, 5 insertions, 7 deletions
diff --git a/components/servo/lib.rs b/components/servo/lib.rs
index 71a3bc77309..bb86a01080e 100644
--- a/components/servo/lib.rs
+++ b/components/servo/lib.rs
@@ -57,11 +57,10 @@ fn webdriver(port: u16, constellation: Sender<ConstellationMsg>) {
#[cfg(not(feature = "webdriver"))]
fn webdriver(_port: u16, _constellation: Sender<ConstellationMsg>) { }
-use compositing::CompositorEventListener;
use compositing::compositor_thread::InitialCompositorState;
use compositing::windowing::WindowEvent;
use compositing::windowing::WindowMethods;
-use compositing::{CompositorProxy, CompositorThread};
+use compositing::{CompositorProxy, CompositorThread, IOCompositor};
#[cfg(not(target_os = "windows"))]
use constellation::content_process_sandbox_profile;
use constellation::{Constellation, InitialConstellationState, UnprivilegedPipelineContent};
@@ -97,13 +96,12 @@ pub use gleam::gl;
/// application Servo is embedded in. Clients then create an event
/// loop to pump messages between the embedding application and
/// various browser components.
-pub struct Browser {
- compositor: Box<CompositorEventListener + 'static>,
+pub struct Browser<Window: WindowMethods + 'static> {
+ compositor: IOCompositor<Window>,
}
-impl Browser {
- pub fn new<Window>(window: Rc<Window>) -> Browser
- where Window: WindowMethods + 'static {
+impl<Window> Browser<Window> where Window: WindowMethods + 'static {
+ pub fn new(window: Rc<Window>) -> Browser<Window> {
// Global configuration options, parsed from the command line.
let opts = opts::get();