CodeGen: Fix types of fooOr() in IDL dictionaries
We redesigned fooOr() APIs to be available with some limited types. This CL applies the design as following. - numeric types, IDL enum : T fooOr(T) - (nullable) string types : String fooOr(const String&) - (nullable) IDL dictionary : const T* fooOr(nullptr_t) - (nullable) other IDL definitions : T* fooOr(nullptr_t) - types converted to base::Optional : base::Optional<T> fooOr(base::nullopt_t) Bug: 839389 Change-Id: Iba6ab3812f023a573c428ad96117d78544351121 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2319090 Commit-Queue: Hitoshi Yoshida <peria@chromium.org> Reviewed-by:Yuki Shiino <yukishiino@chromium.org> Cr-Commit-Position: refs/heads/master@{#798177}
Showing
Please register or sign in to comment