bindings: Make PhotoState conversion work with both IDL compilers
The code generator for IDL dictionaries will be updated soon (issue 839389), and the new generator does not use WTF::String for IDL enumerations. In image_capture.cc, the type of |photo_capabilities_->fillLightMode()| will be Vector<V8FillLightMode> from Vector<String>. This CL makes the conversion work with both types using a template hack. This hack will be cleared after the migration of IDL compilers is completed. Bug: 839389, 1070871 Change-Id: I927cadba6947676115c7d781d33706b767757276 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2355632Reviewed-by:Kentaro Hara <haraken@chromium.org> Reviewed-by:
Yuki Shiino <yukishiino@chromium.org> Commit-Queue: Hitoshi Yoshida <peria@chromium.org> Cr-Commit-Position: refs/heads/master@{#799576}
Showing
Please register or sign in to comment