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

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

Issue 16951005: Add support for byte and octet Web IDL types to the bindings generator (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 6 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/TestObject.idl
diff --git a/Source/bindings/tests/idls/TestObject.idl b/Source/bindings/tests/idls/TestObject.idl
index 549f640829b41b11b8e2a1ccd5a6880885ada3a1..9260497b585c6d04df6b044ad0075230106e239d 100644
--- a/Source/bindings/tests/idls/TestObject.idl
+++ b/Source/bindings/tests/idls/TestObject.idl
@@ -45,6 +45,8 @@ enum TestEnumType { "", "EnumValue1", "EnumValue2", "EnumValue3" };
static readonly attribute TestSubObjConstructor TestSubObj;
attribute TestEnumType enumAttr;
readonly attribute TestEnumType readOnlyEnumAttr;
+ attribute byte byteAttr;
+ attribute octet octetAttr;
attribute short shortAttr;
attribute unsigned short unsignedShortAttr;
attribute long longAttr;
@@ -148,11 +150,15 @@ enum TestEnumType { "", "EnumValue1", "EnumValue2", "EnumValue3" };
static void staticMethodWithCallbackArg(TestCallback callback);
// 'EnforceRange' extended attribute
+ void methodWithEnforceRangeInt8([EnforceRange] byte value);
+ void methodWithEnforceRangeUInt8([EnforceRange] octet value);
void methodWithEnforceRangeInt32([EnforceRange] long value);
void methodWithEnforceRangeUInt32([EnforceRange] unsigned long value);
void methodWithEnforceRangeInt64([EnforceRange] long long value);
void methodWithEnforceRangeUInt64([EnforceRange] unsigned long long value);
+ [EnforceRange] attribute byte enforcedRangeByteAttr;
+ [EnforceRange] attribute octet enforcedRangeOctetAttr;
[EnforceRange] attribute long enforcedRangeLongAttr;
[EnforceRange] attribute unsigned long enforcedRangeUnsignedLongAttr;
[EnforceRange] attribute long long enforcedRangeLongLongAttr;

Powered by Google App Engine
This is Rietveld 408576698