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

Unified Diff: mojo/public/bindings/sample/sample_service.mojom

Issue 99623010: Add support for enums within structs and interfaces to mojom. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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/public/bindings/sample/sample_service.mojom
diff --git a/mojo/public/bindings/sample/sample_service.mojom b/mojo/public/bindings/sample/sample_service.mojom
index 1a5af23688303db4bdcc4d80f2dc1a0e8e26bbdd..b8cf56ed9afe4d1fd670699b7b28d98b89d05450 100644
--- a/mojo/public/bindings/sample/sample_service.mojom
+++ b/mojo/public/bindings/sample/sample_service.mojom
@@ -33,7 +33,11 @@ struct Foo {
[Peer=ServiceClient]
interface Service {
- void Frobinate(Foo foo @0, bool baz @1, handle<message_pipe> port @2) @0;
+ enum BazOptions {
+ BAZ_REGULAR = 0,
+ BAZ_EXTRA
+ };
+ void Frobinate(Foo foo @0, int32 baz @1, handle<message_pipe> port @2) @0;
};
[Peer=Service]

Powered by Google App Engine
This is Rietveld 408576698