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

Side by Side Diff: mojo/dart/packages/mojo_services/lib/vsync/vsync.mojom.dart

Issue 1753013002: Mojom runtime type info: New implementation for Dart. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: No changes to sha1s Created 4 years, 9 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 vsync_mojom; 5 library vsync_mojom;
6 import 'dart:async'; 6 import 'dart:async';
7 import 'package:mojo/bindings.dart' as bindings; 7 import 'package:mojo/bindings.dart' as bindings;
8 import 'package:mojo/core.dart' as core; 8 import 'package:mojo/core.dart' as core;
9 import 'package:mojo/mojo/bindings/types/service_describer.mojom.dart' as servic e_describer; 9 import 'package:mojo/mojo/bindings/types/service_describer.mojom.dart' as servic e_describer;
10 10
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 return "_VSyncProviderAwaitVSyncParams("")"; 61 return "_VSyncProviderAwaitVSyncParams("")";
62 } 62 }
63 63
64 Map toJson() { 64 Map toJson() {
65 Map map = new Map(); 65 Map map = new Map();
66 return map; 66 return map;
67 } 67 }
68 } 68 }
69 69
70 70
71
72
73 class VSyncProviderAwaitVSyncResponseParams extends bindings.Struct { 71 class VSyncProviderAwaitVSyncResponseParams extends bindings.Struct {
74 static const List<bindings.StructDataHeader> kVersions = const [ 72 static const List<bindings.StructDataHeader> kVersions = const [
75 const bindings.StructDataHeader(16, 0) 73 const bindings.StructDataHeader(16, 0)
76 ]; 74 ];
77 int timeStamp = 0; 75 int timeStamp = 0;
78 76
79 VSyncProviderAwaitVSyncResponseParams() : super(kVersions.last.size); 77 VSyncProviderAwaitVSyncResponseParams() : super(kVersions.last.size);
80 78
81 static VSyncProviderAwaitVSyncResponseParams deserialize(bindings.Message mess age) { 79 static VSyncProviderAwaitVSyncResponseParams deserialize(bindings.Message mess age) {
82 var decoder = new bindings.Decoder(message); 80 var decoder = new bindings.Decoder(message);
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 "timeStamp: $timeStamp" ")"; 132 "timeStamp: $timeStamp" ")";
135 } 133 }
136 134
137 Map toJson() { 135 Map toJson() {
138 Map map = new Map(); 136 Map map = new Map();
139 map["timeStamp"] = timeStamp; 137 map["timeStamp"] = timeStamp;
140 return map; 138 return map;
141 } 139 }
142 } 140 }
143 141
144
145
146
147 const int _VSyncProvider_awaitVSyncName = 0; 142 const int _VSyncProvider_awaitVSyncName = 0;
148 143
149
150
151 class _VSyncProviderServiceDescription implements service_describer.ServiceDescr iption { 144 class _VSyncProviderServiceDescription implements service_describer.ServiceDescr iption {
152 dynamic getTopLevelInterface([Function responseFactory]) => 145 dynamic getTopLevelInterface([Function responseFactory]) =>
153 responseFactory(null); 146 responseFactory(null);
154 147
155 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => 148 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) =>
156 responseFactory(null); 149 responseFactory(null);
157 150
158 dynamic getAllTypeDefinitions([Function responseFactory]) => 151 dynamic getAllTypeDefinitions([Function responseFactory]) =>
159 responseFactory(null); 152 responseFactory(null);
160 } 153 }
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
370 static service_describer.ServiceDescription get serviceDescription { 363 static service_describer.ServiceDescription get serviceDescription {
371 if (_cachedServiceDescription == null) { 364 if (_cachedServiceDescription == null) {
372 _cachedServiceDescription = new _VSyncProviderServiceDescription(); 365 _cachedServiceDescription = new _VSyncProviderServiceDescription();
373 } 366 }
374 return _cachedServiceDescription; 367 return _cachedServiceDescription;
375 } 368 }
376 } 369 }
377 370
378 371
379 372
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698