Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(332)

Unified Diff: Source/bindings/tests/idls/TestObjectPython.idl

Issue 217053007: Revert of Make DOMWrapperWorld::current() return a reference instead of a pointer (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Revert 213543004 too Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/bindings/tests/idls/TestObject.idl ('k') | Source/bindings/tests/idls/TestPartialInterface.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/tests/idls/TestObjectPython.idl
diff --git a/Source/bindings/tests/idls/TestObject.idl b/Source/bindings/tests/idls/TestObjectPython.idl
similarity index 95%
copy from Source/bindings/tests/idls/TestObject.idl
copy to Source/bindings/tests/idls/TestObjectPython.idl
index b0eed8e714cd91a0e754395a1129995684b717fd..b3f382773ed8383ec03057ed9b05e7d7e58471f2 100644
--- a/Source/bindings/tests/idls/TestObject.idl
+++ b/Source/bindings/tests/idls/TestObjectPython.idl
@@ -34,7 +34,7 @@ callback VoidCallbackFunction = void ();
callback AnyCallbackFunctionOptionalAnyArg = any (optional any optionalAnyArg);
// No extended attributes on the interface; those go in TestInterface.idl
-interface TestObject {
+interface TestObjectPython {
// Constants
const unsigned short CONST_VALUE_0 = 0;
const unsigned short CONST_VALUE_1 = 1;
@@ -77,7 +77,7 @@ interface TestObject {
// Basic types
attribute Date dateAttribute;
attribute DOMString stringAttribute;
- attribute DOMTimeStamp domTimeStampAttribute;
+ readonly attribute DOMTimeStamp readonlyDOMTimeStampAttribute; // FIXME: Perl CG doesn't translate typedef DOMTimeStamp -> unsigned long long; remove readonly once moved to Python-only
attribute boolean booleanAttribute;
attribute byte byteAttribute;
attribute double doubleAttribute;
@@ -92,7 +92,7 @@ interface TestObject {
// Interface type
attribute TestInterfaceEmpty testInterfaceEmptyAttribute;
// Self-reference
- attribute TestObject testObjectAttribute;
+ attribute TestObjectPython testObjectPythonAttribute;
// Callback function type
attribute VoidCallbackFunction voidCallbackFunctionAttribute;
attribute AnyCallbackFunctionOptionalAnyArg anyCallbackFunctionOptionalAnyArgAttribute;
@@ -139,6 +139,8 @@ interface TestObject {
// Static attributes
static attribute DOMString staticStringAttribute;
static attribute long staticLongAttribute;
+ // Constructors
+ attribute TestObjectAConstructor testObjectAConstructorAttribute;
// Exceptional type
attribute EventHandler eventHandlerAttribute;
@@ -152,10 +154,6 @@ interface TestObject {
[Conditional=CONDITION] attribute long conditionalLongAttribute;
[Conditional=CONDITION_1&CONDITION_2] attribute long conditionalAndLongAttribute;
[Conditional=CONDITION_1|CONDITION_2] attribute long conditionalOrLongAttribute;
- // Constructors: FIXME: replace suffix with [ConstructorAttribute]
- attribute TestInterfaceEmptyConstructor testInterfaceEmptyConstructorAttribute;
- [DeprecateAs=deprecatedTestInterfaceEmptyConstructorAttribute] attribute TestInterfaceEmptyConstructor testInterfaceEmptyConstructorAttribute;
- [MeasureAs=FeatureName] attribute TestInterfaceEmptyConstructor measureAsFeatureNameTestInterfaceEmptyConstructorAttribute;
[Custom] attribute object customObjectAttribute;
[Custom=Getter] attribute long customGetterLongAttribute;
[Custom=Getter] readonly attribute object customGetterReadonlyObjectAttribute;
@@ -207,7 +205,7 @@ interface TestObject {
// Limited value attributes and enumerated attributes
[Reflect, ReflectOnly="unique"] attribute DOMString limitedToOnlyOneAttribute;
[Reflect, ReflectOnly="Per"|"Paal"|"Espen"] attribute DOMString limitedToOnlyAttribute;
- [Reflect=other, ReflectOnly="Value1"|"Value2" ] attribute DOMString limitedToOnlyOtherAttribute;
+ [Reflect=Other, ReflectOnly="Value1"|"Value2" ] attribute DOMString limitedToOnlyOtherAttribute;
[Reflect, ReflectOnly="rsa"|"dsa", ReflectMissing="rsa"] attribute DOMString limitedWithMissingDefaultAttribute;
[Reflect, ReflectOnly="ltr"|"rtl"|"auto", ReflectMissing="auto", ReflectInvalid="ltr"] attribute DOMString limitedWithInvalidMissingDefaultAttribute;
[Reflect, ReflectOnly="anonymous"|"use-credentials", ReflectEmpty="anonymous", ReflectInvalid="anonymous"] readonly attribute DOMString corsSettingAttribute;
@@ -226,8 +224,9 @@ interface TestObject {
[TreatReturnedNullStringAs=Null] attribute DOMString treatReturnedNullStringAsNullStringAttribute;
[TreatReturnedNullStringAs=Undefined] attribute DOMString treatReturnedNullStringAsUndefinedStringAttribute;
[Reflect, URL] attribute DOMString urlStringAttribute;
- [Reflect=reflectUrlAttribute, URL] attribute DOMString urlStringAttribute;
+ [Reflect=ReflectUrlAttribute, URL] attribute DOMString urlStringAttribute;
[Unforgeable] attribute long unforgeableLongAttribute;
+ [Reflect="ReflectUrlAttributeAsAString"] attribute DOMString anotherStringAttribute;
// Methods
@@ -258,7 +257,7 @@ interface TestObject {
void voidMethodDateArg(Date dateArg);
void voidMethodStringArg(DOMString stringArg);
- void voidMethodDOMTimeStampArg(DOMTimeStamp domTimeStampArg);
+ // void voidMethodDOMTimeStampArg(DOMTimeStamp domTimeStampArg); // FIXME: Perl CG doesn't translate typedef DOMTimeStamp -> unsigned long long; uncomment once moved to Python-only
void voidMethodBooleanArg(boolean booleanArg);
void voidMethodByteArg(byte byteArg);
void voidMethodDoubleArg(double doubleArg);
@@ -340,7 +339,7 @@ interface TestObject {
void voidMethodPromiseArg(Promise promiseArg);
void voidMethodSerializedScriptValueArg(SerializedScriptValue serializedScriptValueArg);
void voidMethodXPathNSResolverArg(XPathNSResolver xPathNSResolverArg);
- void voidMethodDictionarySequenceArg(sequence<Dictionary> dictionarySequenceArg);
+ void voidMethodSequenceDictionaryArg(sequence<Dictionary> dictionarySequenceArg);
// Arguments
void voidMethodStringArgLongArg(DOMString stringArg, long longArg);
@@ -383,11 +382,6 @@ interface TestObject {
void overloadedMethodG([StrictTypeChecking] DOMString strictTypeCheckingStringArg);
void overloadedMethodH();
void overloadedMethodH(TestCallbackInterface testCallbackInterfaceArg);
- // FIXME: Should be in order double, Dictionary, but Blink implementation of
- // overload resolution can't handle this. http://crbug.com/293561
- void overloadedMethodI(Dictionary dictionaryArg); // Non-wrapper type
- void overloadedMethodI(double doubleArg);
-
[PerWorldBindings] void overloadedPerWorldBindingsMethod();
[PerWorldBindings] void overloadedPerWorldBindingsMethod(long longArg);
@@ -443,7 +437,6 @@ interface TestObject {
[RaisesException] void raisesExceptionVoidMethodTestCallbackInterfaceArg(TestCallbackInterface testCallbackInterfaceArg);
[RaisesException] void raisesExceptionVoidMethodOptionalTestCallbackInterfaceArg(optional TestCallbackInterface optionalTestCallbackInterfaceArg);
[RaisesException] TestInterfaceEmpty raisesExceptionTestInterfaceEmptyVoidMethod();
- [CallWith=ExecutionContext, RaisesException] void callWithExecutionContextRaisesExceptionVoidMethodLongArg(long longArg);
[ReadOnly] void readOnlyVoidMethod();
[NotEnumerable, ReadOnly] void notEnumerableReadOnlyVoidMethod();
[RuntimeEnabled=FeatureName] void runtimeEnabledVoidMethod();
@@ -459,7 +452,7 @@ interface TestObject {
// Extended attributes on referenced interfaces
// (not self; self-reference tests at interface themselves)
- attribute TestInterface testInterfaceAttribute; // [ImplementedAs]
+ attribute TestInterfacePython testInterfacePythonAttribute; // [ImplementedAs]
attribute TestInterfaceWillBeGarbageCollected testInterfaceWillBeGarbageCollectedAttribute; // [WillBeGarbageCollected]
attribute TestInterfaceWillBeGarbageCollected? testInterfaceWillBeGarbageCollectedOrNullAttribute; // [WillBeGarbageCollected]
};
« no previous file with comments | « Source/bindings/tests/idls/TestObject.idl ('k') | Source/bindings/tests/idls/TestPartialInterface.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698