Abstraction for hiding enum class.
authormark.lam@apple.com <mark.lam@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 31 Jan 2013 23:49:26 +0000 (23:49 +0000)
committermark.lam@apple.com <mark.lam@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 31 Jan 2013 23:49:26 +0000 (23:49 +0000)
commitd6253cf12cc06382d4b01e4543b44bdca865b048
treee855ec5a8af23badfe99b39d9ca636aa7af139a8
parent5f26a732dc46780214fef4c5ce93041f19b39992
Abstraction for hiding enum class.
https://bugs.webkit.org/show_bug.cgi?id=108533

Reviewed by Anders Carlsson.

../WebCore:

No new tests.

* Modules/webdatabase/DatabaseError.h:
(WebCore::ENUM_CLASS_BEGIN):

../WTF:

* wtf/Compiler.h:
* wtf/EnumClass.h: Copied from Source/WTF/wtf/TypeSafeEnum.h.
(WTF::EnumClass::EnumClass):
(WTF::EnumClass::operator==):
(WTF::EnumClass::operator!=):
(WTF::EnumClass::operator<):
(WTF::EnumClass::operator<=):
(WTF::EnumClass::operator>):
(WTF::EnumClass::operator>=):
* wtf/TypeSafeEnum.h: Removed.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@141499 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WTF/ChangeLog
Source/WTF/wtf/Compiler.h
Source/WTF/wtf/EnumClass.h [new file with mode: 0644]
Source/WTF/wtf/TypeSafeEnum.h [deleted file]
Source/WebCore/ChangeLog
Source/WebCore/Modules/webdatabase/DatabaseError.h