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

Side by Side Diff: mojo/dart/packages/mojo/lib/mojo/interface_control_messages.mojom.dart

Issue 1539673003: Generate Mojom Types in Dart (Take 2) (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Merge with master 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 library interface_control_messages_mojom; 5 library interface_control_messages_mojom;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 8
9 import 'package:mojo/bindings.dart' as bindings; 9 import 'package:mojo/bindings.dart' as bindings;
10 import 'package:mojo/core.dart' as core; 10 import 'package:mojo/core.dart' as core;
11 import 'package:mojo/mojo/bindings/types/mojom_types.mojom.dart' as mojom_types;
12
11 const int kRunMessageId = 4294967295; 13 const int kRunMessageId = 4294967295;
12 const int kRunOrClosePipeMessageId = 4294967294; 14 const int kRunOrClosePipeMessageId = 4294967294;
13 15
14 16
15 17
16 class RunMessageParams extends bindings.Struct { 18 class RunMessageParams extends bindings.Struct {
17 static const List<bindings.StructDataHeader> kVersions = const [ 19 static const List<bindings.StructDataHeader> kVersions = const [
18 const bindings.StructDataHeader(24, 0) 20 const bindings.StructDataHeader(24, 0)
19 ]; 21 ];
20 int reserved0 = 0; 22 int reserved0 = 0;
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 Map toJson() { 94 Map toJson() {
93 Map map = new Map(); 95 Map map = new Map();
94 map["reserved0"] = reserved0; 96 map["reserved0"] = reserved0;
95 map["reserved1"] = reserved1; 97 map["reserved1"] = reserved1;
96 map["queryVersion"] = queryVersion; 98 map["queryVersion"] = queryVersion;
97 return map; 99 return map;
98 } 100 }
99 } 101 }
100 102
101 103
104
105
102 class RunResponseMessageParams extends bindings.Struct { 106 class RunResponseMessageParams extends bindings.Struct {
103 static const List<bindings.StructDataHeader> kVersions = const [ 107 static const List<bindings.StructDataHeader> kVersions = const [
104 const bindings.StructDataHeader(24, 0) 108 const bindings.StructDataHeader(24, 0)
105 ]; 109 ];
106 int reserved0 = 0; 110 int reserved0 = 0;
107 int reserved1 = 0; 111 int reserved1 = 0;
108 QueryVersionResult queryVersionResult = null; 112 QueryVersionResult queryVersionResult = null;
109 113
110 RunResponseMessageParams() : super(kVersions.last.size); 114 RunResponseMessageParams() : super(kVersions.last.size);
111 115
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 Map toJson() { 182 Map toJson() {
179 Map map = new Map(); 183 Map map = new Map();
180 map["reserved0"] = reserved0; 184 map["reserved0"] = reserved0;
181 map["reserved1"] = reserved1; 185 map["reserved1"] = reserved1;
182 map["queryVersionResult"] = queryVersionResult; 186 map["queryVersionResult"] = queryVersionResult;
183 return map; 187 return map;
184 } 188 }
185 } 189 }
186 190
187 191
192
193
188 class QueryVersion extends bindings.Struct { 194 class QueryVersion extends bindings.Struct {
189 static const List<bindings.StructDataHeader> kVersions = const [ 195 static const List<bindings.StructDataHeader> kVersions = const [
190 const bindings.StructDataHeader(8, 0) 196 const bindings.StructDataHeader(8, 0)
191 ]; 197 ];
192 198
193 QueryVersion() : super(kVersions.last.size); 199 QueryVersion() : super(kVersions.last.size);
194 200
195 static QueryVersion deserialize(bindings.Message message) { 201 static QueryVersion deserialize(bindings.Message message) {
196 var decoder = new bindings.Decoder(message); 202 var decoder = new bindings.Decoder(message);
197 var result = decode(decoder); 203 var result = decode(decoder);
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 return "QueryVersion("")"; 242 return "QueryVersion("")";
237 } 243 }
238 244
239 Map toJson() { 245 Map toJson() {
240 Map map = new Map(); 246 Map map = new Map();
241 return map; 247 return map;
242 } 248 }
243 } 249 }
244 250
245 251
252
253
246 class QueryVersionResult extends bindings.Struct { 254 class QueryVersionResult extends bindings.Struct {
247 static const List<bindings.StructDataHeader> kVersions = const [ 255 static const List<bindings.StructDataHeader> kVersions = const [
248 const bindings.StructDataHeader(16, 0) 256 const bindings.StructDataHeader(16, 0)
249 ]; 257 ];
250 int version = 0; 258 int version = 0;
251 259
252 QueryVersionResult() : super(kVersions.last.size); 260 QueryVersionResult() : super(kVersions.last.size);
253 261
254 static QueryVersionResult deserialize(bindings.Message message) { 262 static QueryVersionResult deserialize(bindings.Message message) {
255 var decoder = new bindings.Decoder(message); 263 var decoder = new bindings.Decoder(message);
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 } 311 }
304 312
305 Map toJson() { 313 Map toJson() {
306 Map map = new Map(); 314 Map map = new Map();
307 map["version"] = version; 315 map["version"] = version;
308 return map; 316 return map;
309 } 317 }
310 } 318 }
311 319
312 320
321
322
313 class RunOrClosePipeMessageParams extends bindings.Struct { 323 class RunOrClosePipeMessageParams extends bindings.Struct {
314 static const List<bindings.StructDataHeader> kVersions = const [ 324 static const List<bindings.StructDataHeader> kVersions = const [
315 const bindings.StructDataHeader(24, 0) 325 const bindings.StructDataHeader(24, 0)
316 ]; 326 ];
317 int reserved0 = 0; 327 int reserved0 = 0;
318 int reserved1 = 0; 328 int reserved1 = 0;
319 RequireVersion requireVersion = null; 329 RequireVersion requireVersion = null;
320 330
321 RunOrClosePipeMessageParams() : super(kVersions.last.size); 331 RunOrClosePipeMessageParams() : super(kVersions.last.size);
322 332
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
389 Map toJson() { 399 Map toJson() {
390 Map map = new Map(); 400 Map map = new Map();
391 map["reserved0"] = reserved0; 401 map["reserved0"] = reserved0;
392 map["reserved1"] = reserved1; 402 map["reserved1"] = reserved1;
393 map["requireVersion"] = requireVersion; 403 map["requireVersion"] = requireVersion;
394 return map; 404 return map;
395 } 405 }
396 } 406 }
397 407
398 408
409
410
399 class RequireVersion extends bindings.Struct { 411 class RequireVersion extends bindings.Struct {
400 static const List<bindings.StructDataHeader> kVersions = const [ 412 static const List<bindings.StructDataHeader> kVersions = const [
401 const bindings.StructDataHeader(16, 0) 413 const bindings.StructDataHeader(16, 0)
402 ]; 414 ];
403 int version = 0; 415 int version = 0;
404 416
405 RequireVersion() : super(kVersions.last.size); 417 RequireVersion() : super(kVersions.last.size);
406 418
407 static RequireVersion deserialize(bindings.Message message) { 419 static RequireVersion deserialize(bindings.Message message) {
408 var decoder = new bindings.Decoder(message); 420 var decoder = new bindings.Decoder(message);
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
456 } 468 }
457 469
458 Map toJson() { 470 Map toJson() {
459 Map map = new Map(); 471 Map map = new Map();
460 map["version"] = version; 472 map["version"] = version;
461 return map; 473 return map;
462 } 474 }
463 } 475 }
464 476
465 477
478
479
480
481
OLDNEW
« no previous file with comments | « mojo/dart/packages/mojo/lib/mojo/http_header.mojom.dart ('k') | mojo/dart/packages/mojo/lib/mojo/network_error.mojom.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698