OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. |
| 4 |
| 5 part of app; |
| 6 |
| 7 class VMUpdateEvent implements M.VMUpdateEvent { |
| 8 final DateTime timestamp; |
| 9 final M.VMRef vm; |
| 10 VMUpdateEvent(this.timestamp, this.vm) { |
| 11 assert(timestamp != null); |
| 12 assert(vm != null); |
| 13 } |
| 14 } |
| 15 |
| 16 class IsolateStartEvent implements M.IsolateStartEvent { |
| 17 final DateTime timestamp; |
| 18 final M.IsolateRef isolate; |
| 19 IsolateStartEvent(this.timestamp, this.isolate) { |
| 20 assert(timestamp != null); |
| 21 assert(isolate != null); |
| 22 } |
| 23 } |
| 24 |
| 25 class IsolateRunnableEvent implements M.IsolateRunnableEvent { |
| 26 final DateTime timestamp; |
| 27 final M.IsolateRef isolate; |
| 28 IsolateRunnableEvent(this.timestamp, this.isolate) { |
| 29 assert(timestamp != null); |
| 30 assert(isolate != null); |
| 31 } |
| 32 } |
| 33 |
| 34 class IsolateExitEvent implements M.IsolateExitEvent { |
| 35 final DateTime timestamp; |
| 36 final M.IsolateRef isolate; |
| 37 IsolateExitEvent(this.timestamp, this.isolate) { |
| 38 assert(timestamp != null); |
| 39 assert(isolate != null); |
| 40 } |
| 41 } |
| 42 |
| 43 class IsolateUpdateEvent implements M.IsolateUpdateEvent { |
| 44 final DateTime timestamp; |
| 45 final M.IsolateRef isolate; |
| 46 IsolateUpdateEvent(this.timestamp, this.isolate) { |
| 47 assert(timestamp != null); |
| 48 assert(isolate != null); |
| 49 } |
| 50 } |
| 51 |
| 52 class IsolateReloadEvent implements M.IsolateReloadEvent { |
| 53 final DateTime timestamp; |
| 54 final M.IsolateRef isolate; |
| 55 final M.ErrorRef error; |
| 56 IsolateReloadEvent(this.timestamp, this.isolate, this.error) { |
| 57 assert(timestamp != null); |
| 58 assert(isolate != null); |
| 59 assert(error != null); |
| 60 } |
| 61 } |
| 62 |
| 63 class ServiceExtensionAddedEvent implements M.ServiceExtensionAddedEvent { |
| 64 final DateTime timestamp; |
| 65 final M.IsolateRef isolate; |
| 66 final String extensionRPC; |
| 67 ServiceExtensionAddedEvent(this.timestamp, this.isolate, this.extensionRPC) { |
| 68 assert(timestamp != null); |
| 69 assert(isolate != null); |
| 70 assert(extensionRPC != null); |
| 71 } |
| 72 } |
| 73 |
| 74 class DebuggerSettingsUpdateEvent implements M.DebuggerSettingsUpdateEvent { |
| 75 final DateTime timestamp; |
| 76 final M.IsolateRef isolate; |
| 77 DebuggerSettingsUpdateEvent(this.timestamp, this.isolate) { |
| 78 assert(timestamp != null); |
| 79 assert(isolate != null); |
| 80 } |
| 81 } |
| 82 |
| 83 class PauseStartEvent implements M.PauseStartEvent { |
| 84 final DateTime timestamp; |
| 85 final M.IsolateRef isolate; |
| 86 PauseStartEvent(this.timestamp, this.isolate) { |
| 87 assert(timestamp != null); |
| 88 assert(isolate != null); |
| 89 } |
| 90 } |
| 91 |
| 92 class PauseExitEvent implements M.PauseExitEvent { |
| 93 final DateTime timestamp; |
| 94 final M.IsolateRef isolate; |
| 95 PauseExitEvent(this.timestamp, this.isolate) { |
| 96 assert(timestamp != null); |
| 97 assert(isolate != null); |
| 98 } |
| 99 } |
| 100 |
| 101 class PauseBreakpointEvent implements M.PauseBreakpointEvent { |
| 102 final DateTime timestamp; |
| 103 final M.IsolateRef isolate; |
| 104 final Iterable<M.Breakpoint> pauseBreakpoints; |
| 105 final M.Frame topFrame; |
| 106 final bool atAsyncSuspension; |
| 107 /// [optional] |
| 108 final M.Breakpoint breakpoint; |
| 109 PauseBreakpointEvent(this.timestamp, this.isolate, |
| 110 Iterable<M.Breakpoint> pauseBreakpoints, this.topFrame, |
| 111 this.atAsyncSuspension, [this.breakpoint]) |
| 112 : pauseBreakpoints = new List.unmodifiable(pauseBreakpoints){ |
| 113 assert(timestamp != null); |
| 114 assert(isolate != null); |
| 115 assert(pauseBreakpoints != null); |
| 116 assert(topFrame != null); |
| 117 assert(atAsyncSuspension != null); |
| 118 } |
| 119 } |
| 120 |
| 121 class PauseInterruptedEvent implements M.PauseInterruptedEvent { |
| 122 final DateTime timestamp; |
| 123 final M.IsolateRef isolate; |
| 124 final M.Frame topFrame; |
| 125 final bool atAsyncSuspension; |
| 126 PauseInterruptedEvent(this.timestamp, this.isolate, this.topFrame, |
| 127 this.atAsyncSuspension) { |
| 128 assert(timestamp != null); |
| 129 assert(isolate != null); |
| 130 assert(atAsyncSuspension != null); |
| 131 } |
| 132 } |
| 133 |
| 134 class PauseExceptionEvent implements M.PauseExceptionEvent { |
| 135 final DateTime timestamp; |
| 136 final M.IsolateRef isolate; |
| 137 final M.Frame topFrame; |
| 138 final M.InstanceRef exception; |
| 139 PauseExceptionEvent(this.timestamp, this.isolate, this.topFrame, |
| 140 this.exception) { |
| 141 assert(timestamp != null); |
| 142 assert(isolate != null); |
| 143 assert(topFrame != null); |
| 144 assert(exception != null); |
| 145 } |
| 146 } |
| 147 |
| 148 class ResumeEvent implements M.ResumeEvent { |
| 149 final DateTime timestamp; |
| 150 final M.IsolateRef isolate; |
| 151 final M.Frame topFrame; |
| 152 ResumeEvent(this.timestamp, this.isolate, this.topFrame) { |
| 153 assert(timestamp != null); |
| 154 assert(isolate != null); |
| 155 } |
| 156 } |
| 157 |
| 158 class BreakpointAddedEvent implements M.BreakpointAddedEvent { |
| 159 final DateTime timestamp; |
| 160 final M.IsolateRef isolate; |
| 161 final M.Breakpoint breakpoint; |
| 162 BreakpointAddedEvent(this.timestamp, this.isolate, this.breakpoint) { |
| 163 assert(timestamp != null); |
| 164 assert(isolate != null); |
| 165 assert(breakpoint != null); |
| 166 } |
| 167 } |
| 168 |
| 169 class BreakpointResolvedEvent implements M.BreakpointResolvedEvent { |
| 170 final DateTime timestamp; |
| 171 final M.IsolateRef isolate; |
| 172 final M.Breakpoint breakpoint; |
| 173 BreakpointResolvedEvent(this.timestamp, this.isolate, this.breakpoint) { |
| 174 assert(timestamp != null); |
| 175 assert(isolate != null); |
| 176 assert(breakpoint != null); |
| 177 } |
| 178 } |
| 179 |
| 180 class BreakpointRemovedEvent implements M.BreakpointRemovedEvent { |
| 181 final DateTime timestamp; |
| 182 final M.IsolateRef isolate; |
| 183 final M.Breakpoint breakpoint; |
| 184 BreakpointRemovedEvent(this.timestamp, this.isolate, this.breakpoint) { |
| 185 assert(timestamp != null); |
| 186 assert(isolate != null); |
| 187 assert(breakpoint != null); |
| 188 } |
| 189 } |
| 190 |
| 191 class InspectEvent implements M.InspectEvent { |
| 192 final DateTime timestamp; |
| 193 final M.IsolateRef isolate; |
| 194 final M.InstanceRef inspectee; |
| 195 InspectEvent(this.timestamp, this.isolate, this.inspectee) { |
| 196 assert(timestamp != null); |
| 197 assert(isolate != null); |
| 198 assert(inspectee != null); |
| 199 } |
| 200 } |
| 201 |
| 202 class NoneEvent implements M.NoneEvent { |
| 203 final DateTime timestamp; |
| 204 final M.IsolateRef isolate; |
| 205 NoneEvent(this.timestamp, this.isolate) { |
| 206 assert(timestamp != null); |
| 207 assert(isolate != null); |
| 208 } |
| 209 } |
| 210 |
| 211 class GCEvent implements M.GCEvent { |
| 212 final DateTime timestamp; |
| 213 final M.IsolateRef isolate; |
| 214 GCEvent(this.timestamp, this.isolate) { |
| 215 assert(timestamp != null); |
| 216 assert(isolate != null); |
| 217 } |
| 218 } |
| 219 |
| 220 class ExtensionEvent implements M.ExtensionEvent { |
| 221 final DateTime timestamp; |
| 222 final M.IsolateRef isolate; |
| 223 final String extensionKind; |
| 224 final M.ExtensionData extensionData; |
| 225 ExtensionEvent(this.timestamp, this.isolate, this.extensionKind, |
| 226 this.extensionData) { |
| 227 assert(timestamp != null); |
| 228 assert(isolate != null); |
| 229 assert(extensionKind != null); |
| 230 assert(extensionData != null); |
| 231 } |
| 232 } |
| 233 |
| 234 class TimelineEventsEvent implements M.TimelineEventsEvent { |
| 235 final DateTime timestamp; |
| 236 final M.IsolateRef isolate; |
| 237 final Iterable<M.TimelineEvent> timelineEvents; |
| 238 TimelineEventsEvent(this.timestamp, this.isolate, |
| 239 Iterable<M.TimelineEvent> timelineEvents) |
| 240 : timelineEvents = new List.unmodifiable(timelineEvents){ |
| 241 assert(timestamp != null); |
| 242 assert(isolate != null); |
| 243 assert(timelineEvents != null); |
| 244 } |
| 245 } |
| 246 |
| 247 class ConnectionClosedEvent implements M.ConnectionClosedEvent { |
| 248 final DateTime timestamp; |
| 249 final String reason; |
| 250 ConnectionClosedEvent(this.timestamp, this.reason) { |
| 251 assert(timestamp != null); |
| 252 assert(reason != null); |
| 253 } |
| 254 } |
OLD | NEW |