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

Side by Side Diff: tools/json_schema_compiler/dart_test/events.idl

Issue 843213003: Remove dart generator code from json schema compiler. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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
(Empty)
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
3 // found in the LICENSE file.
4
5 // This comment is for the events namespace.
6 namespace events {
7 dictionary EventArgumentElement {
8 DOMString elementStringArg;
9 };
10
11 dictionary EventArgument {
12 // A file entry
13 [instanceOf=FileEntry] object entryArg;
14
15 // A string
16 DOMString stringArg;
17
18 // A primitive
19 int intArg;
20
21 // An array
22 EventArgumentElement[] elements;
23
24 // Optional file entry
25 [instanceOf=FileEntry] object? optionalEntryArg;
26
27 // A string
28 DOMString? optionalStringArg;
29
30 // A primitive
31 int? optionalIntArg;
32
33 // An array
34 EventArgumentElement[]? optionalElements;
35 };
36
37 interface Events {
38 // Documentation for the first basic event.
39 static void firstBasicEvent();
40
41 // Documentation for the second basic event.
42 static void secondBasicEvent();
43
44 // Documentation for an event with a non-optional primitive argument.
45 static void nonOptionalPrimitiveArgEvent(int argument);
46
47 // Documentation for an event with an optional primitive argument.
48 static void optionalPrimitiveArgEvent(optional int argument);
49
50 // Documentation for an event with a non-optional dictionary argument.
51 static void nonOptionalDictArgEvent(EventArgument argument);
52
53 // Documentation for an event with a optional dictionary argument.
54 static void optionalDictArgEvent(EventArgument argument);
55 };
56 };
OLDNEW
« no previous file with comments | « tools/json_schema_compiler/dart_test/events.dart ('k') | tools/json_schema_compiler/dart_test/functions.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698