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

Side by Side Diff: content/test/data/web_ui_test_mojo_bindings.mojom

Issue 250253002: Mojo: Add String, Float, and Double types to codec.js. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 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 | Annotate | Revision Log
« no previous file with comments | « content/browser/webui/web_ui_mojo_browsertest.cc ('k') | mojo/bindings/js/codec_unittests.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 module mojo { 1 module mojo {
2 2
3 // This struct encompasses all of the basic types, so that they 3 // This struct encompasses all of the basic types, so that they
4 // may be sent from C++ to JS and back for validation. 4 // may be sent from C++ to JS and back for validation.
5 struct EchoArgs { 5 struct EchoArgs {
6 int64 si64; 6 int64 si64;
7 int32 si32; 7 int32 si32;
8 int16 si16; 8 int16 si16;
9 int8 si8; 9 int8 si8;
10 uint64 ui64; 10 uint64 ui64;
11 uint32 ui32; 11 uint32 ui32;
12 uint16 ui16; 12 uint16 ui16;
13 uint8 ui8; 13 uint8 ui8;
14 float float_val; 14 float float_val;
15 float float_inf; 15 float float_inf;
16 float float_nan; 16 float float_nan;
17 double double_val; 17 double double_val;
18 double double_inf; 18 double double_inf;
19 double double_nan; 19 double double_nan;
20 string name; 20 string name;
21 string[] string_array;
21 }; 22 };
22 23
23 [Peer=RendererTarget] 24 [Peer=RendererTarget]
24 interface BrowserTarget { 25 interface BrowserTarget {
25 PingResponse(); 26 PingResponse();
26 EchoResponse(EchoArgs arg1, EchoArgs arg2); 27 EchoResponse(EchoArgs arg1, EchoArgs arg2);
27 }; 28 };
28 29
29 [Peer=BrowserTarget] 30 [Peer=BrowserTarget]
30 interface RendererTarget { 31 interface RendererTarget {
31 Ping(); 32 Ping();
32 Echo(EchoArgs arg); 33 Echo(EchoArgs arg);
33 }; 34 };
34 35
35 } 36 }
OLDNEW
« no previous file with comments | « content/browser/webui/web_ui_mojo_browsertest.cc ('k') | mojo/bindings/js/codec_unittests.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698