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

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

Issue 16876004: Updating JSON Schema Compiler to add description field to schemas. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: (kalman) rebase Created 7 years, 6 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 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 // A comment for the functions namespace.
5 namespace functions { 6 namespace functions {
6 callback SimpleCallback = void (); 7 callback SimpleCallback = void ();
7 8
8 callback PrimitiveCallback = void (int i); 9 callback PrimitiveCallback = void (int i);
9 10
10 callback DictCallback = void ([instanceOf=DictType] object dict); 11 callback DictCallback = void ([instanceOf=DictType] object dict);
11 12
12 dictionary DictType { 13 dictionary DictType {
13 // A field. 14 // A field.
14 int a; 15 int a;
(...skipping 30 matching lines...) Expand all
45 // Function taking a primitive callback. 46 // Function taking a primitive callback.
46 static void primitiveCallbackFunc(PrimitiveCallback c); 47 static void primitiveCallbackFunc(PrimitiveCallback c);
47 48
48 // Function taking a dictionary callback. 49 // Function taking a dictionary callback.
49 static void dictCallbackFunc(DictCallback c); 50 static void dictCallbackFunc(DictCallback c);
50 51
51 // Function returning a dictionary. 52 // Function returning a dictionary.
52 static DictType dictRetFunc(); 53 static DictType dictRetFunc();
53 }; 54 };
54 }; 55 };
OLDNEW
« no previous file with comments | « tools/json_schema_compiler/dart_test/events.idl ('k') | tools/json_schema_compiler/dart_test/operatable_type.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698