| Index: bindings/tests/idls/TestInterfaceNamedConstructor.idl
|
| diff --git a/core/clipboard/Clipboard.idl b/bindings/tests/idls/TestInterfaceNamedConstructor.idl
|
| similarity index 62%
|
| copy from core/clipboard/Clipboard.idl
|
| copy to bindings/tests/idls/TestInterfaceNamedConstructor.idl
|
| index 695f70d48666d0b6be10e489f134f66b75975dde..bc8a06bee84a75fc07fcaf32713d2ed59008e9e3 100644
|
| --- a/core/clipboard/Clipboard.idl
|
| +++ b/bindings/tests/idls/TestInterfaceNamedConstructor.idl
|
| @@ -1,5 +1,5 @@
|
| /*
|
| - * Copyright (C) 2008 Apple Inc. All rights reserved.
|
| + * Copyright (C) 2011 Google Inc. All rights reserved.
|
| *
|
| * Redistribution and use in source and binary forms, with or without
|
| * modification, are permitted provided that the following conditions
|
| @@ -27,17 +27,19 @@
|
| */
|
|
|
| [
|
| -] interface Clipboard {
|
| - [TreatReturnedNullStringAs=Undefined] attribute DOMString dropEffect;
|
| - [TreatReturnedNullStringAs=Undefined] attribute DOMString effectAllowed;
|
| - readonly attribute DOMString[] types;
|
| - readonly attribute FileList files;
|
| -
|
| - void clearData(optional DOMString type);
|
| - DOMString getData(DOMString type);
|
| - boolean setData(DOMString type, DOMString data);
|
| - [RaisesException] void setDragImage(Element image, long x, long y);
|
| -
|
| - readonly attribute DataTransferItemList items;
|
| + ActiveDOMObject,
|
| + NamedConstructor=Audio(
|
| + DOMString stringArg,
|
| + [Default=Undefined] optional boolean defaultUndefinedOptionalBooleanArg,
|
| + [Default=Undefined] optional long defaultUndefinedOptionalLongArg,
|
| + [Default=Undefined] optional DOMString defaultUndefinedOptionalStringArg,
|
| + optional DOMString defaultNullStringOptionalstringArg = null,
|
| + optional DOMString optionalStringArg),
|
| + ConstructorCallWith=Document,
|
| + RaisesException=Constructor,
|
| +] interface TestInterfaceNamedConstructor {
|
| + // An attribute of type {interface_name}ConstructorConstructor is generated
|
| + // in *Constructors.idl file, which is a partial interface for the global
|
| + // object, e.g. Window. We put this here to avoid another test file.
|
| + attribute TestNamedConstructorConstructor testNamedConstructorConstructorAttribute;
|
| };
|
| -
|
|
|