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

Side by Side Diff: mojo/dart/packages/mojo_services/lib/mojo/native_viewport_event_dispatcher.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 native_viewport_event_dispatcher_mojom; 5 library native_viewport_event_dispatcher_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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 } 77 }
78 78
79 Map toJson() { 79 Map toJson() {
80 Map map = new Map(); 80 Map map = new Map();
81 map["event"] = event; 81 map["event"] = event;
82 return map; 82 return map;
83 } 83 }
84 } 84 }
85 85
86 86
87
88
89 class NativeViewportEventDispatcherOnEventResponseParams extends bindings.Struct { 87 class NativeViewportEventDispatcherOnEventResponseParams extends bindings.Struct {
90 static const List<bindings.StructDataHeader> kVersions = const [ 88 static const List<bindings.StructDataHeader> kVersions = const [
91 const bindings.StructDataHeader(8, 0) 89 const bindings.StructDataHeader(8, 0)
92 ]; 90 ];
93 91
94 NativeViewportEventDispatcherOnEventResponseParams() : super(kVersions.last.si ze); 92 NativeViewportEventDispatcherOnEventResponseParams() : super(kVersions.last.si ze);
95 93
96 static NativeViewportEventDispatcherOnEventResponseParams deserialize(bindings .Message message) { 94 static NativeViewportEventDispatcherOnEventResponseParams deserialize(bindings .Message message) {
97 var decoder = new bindings.Decoder(message); 95 var decoder = new bindings.Decoder(message);
98 var result = decode(decoder); 96 var result = decode(decoder);
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 String toString() { 134 String toString() {
137 return "NativeViewportEventDispatcherOnEventResponseParams("")"; 135 return "NativeViewportEventDispatcherOnEventResponseParams("")";
138 } 136 }
139 137
140 Map toJson() { 138 Map toJson() {
141 Map map = new Map(); 139 Map map = new Map();
142 return map; 140 return map;
143 } 141 }
144 } 142 }
145 143
146
147
148
149 const int _NativeViewportEventDispatcher_onEventName = 0; 144 const int _NativeViewportEventDispatcher_onEventName = 0;
150 145
151
152
153 class _NativeViewportEventDispatcherServiceDescription implements service_descri ber.ServiceDescription { 146 class _NativeViewportEventDispatcherServiceDescription implements service_descri ber.ServiceDescription {
154 dynamic getTopLevelInterface([Function responseFactory]) => 147 dynamic getTopLevelInterface([Function responseFactory]) =>
155 responseFactory(null); 148 responseFactory(null);
156 149
157 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => 150 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) =>
158 responseFactory(null); 151 responseFactory(null);
159 152
160 dynamic getAllTypeDefinitions([Function responseFactory]) => 153 dynamic getAllTypeDefinitions([Function responseFactory]) =>
161 responseFactory(null); 154 responseFactory(null);
162 } 155 }
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
374 static service_describer.ServiceDescription get serviceDescription { 367 static service_describer.ServiceDescription get serviceDescription {
375 if (_cachedServiceDescription == null) { 368 if (_cachedServiceDescription == null) {
376 _cachedServiceDescription = new _NativeViewportEventDispatcherServiceDescr iption(); 369 _cachedServiceDescription = new _NativeViewportEventDispatcherServiceDescr iption();
377 } 370 }
378 return _cachedServiceDescription; 371 return _cachedServiceDescription;
379 } 372 }
380 } 373 }
381 374
382 375
383 376
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698