[Webkit-unassigned] [Bug 136297] Web Replay: code generator should be able to encode/decode ViewState::Flags
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Aug 27 11:59:51 PDT 2014
https://bugs.webkit.org/show_bug.cgi?id=136297
--- Comment #1 from Brian Burg <burg at cs.washington.edu> 2014-08-27 11:59:58 PST ---
Even simpler:
enum class WebEnums { FooBar, BarBaz };
struct ViewState {
typedef uint32_t Flags;
};
template <typename EnumType, EnumType tag>
class Phantom { };
template<> struct EncodingTraits<Phantom<JSEnums,JSEnums::FooBar>> {
typedef ViewState::Flags DecodedType;
static EncodedValue encodeValue(const DecodedType&);
static bool decodeValue(EncodedValue&, const DecodedType&);
};
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list