1// Copyright (c) 2012 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 'object' types in various places in IDL.
6
7namespace idl_object_types {
8  dictionary FooType {
9    long x;
10    object y;
11    [instanceOf=Window]object z;
12  };
13
14  dictionary BarType {
15    any x;
16  };
17
18  dictionary BazType {
19    long? x;
20    FooType? foo;
21  };
22
23  dictionary UnionType {
24    (long or FooType)? x;
25    (DOMString or object) y;
26    ([instanceOf=ImageData]object or long) z;
27  };
28
29  dictionary ModifiedUnionType {
30    [nodoc] (long or DOMString) x;
31  };
32
33  interface Functions {
34    static void objectFunction1([instanceOf=ImageData]object icon);
35    static void objectFunction2(any some_arg);
36  };
37};
38