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

Unified Diff: Source/core/testing/TypeConversions.h

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: Take Joshua's feedback into consideration 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
« no previous file with comments | « Source/core/html/canvas/DataView.idl ('k') | Source/core/testing/TypeConversions.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/testing/TypeConversions.h
diff --git a/Source/core/testing/TypeConversions.h b/Source/core/testing/TypeConversions.h
index 8de102f2a2477de10095836388672da5810c88f6..b8cde7bf27ad9fc174f119e2f8b35c1b9a918ca3 100644
--- a/Source/core/testing/TypeConversions.h
+++ b/Source/core/testing/TypeConversions.h
@@ -54,6 +54,16 @@ public:
unsigned long long testEnforceRangeUnsignedLongLong() { return m_unsignedLongLong; }
void setTestEnforceRangeUnsignedLongLong(unsigned long long value) { m_unsignedLongLong = value; }
+ int8_t testByte() { return m_byte; }
+ void setTestByte(int8_t value) { m_byte = value; }
+ int8_t testEnforceRangeByte() { return m_byte; }
+ void setTestEnforceRangeByte(int8_t value) { m_byte = value; }
+
+ uint8_t testOctet() { return m_octet; }
+ void setTestOctet(uint8_t value) { m_octet = value; }
+ uint8_t testEnforceRangeOctet() { return m_octet; }
+ void setTestEnforceRangeOctet(uint8_t value) { m_octet = value; }
+
private:
TypeConversions()
{
@@ -63,6 +73,8 @@ private:
unsigned long m_unsignedLong;
long long m_longLong;
unsigned long long m_unsignedLongLong;
+ int8_t m_byte;
+ uint8_t m_octet;
};
} // namespace WebCore
« no previous file with comments | « Source/core/html/canvas/DataView.idl ('k') | Source/core/testing/TypeConversions.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698