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

Side by Side Diff: chrome/common/extensions/api/test_presubmit/valid_idl_basics.idl

Issue 239283008: Add global presubmit that JSON and IDL files can be parsed. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 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 | Annotate | Revision Log
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 // Tests a valid IDL file.
6
7 namespace idl_basics {
8 enum EnumType {
9 name1,
10 name2
11 };
12
13 dictionary MyType1 {
14 DOMString a;
15 };
16
17 callback Callback1 = void();
18 callback Callback2 = void(long x);
19 callback Callback3 = void(MyType1 arg);
20 callback Callback4 = void(EnumType type);
21
22 interface Functions {
23 static void function1();
24 static void function2(long x);
25 static void function3(MyType1 arg);
26 static void function4(Callback1 cb);
27 static void function5(Callback2 cb);
28 static void function6(Callback3 cb);
29 static void function7(Callback4 cb);
30 };
31
32 interface Events {
33 static void onFoo1();
34 static void onFoo2(long x);
35 static void onFoo2(MyType1 arg);
36 static void onFoo3(EnumType type);
37 };
38 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698