diff options
author | Paul Rouget <me@paulrouget.com> | 2019-12-06 10:10:43 +0100 |
---|---|---|
committer | Paul Rouget <me@paulrouget.com> | 2019-12-06 10:10:43 +0100 |
commit | b3b886e837792bc130d3514bef4d8619aed4c41d (patch) | |
tree | 5b5285bf4c3f5fab6d3e80b1d6b64933b5a18d6b /components/devtools_traits/lib.rs | |
parent | 6cd42bdcfbcf329ff5805a56988a9b5eeb8e0e22 (diff) | |
download | servo-b3b886e837792bc130d3514bef4d8619aed4c41d.tar.gz servo-b3b886e837792bc130d3514bef4d8619aed4c41d.zip |
devtools: save and send cached messages
Diffstat (limited to 'components/devtools_traits/lib.rs')
-rw-r--r-- | components/devtools_traits/lib.rs | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/components/devtools_traits/lib.rs b/components/devtools_traits/lib.rs index 177a0d7da1c..0e0872e7663 100644 --- a/components/devtools_traits/lib.rs +++ b/components/devtools_traits/lib.rs @@ -82,6 +82,9 @@ pub enum ScriptToDevtoolsControlMsg { /// Report a CSS parse error for the given pipeline ReportCSSError(PipelineId, CSSError), + + /// Report a page error for the given pipeline + ReportPageError(PipelineId, PageError), } /// Serialized JS return values @@ -196,12 +199,6 @@ pub enum DevtoolScriptControlMsg { GetChildren(PipelineId, String, IpcSender<Option<Vec<NodeInfo>>>), /// Retrieve the computed layout properties of the given node in the given pipeline. GetLayout(PipelineId, String, IpcSender<Option<ComputedNodeLayout>>), - /// Retrieve all stored console messages for the given pipeline. - GetCachedMessages( - PipelineId, - CachedConsoleMessageTypes, - IpcSender<Vec<CachedConsoleMessage>>, - ), /// Update a given node's attributes with a list of modifications. ModifyAttribute(PipelineId, String, Vec<Modification>), /// Request live console messages for a given pipeline (true if desired, false otherwise). @@ -253,7 +250,7 @@ bitflags! { } } -#[derive(Debug, Deserialize, Serialize)] +#[derive(Clone, Debug, Deserialize, Serialize)] pub struct PageError { #[serde(rename = "_type")] pub type_: String, |