OLD | NEW |
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 Loading... |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |