• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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.
6namespace 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};
57