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.
7 dictionary EventArgumentElement
{
8 DOMString elementStringArg
;
11 dictionary EventArgument
{
13 [instanceOf
=FileEntry
] object entryArg
;
22 EventArgumentElement
[] elements
;
24 // Optional file entry
25 [instanceOf
=FileEntry
] object? optionalEntryArg
;
28 DOMString? optionalStringArg
;
34 EventArgumentElement
[]? optionalElements
;
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
);