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

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

Issue 1741963002: Auto-formatted all .mojom files. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 9 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 [DartPackage="_mojo_for_test_only", JavaPackage="org.chromium.mojo.bindings.test .mojom.imported"] 5 [DartPackage="_mojo_for_test_only",
6 JavaPackage="org.chromium.mojo.bindings.test.mojom.imported"]
6 module imported; 7 module imported;
7 8
8 import "sample_import.mojom"; 9 import "sample_import.mojom";
9 10
10 // This sample adds more types and constants to the "imported" namespace, 11 // This sample adds more types and constants to the "imported" namespace,
11 // to test a bug with importing multiple modules with the same namespace. 12 // to test a bug with importing multiple modules with the same namespace.
12 13
13 enum Color { 14 enum Color {
14 RED, 15 RED,
15 BLACK, 16 BLACK,
16 }; 17 };
17 18
18 struct Size { 19 struct Size {
19 int32 width; 20 int32 width;
20 int32 height; 21 int32 height;
21 }; 22 };
22 23
23 struct Thing { 24 struct Thing {
24 imported.Shape shape = RECTANGLE; 25 imported.Shape shape = RECTANGLE;
25 Color color = Color.BLACK; 26 Color color = Color.BLACK;
26 Point location; 27 Point location;
27 Size size; 28 Size size;
28 }; 29 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698