Battery Status API: add UMA logging for Linux.
[chromium-blink-merge.git] / tools / json_schema_compiler / dart_test / events.idl
blobf1fb4b67dcc685125495dd7ea156ed664076017c
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.
5 // This comment is for the events namespace.
6 namespace events {
7 dictionary EventArgumentElement {
8 DOMString elementStringArg;
9 };
11 dictionary EventArgument {
12 // A file entry
13 [instanceOf=FileEntry] object entryArg;
15 // A string
16 DOMString stringArg;
18 // A primitive
19 int intArg;
21 // An array
22 EventArgumentElement[] elements;
24 // Optional file entry
25 [instanceOf=FileEntry] object? optionalEntryArg;
27 // A string
28 DOMString? optionalStringArg;
30 // A primitive
31 int? optionalIntArg;
33 // An array
34 EventArgumentElement[]? optionalElements;
37 interface Events {
38 // Documentation for the first basic event.
39 static void firstBasicEvent();
41 // Documentation for the second basic event.
42 static void secondBasicEvent();
44 // Documentation for an event with a non-optional primitive argument.
45 static void nonOptionalPrimitiveArgEvent(int argument);
47 // Documentation for an event with an optional primitive argument.
48 static void optionalPrimitiveArgEvent(optional int argument);
50 // Documentation for an event with a non-optional dictionary argument.
51 static void nonOptionalDictArgEvent(EventArgument argument);
53 // Documentation for an event with a optional dictionary argument.
54 static void optionalDictArgEvent(EventArgument argument);