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 input_dispatcher_mojom; | 5 library input_dispatcher_mojom; |
6 | 6 |
7 import 'dart:async'; | 7 import 'dart:async'; |
8 | 8 |
9 import 'package:mojo/bindings.dart' as bindings; | 9 import 'package:mojo/bindings.dart' as bindings; |
10 import 'package:mojo/core.dart' as core; | 10 import 'package:mojo/core.dart' as core; |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 } | 87 } |
88 | 88 |
89 | 89 |
90 | 90 |
91 | 91 |
92 const int _InputDispatcher_dispatchEventName = 0; | 92 const int _InputDispatcher_dispatchEventName = 0; |
93 | 93 |
94 | 94 |
95 | 95 |
96 class _InputDispatcherServiceDescription implements service_describer.ServiceDes
cription { | 96 class _InputDispatcherServiceDescription implements service_describer.ServiceDes
cription { |
97 dynamic getTopLevelInterface([Function responseFactory]) => null; | 97 dynamic getTopLevelInterface([Function responseFactory]) => |
| 98 responseFactory(null); |
98 | 99 |
99 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => null; | 100 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => |
| 101 responseFactory(null); |
100 | 102 |
101 dynamic getAllTypeDefinitions([Function responseFactory]) => null; | 103 dynamic getAllTypeDefinitions([Function responseFactory]) => |
| 104 responseFactory(null); |
102 } | 105 } |
103 | 106 |
104 abstract class InputDispatcher { | 107 abstract class InputDispatcher { |
105 static const String serviceName = "mojo::ui::InputDispatcher"; | 108 static const String serviceName = "mojo::ui::InputDispatcher"; |
106 void dispatchEvent(input_events_mojom.Event event); | 109 void dispatchEvent(input_events_mojom.Event event); |
107 } | 110 } |
108 | 111 |
109 | 112 |
110 class _InputDispatcherProxyImpl extends bindings.Proxy { | 113 class _InputDispatcherProxyImpl extends bindings.Proxy { |
111 _InputDispatcherProxyImpl.fromEndpoint( | 114 _InputDispatcherProxyImpl.fromEndpoint( |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
262 _impl = d; | 265 _impl = d; |
263 } | 266 } |
264 | 267 |
265 String toString() { | 268 String toString() { |
266 var superString = super.toString(); | 269 var superString = super.toString(); |
267 return "InputDispatcherStub($superString)"; | 270 return "InputDispatcherStub($superString)"; |
268 } | 271 } |
269 | 272 |
270 int get version => 0; | 273 int get version => 0; |
271 | 274 |
272 service_describer.ServiceDescription get serviceDescription => | 275 static service_describer.ServiceDescription get serviceDescription => |
273 new _InputDispatcherServiceDescription(); | 276 new _InputDispatcherServiceDescription(); |
274 } | 277 } |
275 | 278 |
276 | 279 |
277 | 280 |
OLD | NEW |