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

Side by Side Diff: mojo/dart/packages/mojo/lib/src/stub.dart

Issue 1539673003: Generate Mojom Types in Dart (Take 2) (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Move and Standardize Mojom Type Functions Created 4 years, 10 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
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 part of bindings; 5 part of bindings;
6 6
7 abstract class Stub extends core.MojoEventHandler { 7 abstract class Stub extends core.MojoEventHandler {
8 int _outstandingResponseFutures = 0; 8 int _outstandingResponseFutures = 0;
9 bool _isClosing = false; 9 bool _isClosing = false;
10 Completer _closeCompleter; 10 Completer _closeCompleter;
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 var header = new MessageHeader.withRequestId(name, flags, id); 125 var header = new MessageHeader.withRequestId(name, flags, id);
126 return response.serializeWithHeader(header); 126 return response.serializeWithHeader(header);
127 } 127 }
128 128
129 String toString() { 129 String toString() {
130 var superString = super.toString(); 130 var superString = super.toString();
131 return "Stub(${superString})"; 131 return "Stub(${superString})";
132 } 132 }
133 133
134 int get version; 134 int get version;
135
136 /// Returns a service description, which exposes the mojom type information
zra 2016/01/27 18:15:12 Ditto.
alexfandrianto 2016/01/28 03:45:12 Done.
137 /// of the service being stubbed. This type information can be forwarded to
138 /// other Mojo applications and can be used to implement a generic client.
139 /// Note: In some implementations, the ServiceDescription returned will not
140 /// provide type information. Methods called may return null or an error.
141 service_describer.ServiceDescription get description => null;
135 } 142 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698