bind-gen: Clean up IDLNullable and NativeValutTraits<IDLNullable<T>>
Issue 798467: It's not yet clear what ImplType should be, but we technically don't need both of ImplType and ResultType. We can implement IDLNullabe without ResultType. At this moment, ImplType looks implementation helper used only by IDLXxx and NativeValueTraits. ImplType doesn't look a public API. Issue 798470: It's reasonable that NullValue() is defined iff type T can represent IDL null value. We can tell whether base::Optional is necessary or not by looking at existence of NullValue(). Issue 798471: This patch requires NullValue() only in NativeValueTraits and not in IDLXxx. IDLXxx is a simple tag type just like the original design. Bug: 798467, 798470, 798471 Change-Id: I08e3cf54f3059ec308b4b455045c0bc1cfd5967b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2002551 Commit-Queue: Yuki Shiino <yukishiino@chromium.org> Reviewed-by:Hitoshi Yoshida <peria@chromium.org> Cr-Commit-Position: refs/heads/master@{#732345}
Showing
Please register or sign in to comment