New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] Chrome DevTools Protocol implementation #18133
Closed
+821
−11
Closed
Changes from 1 commit
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
8ec06c6
Implement AsRef<BrowsingContextId> for TopLevel
spinda aa1413b
Add type annotation to gfx::display_list
spinda bbe380b
Add type annotation to script::dom::document
spinda 3cd4fa2
Initial Chrome DevTools Protocol implementation
spinda 6b345bf
Move shared types from servo_cdp to cdp_traits
spinda File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.
Loading status checks…
Move shared types from servo_cdp to cdp_traits
Reduces recompilation time when making changes to servo_cdp.
- Loading branch information
spinda
committed
Aug 22, 2017
spinda
Michael Smith
commit 6b345bfd6e57613f2ab0d80a3a0c269654477c89
Verified
This commit was signed with a verified signature.
GPG key ID: 8645BDF574E8F755
Learn about signing commits
Some generated files are not rendered by default. Learn more.
Oops, something went wrong.
| @@ -0,0 +1,14 @@ | ||
| [package] | ||
| name = "cdp_traits" | ||
| version = "0.0.1" | ||
| authors = ["The Servo Project Developers"] | ||
| license = "MPL-2.0" | ||
| publish = false | ||
|
|
||
| [lib] | ||
| name = "cdp_traits" | ||
| path = "lib.rs" | ||
|
|
||
| [dependencies] | ||
| futures = "0.1" | ||
| script_traits = {path = "../script_traits"} |
| @@ -0,0 +1,24 @@ | ||
| extern crate futures; | ||
|
||
| extern crate script_traits; | ||
|
|
||
| use futures::sync::mpsc as futures_mpsc; | ||
| use script_traits::ConstellationMsg; | ||
| use std::sync::mpsc as std_mpsc; | ||
|
|
||
| /// Establish a CDP server control channel. | ||
| #[inline] | ||
jdm
Member
|
||
| pub fn control_channel() -> (CdpControlSender, CdpControlReceiver) { | ||
| futures_mpsc::unbounded() | ||
| } | ||
|
|
||
| /// The sender half of a CDP server control channel. | ||
| pub type CdpControlSender = futures_mpsc::UnboundedSender<CdpControlMsg>; | ||
| /// The receiver half of a CDP server control channel. | ||
| pub type CdpControlReceiver = futures_mpsc::UnboundedReceiver<CdpControlMsg>; | ||
|
|
||
| /// Inbound control messages to the CDP server. | ||
| pub enum CdpControlMsg { | ||
| /// Complete setup with the provided constellation channel handle and start | ||
| /// accepting clients. | ||
| StartAccepting(std_mpsc::Sender<ConstellationMsg>), | ||
| } | ||
ProTip!
Use n and p to navigate between commits in a pull request.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Why is the {} necessary?