bind-gen: Make web feature implementations include necessary headers
Some of Blink implementations are missing header includes about return types. Adds missing header include directives. Example) // IDL TypeA foo(); // Implementation (.h) TypeB* foo(); // TypeB might inherit from TypeA, but who knows? In this case, there is no way for bindings generator to include an appropriate header "type_b.h" because foo's return type is known as "TypeA". Bindings generator includes "type_a.h", but it doesn't help handle a return value of type TypeB. Correct implementation is either of: TypeA* foo(); or, #include "type_b.h" TypeB* foo(); // TypeB is known to inherit from TypeA Bug: 839389 Change-Id: I5092b46a8579a4406a5567f68f6d4266e29eaa72 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2051797Reviewed-by:Kentaro Hara <haraken@chromium.org> Commit-Queue: Yuki Shiino <yukishiino@chromium.org> Cr-Commit-Position: refs/heads/master@{#740607}
Showing
Please register or sign in to comment