diff options
Diffstat (limited to 'components/msg/lib.rs')
-rw-r--r-- | components/msg/lib.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/components/msg/lib.rs b/components/msg/lib.rs index ca8383225fd..0d88a456917 100644 --- a/components/msg/lib.rs +++ b/components/msg/lib.rs @@ -11,6 +11,7 @@ extern crate azure; extern crate bitflags; #[cfg(target_os = "macos")] extern crate core_foundation; +extern crate cssparser; extern crate euclid; extern crate hyper; #[cfg(target_os = "macos")] @@ -25,3 +26,12 @@ extern crate util; pub mod compositor_msg; pub mod constellation_msg; pub mod webdriver_msg; + +use constellation_msg::PipelineId; +use cssparser::{Parser, SourcePosition}; + +pub trait ParseErrorReporter { + fn report_error(&self, input: &mut Parser, position: SourcePosition, message: &str); + fn clone(&self) -> Box<ParseErrorReporter + Send + Sync>; + fn pipeline(&self) -> PipelineId; +} |