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

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: rebase Created 6 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/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 3b7353480672ae6908ae8f24d72214bb33933512..afc8c4907941be3e899068ec0332e704900e790b 100644
--- a/mojo/public/bindings/sample/sample_service.mojom
+++ b/mojo/public/bindings/sample/sample_service.mojom
@@ -35,7 +35,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]
« no previous file with comments | « mojo/public/bindings/parse/mojo_translate.py ('k') | mojo/public/bindings/sample/sample_service_unittests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698