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

Side by Side Diff: mojo/public/interfaces/bindings/tests/sample_import.mojom

Issue 545433002: mojo: Generate top level enums for python bindings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove unhelpful conditional Created 6 years, 3 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 [JavaPackage="org.chromium.mojo.bindings.test.mojom.imported"] 5 [JavaPackage="org.chromium.mojo.bindings.test.mojom.imported"]
6 module imported { 6 module imported {
7 7
8 // This sample just defines some types that are imported into 8 // This sample just defines some types that are imported into
9 // sample_service.mojom, to show how import works. 9 // sample_service.mojom, to show how import works.
10 10
11 enum Shape { 11 enum Shape {
12 RECTANGLE = 1, 12 RECTANGLE = 1,
13 CIRCLE, 13 CIRCLE,
14 TRIANGLE, 14 TRIANGLE,
15 LAST = TRIANGLE,
15 }; 16 };
16 17
17 // These enum values should not interfere with those of Shape above. 18 // These enum values should not interfere with those of Shape above.
18 enum AnotherShape { 19 enum AnotherShape {
19 RECTANGLE = 10, 20 RECTANGLE = 10,
20 CIRCLE, 21 CIRCLE,
21 TRIANGLE, 22 TRIANGLE,
22 }; 23 };
23 24
24 enum YetAnotherShape { 25 enum YetAnotherShape {
25 RECTANGLE = 20, 26 RECTANGLE = 20,
26 CIRCLE, 27 CIRCLE,
27 TRIANGLE, 28 TRIANGLE,
28 }; 29 };
29 30
30 struct Point { 31 struct Point {
31 int32 x; 32 int32 x;
32 int32 y; 33 int32 y;
33 }; 34 };
34 35
35 interface ImportedInterface { 36 interface ImportedInterface {
36 DoSomething(); 37 DoSomething();
37 }; 38 };
38 39
39 } // module imported 40 } // module imported
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698