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

Unified Diff: runtime/vm/service_event.h

Issue 2962593002: Added Editor stream and sendObjectToEditor RPC into Service Protocol (Closed)
Patch Set: Added explanation comment Created 3 years, 6 months 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.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/service_event.h
diff --git a/runtime/vm/service_event.h b/runtime/vm/service_event.h
index d0db082a4da03904c1d0e3da5fa2503b6e3cd117..9acd3eeb791c96e950f74fe9ae43d6a59e2dac3a 100644
--- a/runtime/vm/service_event.h
+++ b/runtime/vm/service_event.h
@@ -56,6 +56,8 @@ class ServiceEvent {
kTimelineEvents,
+ kEditorObjectSelected,
+
kIllegal,
};
@@ -75,6 +77,11 @@ class ServiceEvent {
const String* event_data;
};
+ struct EditorEvent {
+ const char* editor;
+ const Object* object;
+ };
+
ServiceEvent(Isolate* isolate, EventKind event_kind);
Isolate* isolate() const { return isolate_; }
@@ -194,6 +201,10 @@ class ServiceEvent {
extension_event_ = extension_event;
}
+ void set_editor_event(const EditorEvent& editor_event) {
+ editor_event_ = editor_event;
+ }
+
void UpdateTimestamp();
int64_t timestamp() const { return timestamp_; }
@@ -231,6 +242,7 @@ class ServiceEvent {
intptr_t bytes_length_;
LogRecord log_record_;
ExtensionEvent extension_event_;
+ EditorEvent editor_event_;
int64_t timestamp_;
};
« no previous file with comments | « runtime/vm/service.cc ('k') | runtime/vm/service_event.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698