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

Unified Diff: mojo/dart/packages/mojo_services/lib/mojo/gfx/composition/resources.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/gfx/composition/resources.mojom.dart
diff --git a/mojo/dart/packages/mojo_services/lib/mojo/gfx/composition/resources.mojom.dart b/mojo/dart/packages/mojo_services/lib/mojo/gfx/composition/resources.mojom.dart
index b98173f0513d9b897d8b58396fbe65b193186ec0..c1c86c7e3b28d2ae3769a85090e439279d538423 100644
--- a/mojo/dart/packages/mojo_services/lib/mojo/gfx/composition/resources.mojom.dart
+++ b/mojo/dart/packages/mojo_services/lib/mojo/gfx/composition/resources.mojom.dart
@@ -445,9 +445,9 @@ abstract class MailboxTextureCallback {
void onMailboxTextureReleased();
}
-
-class _MailboxTextureCallbackProxyControl extends bindings.ProxyMessageHandler
- implements bindings.ProxyControl {
+class _MailboxTextureCallbackProxyControl
+ extends bindings.ProxyMessageHandler
+ implements bindings.ProxyControl {
_MailboxTextureCallbackProxyControl.fromEndpoint(
core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint);
@@ -461,7 +461,6 @@ class _MailboxTextureCallbackProxyControl extends bindings.ProxyMessageHandler
String get serviceName => MailboxTextureCallback.serviceName;
- @override
void handleResponse(bindings.ServiceMessage message) {
switch (message.header.type) {
default:
@@ -478,9 +477,9 @@ class _MailboxTextureCallbackProxyControl extends bindings.ProxyMessageHandler
}
}
-
-class MailboxTextureCallbackProxy extends bindings.Proxy
- implements MailboxTextureCallback {
+class MailboxTextureCallbackProxy
+ extends bindings.Proxy
+ implements MailboxTextureCallback {
MailboxTextureCallbackProxy.fromEndpoint(
core.MojoMessagePipeEndpoint endpoint)
: super(new _MailboxTextureCallbackProxyControl.fromEndpoint(endpoint));
@@ -516,29 +515,24 @@ class MailboxTextureCallbackProxy extends bindings.Proxy
}
}
-
-class MailboxTextureCallbackStub extends bindings.Stub {
+class _MailboxTextureCallbackStubControl
+ extends bindings.StubMessageHandler
+ implements bindings.StubControl<MailboxTextureCallback> {
MailboxTextureCallback _impl;
- MailboxTextureCallbackStub.fromEndpoint(
+ _MailboxTextureCallbackStubControl.fromEndpoint(
core.MojoMessagePipeEndpoint endpoint, [MailboxTextureCallback impl])
: super.fromEndpoint(endpoint, autoBegin: impl != null) {
_impl = impl;
}
- MailboxTextureCallbackStub.fromHandle(
+ _MailboxTextureCallbackStubControl.fromHandle(
core.MojoHandle handle, [MailboxTextureCallback impl])
: super.fromHandle(handle, autoBegin: impl != null) {
_impl = impl;
}
- MailboxTextureCallbackStub.unbound([this._impl]) : super.unbound();
-
- static MailboxTextureCallbackStub newFromEndpoint(
- core.MojoMessagePipeEndpoint endpoint) {
- assert(endpoint.setDescription("For MailboxTextureCallbackStub"));
- return new MailboxTextureCallbackStub.fromEndpoint(endpoint);
- }
+ _MailboxTextureCallbackStubControl.unbound([this._impl]) : super.unbound();
@@ -581,9 +575,10 @@ class MailboxTextureCallbackStub extends bindings.Stub {
}
}
+ @override
String toString() {
var superString = super.toString();
- return "MailboxTextureCallbackStub($superString)";
+ return "_MailboxTextureCallbackStubControl($superString)";
}
int get version => 0;
@@ -597,5 +592,34 @@ class MailboxTextureCallbackStub extends bindings.Stub {
}
}
+class MailboxTextureCallbackStub
+ extends bindings.Stub<MailboxTextureCallback>
+ implements MailboxTextureCallback {
+ MailboxTextureCallbackStub.fromEndpoint(
+ core.MojoMessagePipeEndpoint endpoint, [MailboxTextureCallback impl])
+ : super(new _MailboxTextureCallbackStubControl.fromEndpoint(endpoint, impl));
+
+ MailboxTextureCallbackStub.fromHandle(
+ core.MojoHandle handle, [MailboxTextureCallback impl])
+ : super(new _MailboxTextureCallbackStubControl.fromHandle(handle, impl));
+
+ MailboxTextureCallbackStub.unbound([MailboxTextureCallback impl])
+ : super(new _MailboxTextureCallbackStubControl.unbound(impl));
+
+ static MailboxTextureCallbackStub newFromEndpoint(
+ core.MojoMessagePipeEndpoint endpoint) {
+ assert(endpoint.setDescription("For MailboxTextureCallbackStub"));
+ return new MailboxTextureCallbackStub.fromEndpoint(endpoint);
+ }
+
+ static service_describer.ServiceDescription get serviceDescription =>
+ _MailboxTextureCallbackStubControl.serviceDescription;
+
+
+ void onMailboxTextureReleased() {
+ return impl.onMailboxTextureReleased();
+ }
+}
+

Powered by Google App Engine
This is Rietveld 408576698