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

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

Issue 24257003: IDL compiler: Types (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Revised Created 7 years, 3 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
Index: Source/bindings/tests/idls/TestObjectPython.idl
diff --git a/Source/bindings/tests/idls/TestCallback.idl b/Source/bindings/tests/idls/TestObjectPython.idl
similarity index 66%
copy from Source/bindings/tests/idls/TestCallback.idl
copy to Source/bindings/tests/idls/TestObjectPython.idl
index f274b51bfc089250df96502f1c0b8dd89e469525..8a3df74a0e712858579bccd604606ec3fad37fe3 100644
--- a/Source/bindings/tests/idls/TestCallback.idl
+++ b/Source/bindings/tests/idls/TestObjectPython.idl
@@ -1,5 +1,6 @@
/*
* Copyright (C) 2009 Google Inc. All rights reserved.
+ * Copyright (C) 2010 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary formstrArg, with or without
* modification, are permitted provided that the following conditions
@@ -26,16 +27,17 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-// This IDL file is for testing the bindings code generator with a callback
-// interface for tracking changes in its ouput.
-callback interface TestCallback {
- boolean callbackWithNoParam();
- boolean callbackWithTestObjectParam(TestObject class1Param);
- boolean callbackWithTestObjectParam(TestObject class2Param, DOMString strArg);
- [Custom] long customCallback(TestObject testObjParam, TestObject testObjParam);
- boolean callbackWithStringList(DOMStringList listParam);
- boolean callbackWithBoolean(boolean boolParam);
- boolean callbackWithSequence(sequence<TestObject> sequenceParam);
- boolean callbackWithFloat(float floatParam);
- [CallWith=ThisValue] boolean callbackWithThisArg(long param);
+interface TestObjectPython {
+ readonly attribute Date readOnlyDateAttribute;
+ readonly attribute boolean readOnlyBooleanAttribute;
+ readonly attribute byte readOnlyByteAttribute;
+ readonly attribute double readOnlyDoubleAttribute;
+ readonly attribute float readOnlyFloatAttribute;
+ readonly attribute long readOnlyLongAttribute;
+ readonly attribute long long readOnlyLongLongAttribute;
+ readonly attribute octet readOnlyOctetAttribute;
+ readonly attribute short readOnlyShortAttribute;
+ readonly attribute unsigned long readOnlyUnsignedLongAttribute;
+ readonly attribute unsigned long long readOnlyUnsignedLongLongAttribute;
+ readonly attribute unsigned short readOnlyUnsignedShortAttribute;
};

Powered by Google App Engine
This is Rietveld 408576698