Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(985)

Unified Diff: runtime/vm/service/service.md

Issue 1537523002: Add dart:developer.postEvent for posting events to the service protocol from Dart code (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/service.cc ('k') | runtime/vm/service_event.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/service/service.md
diff --git a/runtime/vm/service/service.md b/runtime/vm/service/service.md
index 2c72b725b89419871b69c1a4d39c385a658a6af7..5bb234fba1ec59f7ead850f78c3c5a0755c26d7e 100644
--- a/runtime/vm/service/service.md
+++ b/runtime/vm/service/service.md
@@ -58,6 +58,7 @@ The Service Protocol uses [JSON-RPC 2.0][].
- [ErrorKind](#errorkind)
- [Event](#event)
- [EventKind](#eventkind)
+ - [ExtensionData](#extensiondata)
- [Field](#field)
- [Flag](#flag)
- [FlagList](#flaglist)
@@ -718,6 +719,7 @@ VM | VMUpdate
Isolate | IsolateStart, IsolateRunnable, IsolateExit, IsolateUpdate, ServiceExtensionAdded
Debug | PauseStart, PauseExit, PauseBreakpoint, PauseInterrupted, PauseException, Resume, BreakpointAdded, BreakpointResolved, BreakpointRemoved, Inspect
GC | GC
+Extension | Extension
Additionally, some embedders provide the _Stdout_ and _Stderr_
streams. These streams allow the client to subscribe to writes to
@@ -1142,8 +1144,18 @@ class Event extends Response {
// The RPC name of the extension that was added.
//
- // This is provided for the ServiceExtensionAdded.
+ // This is provided for the ServiceExtensionAdded event.
string extensionRPC [optional];
+
+ // The extension event kind.
+ //
+ // This is provided for the Extension event.
+ string extensionKind [optional];
+
+ // The extension event data.
+ //
+ // This is provided for the Extension event.
+ ExtensionData extensionData [optional];
}
```
@@ -1212,13 +1224,25 @@ enum EventKind {
WriteEvent,
// Notification from dart:developer.inspect.
- Inspect
+ Inspect,
+
+ // Event from dart:developer.postEvent.
+ Extension
}
```
Adding new values to _EventKind_ is considered a backwards compatible
change. Clients should ignore unrecognized events.
+### ExtensionData
+
+```
+class ExtensionData {
+}
+```
+
+An _ExtensionData_ is an arbitrary map that can have any contents.
+
### Field
```
« no previous file with comments | « runtime/vm/service.cc ('k') | runtime/vm/service_event.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698