blob: ebf9f38aa61b5801df2cd3c83dd0ce2f7c0c88ef [file] [log] [blame]
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Tests 'object' types in various places in IDL.
namespace idl_object_types {
dictionary FooType {
long x;
object y;
[instanceOf=Window]object z;
dictionary BarType {
any x;
dictionary BazType {
long? x;
FooType? foo;
dictionary UnionType {
(long or FooType)? x;
(DOMString or object) y;
([instanceOf=ImageData]object or long) z;
dictionary ModifiedUnionType {
[nodoc] (long or DOMString) x;
interface Functions {
static void objectFunction1([instanceOf=ImageData]object icon);
static void objectFunction2(any some_arg);