CodeGen: Make generated Enumeration classes more useful
Makes generated code of IDL Enumeration more useful in following ways; - Drops declaration of friend operators == and !=. Those operators become able to work. - Adds == and != operators to compare with other types, e.g. String, AtomicString, and char[], in the base class as migration adapters. - Adds ToString() method to allow CHECK() output the value. Bug: 839389 Change-Id: I05dbeb2a2f4eae51b67b14ef676941eab93c6862 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2134002Reviewed-by:Yuki Shiino <yukishiino@chromium.org> Commit-Queue: Hitoshi Yoshida <peria@chromium.org> Cr-Commit-Position: refs/heads/master@{#756610}
Showing
Please register or sign in to comment