Hardcoding the size of the Input Profiles list and the Button Map lists
is risky. Because we want to keep these variables as statics, we can
only use constexpr declarations, and this precludes using a safer
container, such as std::vector. Additionally, because the lists are of
various sizes, we cannot use std::array here. This change switches the
interaction profile definitions to create more variables which we can
call base::size on rather than harcoding the size manually.
Bug: 1221691
Change-Id: I5bcc71b8a9c25b81726723ae0739d0e28ff49e72
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2973593
Reviewed-by: Brandon Jones <bajones@chromium.org>
Commit-Queue: Alexander Cooper <alcooper@chromium.org>
Cr-Commit-Position: refs/heads/master@{#894448}