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

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

Issue 1127843002: Interfaces declared first in header file. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 7 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
« no previous file with comments | « no previous file | mojo/public/tools/bindings/generators/cpp_templates/module.h.tmpl » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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.test_structs"] 5 [JavaPackage="org.chromium.mojo.bindings.test.mojom.test_structs"]
6 module mojo.test; 6 module mojo.test;
7 7
8 import "mojo/public/interfaces/bindings/tests/rect.mojom"; 8 import "mojo/public/interfaces/bindings/tests/rect.mojom";
9 9
10 struct NamedRegion { 10 struct NamedRegion {
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after
345 Rect? f_rect; 345 Rect? f_rect;
346 [MinVersion=3] 346 [MinVersion=3]
347 string? f_string; 347 string? f_string;
348 [MinVersion=5] 348 [MinVersion=5]
349 array<int8>? f_array; 349 array<int8>? f_array;
350 [MinVersion=7] 350 [MinVersion=7]
351 handle<message_pipe>? f_message_pipe; 351 handle<message_pipe>? f_message_pipe;
352 [MinVersion=7] 352 [MinVersion=7]
353 bool f_bool; 353 bool f_bool;
354 }; 354 };
355
356 // Used to verify that interfaces that are struct members can be defined in the
357 // same file.
358
359 interface SomeInterface {
360 SomeMethod(RectPair pair) => (RectPair other_pair);
361 };
362
363 struct ContainsInterface {
364 SomeInterface some_interface;
365 };
OLDNEW
« no previous file with comments | « no previous file | mojo/public/tools/bindings/generators/cpp_templates/module.h.tmpl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698