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

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

Issue 219243011: Mojo: Move mojo/public/bindings/tests/*.mojom to mojo/public/interfaces/bindings/tests/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 6 years, 8 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 | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 import "sample_import.mojom"
6
7 module imported {
8
9 // This sample adds more types and constants to the "imported" namespace,
10 // to test a bug with importing multiple modules with the same namespace.
11
12 enum Color {
13 COLOR_RED,
14 COLOR_BLACK,
15 };
16
17 struct Size {
18 int32 width;
19 int32 height;
20 };
21
22 struct Thing {
23 imported.Shape shape = SHAPE_RECTANGLE;
24 int32 color = COLOR_BLACK;
25 Point location = {0, 0};
26 Size size;
27 };
28
29 } // module imported
OLDNEW
« no previous file with comments | « mojo/public/bindings/tests/sample_import.mojom ('k') | mojo/public/bindings/tests/sample_interfaces.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698