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

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

Issue 1539673003: Generate Mojom Types in Dart (Take 2) (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Merge with master Created 4 years, 11 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/gpu.mojom.dart
diff --git a/mojo/dart/packages/mojo_services/lib/mojo/gpu.mojom.dart b/mojo/dart/packages/mojo_services/lib/mojo/gpu.mojom.dart
index ac2dd992fd90280a6a1569cdee5e8c6613521fd1..2e3e250a4f226e6882cc46d947642da206206921 100644
--- a/mojo/dart/packages/mojo_services/lib/mojo/gpu.mojom.dart
+++ b/mojo/dart/packages/mojo_services/lib/mojo/gpu.mojom.dart
@@ -8,6 +8,8 @@ import 'dart:async';
import 'package:mojo/bindings.dart' as bindings;
import 'package:mojo/core.dart' as core;
+import 'package:mojo/mojo/bindings/types/mojom_types.mojom.dart' as mojom_types;
+import 'package:mojo/mojo/bindings/types/service_describer.mojom.dart' as service_describer;
import 'package:mojo_services/mojo/command_buffer.mojom.dart' as command_buffer_mojom;
@@ -77,8 +79,21 @@ class _GpuCreateOffscreenGles2ContextParams extends bindings.Struct {
}
}
+
+
+
const int _Gpu_createOffscreenGles2ContextName = 0;
+
+
+class _GpuServiceDescription implements service_describer.ServiceDescription {
+ dynamic getTopLevelInterface([Function responseFactory]) => null;
+
+ dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => null;
+
+ dynamic getAllTypeDefinitions([Function responseFactory]) => null;
+}
+
abstract class Gpu {
static const String serviceName = "mojo::Gpu";
void createOffscreenGles2Context(Object gles2Client);
@@ -100,6 +115,9 @@ class _GpuProxyImpl extends bindings.Proxy {
return new _GpuProxyImpl.fromEndpoint(endpoint);
}
+ service_describer.ServiceDescription get serviceDescription =>
+ new _GpuServiceDescription();
+
void handleResponse(bindings.ServiceMessage message) {
switch (message.header.type) {
default:
@@ -243,6 +261,10 @@ class GpuStub extends bindings.Stub {
}
int get version => 0;
+
+ service_describer.ServiceDescription get serviceDescription =>
+ new _GpuServiceDescription();
}
+

Powered by Google App Engine
This is Rietveld 408576698