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

Side by Side Diff: mojo/dart/packages/mojo_services/lib/mojo/gfx/composition/scheduling.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 scheduling_mojom; 5 library scheduling_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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 Map map = new Map(); 117 Map map = new Map();
118 map["frameTime"] = frameTime; 118 map["frameTime"] = frameTime;
119 map["frameInterval"] = frameInterval; 119 map["frameInterval"] = frameInterval;
120 map["frameDeadline"] = frameDeadline; 120 map["frameDeadline"] = frameDeadline;
121 map["presentationTime"] = presentationTime; 121 map["presentationTime"] = presentationTime;
122 return map; 122 return map;
123 } 123 }
124 } 124 }
125 125
126 126
127
128
129 class _SceneSchedulerScheduleFrameParams extends bindings.Struct { 127 class _SceneSchedulerScheduleFrameParams extends bindings.Struct {
130 static const List<bindings.StructDataHeader> kVersions = const [ 128 static const List<bindings.StructDataHeader> kVersions = const [
131 const bindings.StructDataHeader(8, 0) 129 const bindings.StructDataHeader(8, 0)
132 ]; 130 ];
133 131
134 _SceneSchedulerScheduleFrameParams() : super(kVersions.last.size); 132 _SceneSchedulerScheduleFrameParams() : super(kVersions.last.size);
135 133
136 static _SceneSchedulerScheduleFrameParams deserialize(bindings.Message message ) { 134 static _SceneSchedulerScheduleFrameParams deserialize(bindings.Message message ) {
137 var decoder = new bindings.Decoder(message); 135 var decoder = new bindings.Decoder(message);
138 var result = decode(decoder); 136 var result = decode(decoder);
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 return "_SceneSchedulerScheduleFrameParams("")"; 175 return "_SceneSchedulerScheduleFrameParams("")";
178 } 176 }
179 177
180 Map toJson() { 178 Map toJson() {
181 Map map = new Map(); 179 Map map = new Map();
182 return map; 180 return map;
183 } 181 }
184 } 182 }
185 183
186 184
187
188
189 class SceneSchedulerScheduleFrameResponseParams extends bindings.Struct { 185 class SceneSchedulerScheduleFrameResponseParams extends bindings.Struct {
190 static const List<bindings.StructDataHeader> kVersions = const [ 186 static const List<bindings.StructDataHeader> kVersions = const [
191 const bindings.StructDataHeader(16, 0) 187 const bindings.StructDataHeader(16, 0)
192 ]; 188 ];
193 FrameInfo frameInfo = null; 189 FrameInfo frameInfo = null;
194 190
195 SceneSchedulerScheduleFrameResponseParams() : super(kVersions.last.size); 191 SceneSchedulerScheduleFrameResponseParams() : super(kVersions.last.size);
196 192
197 static SceneSchedulerScheduleFrameResponseParams deserialize(bindings.Message message) { 193 static SceneSchedulerScheduleFrameResponseParams deserialize(bindings.Message message) {
198 var decoder = new bindings.Decoder(message); 194 var decoder = new bindings.Decoder(message);
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 "frameInfo: $frameInfo" ")"; 247 "frameInfo: $frameInfo" ")";
252 } 248 }
253 249
254 Map toJson() { 250 Map toJson() {
255 Map map = new Map(); 251 Map map = new Map();
256 map["frameInfo"] = frameInfo; 252 map["frameInfo"] = frameInfo;
257 return map; 253 return map;
258 } 254 }
259 } 255 }
260 256
261
262
263
264 const int _SceneScheduler_scheduleFrameName = 0; 257 const int _SceneScheduler_scheduleFrameName = 0;
265 258
266
267
268 class _SceneSchedulerServiceDescription implements service_describer.ServiceDesc ription { 259 class _SceneSchedulerServiceDescription implements service_describer.ServiceDesc ription {
269 dynamic getTopLevelInterface([Function responseFactory]) => 260 dynamic getTopLevelInterface([Function responseFactory]) =>
270 responseFactory(null); 261 responseFactory(null);
271 262
272 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => 263 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) =>
273 responseFactory(null); 264 responseFactory(null);
274 265
275 dynamic getAllTypeDefinitions([Function responseFactory]) => 266 dynamic getAllTypeDefinitions([Function responseFactory]) =>
276 responseFactory(null); 267 responseFactory(null);
277 } 268 }
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
487 static service_describer.ServiceDescription get serviceDescription { 478 static service_describer.ServiceDescription get serviceDescription {
488 if (_cachedServiceDescription == null) { 479 if (_cachedServiceDescription == null) {
489 _cachedServiceDescription = new _SceneSchedulerServiceDescription(); 480 _cachedServiceDescription = new _SceneSchedulerServiceDescription();
490 } 481 }
491 return _cachedServiceDescription; 482 return _cachedServiceDescription;
492 } 483 }
493 } 484 }
494 485
495 486
496 487
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698