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 repositories; |
| 6 |
| 7 class EditorRepository extends M.EditorRepository { |
| 8 final String editor; |
| 9 |
| 10 EditorRepository(this.editor) { |
| 11 assert(this.editor != null); |
| 12 } |
| 13 |
| 14 Future<M.Sentinel> sendObject(M.IsolateRef i, M.ObjectRef object) { |
| 15 final isolate = i as S.Isolate; |
| 16 assert(isolate != null); |
| 17 return isolate.invokeRpc( |
| 18 '_sendObjectToEditor', {'editor': editor, 'objectId': object.id}); |
| 19 } |
| 20 } |
OLD | NEW |