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

Unified Diff: mojo/dart/packages/mojo_services/lib/mojo/native_viewport_event_dispatcher.mojom.dart

Issue 1983453002: Dart: Refactor Stubs (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Merge Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: mojo/dart/packages/mojo_services/lib/mojo/native_viewport_event_dispatcher.mojom.dart
diff --git a/mojo/dart/packages/mojo_services/lib/mojo/native_viewport_event_dispatcher.mojom.dart b/mojo/dart/packages/mojo_services/lib/mojo/native_viewport_event_dispatcher.mojom.dart
index e471e66cea36014e8818bbd885fda876fa0e4920..fd65f52969a9d6fe1d100866e82fe0e7a6684a09 100644
--- a/mojo/dart/packages/mojo_services/lib/mojo/native_viewport_event_dispatcher.mojom.dart
+++ b/mojo/dart/packages/mojo_services/lib/mojo/native_viewport_event_dispatcher.mojom.dart
@@ -159,9 +159,9 @@ abstract class NativeViewportEventDispatcher {
dynamic onEvent(input_events_mojom.Event event,[Function responseFactory = null]);
}
-
-class _NativeViewportEventDispatcherProxyControl extends bindings.ProxyMessageHandler
- implements bindings.ProxyControl {
+class _NativeViewportEventDispatcherProxyControl
+ extends bindings.ProxyMessageHandler
+ implements bindings.ProxyControl {
_NativeViewportEventDispatcherProxyControl.fromEndpoint(
core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint);
@@ -175,7 +175,6 @@ class _NativeViewportEventDispatcherProxyControl extends bindings.ProxyMessageHa
String get serviceName => NativeViewportEventDispatcher.serviceName;
- @override
void handleResponse(bindings.ServiceMessage message) {
switch (message.header.type) {
case _nativeViewportEventDispatcherMethodOnEventName:
@@ -212,9 +211,9 @@ class _NativeViewportEventDispatcherProxyControl extends bindings.ProxyMessageHa
}
}
-
-class NativeViewportEventDispatcherProxy extends bindings.Proxy
- implements NativeViewportEventDispatcher {
+class NativeViewportEventDispatcherProxy
+ extends bindings.Proxy
+ implements NativeViewportEventDispatcher {
NativeViewportEventDispatcherProxy.fromEndpoint(
core.MojoMessagePipeEndpoint endpoint)
: super(new _NativeViewportEventDispatcherProxyControl.fromEndpoint(endpoint));
@@ -250,29 +249,24 @@ class NativeViewportEventDispatcherProxy extends bindings.Proxy
}
}
-
-class NativeViewportEventDispatcherStub extends bindings.Stub {
+class _NativeViewportEventDispatcherStubControl
+ extends bindings.StubMessageHandler
+ implements bindings.StubControl<NativeViewportEventDispatcher> {
NativeViewportEventDispatcher _impl;
- NativeViewportEventDispatcherStub.fromEndpoint(
+ _NativeViewportEventDispatcherStubControl.fromEndpoint(
core.MojoMessagePipeEndpoint endpoint, [NativeViewportEventDispatcher impl])
: super.fromEndpoint(endpoint, autoBegin: impl != null) {
_impl = impl;
}
- NativeViewportEventDispatcherStub.fromHandle(
+ _NativeViewportEventDispatcherStubControl.fromHandle(
core.MojoHandle handle, [NativeViewportEventDispatcher impl])
: super.fromHandle(handle, autoBegin: impl != null) {
_impl = impl;
}
- NativeViewportEventDispatcherStub.unbound([this._impl]) : super.unbound();
-
- static NativeViewportEventDispatcherStub newFromEndpoint(
- core.MojoMessagePipeEndpoint endpoint) {
- assert(endpoint.setDescription("For NativeViewportEventDispatcherStub"));
- return new NativeViewportEventDispatcherStub.fromEndpoint(endpoint);
- }
+ _NativeViewportEventDispatcherStubControl.unbound([this._impl]) : super.unbound();
NativeViewportEventDispatcherOnEventResponseParams _nativeViewportEventDispatcherOnEventResponseParamsFactory() {
@@ -338,9 +332,10 @@ class NativeViewportEventDispatcherStub extends bindings.Stub {
}
}
+ @override
String toString() {
var superString = super.toString();
- return "NativeViewportEventDispatcherStub($superString)";
+ return "_NativeViewportEventDispatcherStubControl($superString)";
}
int get version => 0;
@@ -354,5 +349,34 @@ class NativeViewportEventDispatcherStub extends bindings.Stub {
}
}
+class NativeViewportEventDispatcherStub
+ extends bindings.Stub<NativeViewportEventDispatcher>
+ implements NativeViewportEventDispatcher {
+ NativeViewportEventDispatcherStub.fromEndpoint(
+ core.MojoMessagePipeEndpoint endpoint, [NativeViewportEventDispatcher impl])
+ : super(new _NativeViewportEventDispatcherStubControl.fromEndpoint(endpoint, impl));
+
+ NativeViewportEventDispatcherStub.fromHandle(
+ core.MojoHandle handle, [NativeViewportEventDispatcher impl])
+ : super(new _NativeViewportEventDispatcherStubControl.fromHandle(handle, impl));
+
+ NativeViewportEventDispatcherStub.unbound([NativeViewportEventDispatcher impl])
+ : super(new _NativeViewportEventDispatcherStubControl.unbound(impl));
+
+ static NativeViewportEventDispatcherStub newFromEndpoint(
+ core.MojoMessagePipeEndpoint endpoint) {
+ assert(endpoint.setDescription("For NativeViewportEventDispatcherStub"));
+ return new NativeViewportEventDispatcherStub.fromEndpoint(endpoint);
+ }
+
+ static service_describer.ServiceDescription get serviceDescription =>
+ _NativeViewportEventDispatcherStubControl.serviceDescription;
+
+
+ dynamic onEvent(input_events_mojom.Event event,[Function responseFactory = null]) {
+ return impl.onEvent(event,responseFactory);
+ }
+}
+

Powered by Google App Engine
This is Rietveld 408576698