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

Side by Side Diff: runtime/observatory/lib/src/repositories/editor.dart

Issue 2962593002: Added Editor stream and sendObjectToEditor RPC into Service Protocol (Closed)
Patch Set: Added explanation comment Created 3 years, 5 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 unified diff | Download patch
OLDNEW
(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 }
OLDNEW
« no previous file with comments | « runtime/observatory/lib/src/models/repositories/editor.dart ('k') | runtime/observatory/lib/src/service/object.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698