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

Side by Side Diff: mojo/dart/packages/mojo_services/lib/mojo/ui/input_connection.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 input_connection_mojom; 5 library input_connection_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 import 'package:mojo_services/mojo/input_events.mojom.dart' as input_events_mojo m; 10 import 'package:mojo_services/mojo/input_events.mojom.dart' as input_events_mojo m;
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 "listener: $listener" ")"; 75 "listener: $listener" ")";
76 } 76 }
77 77
78 Map toJson() { 78 Map toJson() {
79 throw new bindings.MojoCodecError( 79 throw new bindings.MojoCodecError(
80 'Object containing handles cannot be encoded to JSON.'); 80 'Object containing handles cannot be encoded to JSON.');
81 } 81 }
82 } 82 }
83 83
84 84
85
86
87 class _InputListenerOnEventParams extends bindings.Struct { 85 class _InputListenerOnEventParams extends bindings.Struct {
88 static const List<bindings.StructDataHeader> kVersions = const [ 86 static const List<bindings.StructDataHeader> kVersions = const [
89 const bindings.StructDataHeader(16, 0) 87 const bindings.StructDataHeader(16, 0)
90 ]; 88 ];
91 input_events_mojom.Event event = null; 89 input_events_mojom.Event event = null;
92 90
93 _InputListenerOnEventParams() : super(kVersions.last.size); 91 _InputListenerOnEventParams() : super(kVersions.last.size);
94 92
95 static _InputListenerOnEventParams deserialize(bindings.Message message) { 93 static _InputListenerOnEventParams deserialize(bindings.Message message) {
96 var decoder = new bindings.Decoder(message); 94 var decoder = new bindings.Decoder(message);
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 } 148 }
151 149
152 Map toJson() { 150 Map toJson() {
153 Map map = new Map(); 151 Map map = new Map();
154 map["event"] = event; 152 map["event"] = event;
155 return map; 153 return map;
156 } 154 }
157 } 155 }
158 156
159 157
160
161
162 class InputListenerOnEventResponseParams extends bindings.Struct { 158 class InputListenerOnEventResponseParams extends bindings.Struct {
163 static const List<bindings.StructDataHeader> kVersions = const [ 159 static const List<bindings.StructDataHeader> kVersions = const [
164 const bindings.StructDataHeader(16, 0) 160 const bindings.StructDataHeader(16, 0)
165 ]; 161 ];
166 bool consumed = false; 162 bool consumed = false;
167 163
168 InputListenerOnEventResponseParams() : super(kVersions.last.size); 164 InputListenerOnEventResponseParams() : super(kVersions.last.size);
169 165
170 static InputListenerOnEventResponseParams deserialize(bindings.Message message ) { 166 static InputListenerOnEventResponseParams deserialize(bindings.Message message ) {
171 var decoder = new bindings.Decoder(message); 167 var decoder = new bindings.Decoder(message);
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 "consumed: $consumed" ")"; 219 "consumed: $consumed" ")";
224 } 220 }
225 221
226 Map toJson() { 222 Map toJson() {
227 Map map = new Map(); 223 Map map = new Map();
228 map["consumed"] = consumed; 224 map["consumed"] = consumed;
229 return map; 225 return map;
230 } 226 }
231 } 227 }
232 228
233
234
235
236 const int _InputConnection_setListenerName = 0; 229 const int _InputConnection_setListenerName = 0;
237 230
238
239
240 class _InputConnectionServiceDescription implements service_describer.ServiceDes cription { 231 class _InputConnectionServiceDescription implements service_describer.ServiceDes cription {
241 dynamic getTopLevelInterface([Function responseFactory]) => 232 dynamic getTopLevelInterface([Function responseFactory]) =>
242 responseFactory(null); 233 responseFactory(null);
243 234
244 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => 235 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) =>
245 responseFactory(null); 236 responseFactory(null);
246 237
247 dynamic getAllTypeDefinitions([Function responseFactory]) => 238 dynamic getAllTypeDefinitions([Function responseFactory]) =>
248 responseFactory(null); 239 responseFactory(null);
249 } 240 }
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
420 static service_describer.ServiceDescription get serviceDescription { 411 static service_describer.ServiceDescription get serviceDescription {
421 if (_cachedServiceDescription == null) { 412 if (_cachedServiceDescription == null) {
422 _cachedServiceDescription = new _InputConnectionServiceDescription(); 413 _cachedServiceDescription = new _InputConnectionServiceDescription();
423 } 414 }
424 return _cachedServiceDescription; 415 return _cachedServiceDescription;
425 } 416 }
426 } 417 }
427 418
428 const int _InputListener_onEventName = 0; 419 const int _InputListener_onEventName = 0;
429 420
430
431
432 class _InputListenerServiceDescription implements service_describer.ServiceDescr iption { 421 class _InputListenerServiceDescription implements service_describer.ServiceDescr iption {
433 dynamic getTopLevelInterface([Function responseFactory]) => 422 dynamic getTopLevelInterface([Function responseFactory]) =>
434 responseFactory(null); 423 responseFactory(null);
435 424
436 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => 425 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) =>
437 responseFactory(null); 426 responseFactory(null);
438 427
439 dynamic getAllTypeDefinitions([Function responseFactory]) => 428 dynamic getAllTypeDefinitions([Function responseFactory]) =>
440 responseFactory(null); 429 responseFactory(null);
441 } 430 }
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
654 static service_describer.ServiceDescription get serviceDescription { 643 static service_describer.ServiceDescription get serviceDescription {
655 if (_cachedServiceDescription == null) { 644 if (_cachedServiceDescription == null) {
656 _cachedServiceDescription = new _InputListenerServiceDescription(); 645 _cachedServiceDescription = new _InputListenerServiceDescription();
657 } 646 }
658 return _cachedServiceDescription; 647 return _cachedServiceDescription;
659 } 648 }
660 } 649 }
661 650
662 651
663 652
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698