Add first/last bounds for each WebInputEvent type class
Add first/last bounds for each WebInputEvent type class

|WebInputEvent::isFooEventType()| queries to determine an event's type class are
frequent, executed potentially 10-15 times or more over the lifetime of a single
event instance.  Speed this query by adding first/last enum bounds for each type
class, and changing the query from a chain of |if(type == Web*Event)| checks
into a simple bounds check.

In testing on several Android devices, the bounds check was 4x faster for a long
sequence of randomized type queries, and 2x faster than changing the chains into
switch statements. This also makes it easier to determine type counts for a
specific class.

BUG=341613

Review URL: https://codereview.chromium.org/170283012

git-svn-id: bf5cd6ccde378db821296732a091cfbcf5285fbd@167469 bbb929c8-8fbe-4397-9dbb-9b2b20218538

PeterWangIntel/blink-crosswalk,crosswalk-project/blink-crosswalk-efl,nwjs/blink,smishenk/blink-crosswalk,XiaosongWei/blink-crosswalk,smishenk/blink-crosswalk,jtg-gg/blink,nwjs/blink,ondra-novak/blink,modulexcite/blink,PeterWangIntel/blink-crosswalk,PeterWangIntel/blink-crosswalk,nwjs/blink,nwjs/blink,PeterWangIntel/blink-crosswalk,XiaosongWei/blink-crosswalk,kurli/blink-crosswalk,modulexcite/blink,kurli/blink-crosswalk,kurli/blink-crosswalk,Pluto-tv/blink-crosswalk,Bysmyyr/blink-crosswalk,jtg-gg/blink,kurli/blink-crosswalk,Pluto-tv/blink-crosswalk,hgl888/blink-crosswalk-efl,jtg-gg/blink,XiaosongWei/blink-crosswalk,smishenk/blink-crosswalk,smishenk/blink-crosswalk,modulexcite/blink,ondra-novak/blink,crosswalk-project/blink-crosswalk-efl,jtg-gg/blink,smishenk/blink-crosswalk,Pluto-tv/blink-crosswalk,ondra-novak/blink,smishenk/blink-crosswalk,kurli/blink-crosswalk,Bysmyyr/blink-crosswalk,modulexcite/blink,crosswalk-project/blink-crosswalk-efl,ondra-novak/blink,ondra-novak/blink,Bysmyyr/blink-crosswalk,hgl888/blink-crosswalk-efl,PeterWangIntel/blink-crosswalk,XiaosongWei/blink-crosswalk,PeterWangIntel/blink-crosswalk,hgl888/blink-crosswalk-efl,kurli/blink-crosswalk,PeterWangIntel/blink-crosswalk,Pluto-tv/blink-crosswalk,Bysmyyr/blink-crosswalk,kurli/blink-crosswalk,jtg-gg/blink,kurli/blink-crosswalk,Pluto-tv/blink-crosswalk,Bysmyyr/blink-crosswalk,kurli/blink-crosswalk,Pluto-tv/blink-crosswalk,PeterWangIntel/blink-crosswalk,ondra-novak/blink,PeterWangIntel/blink-crosswalk,smishenk/blink-crosswalk,nwjs/blink,hgl888/blink-crosswalk-efl,nwjs/blink,jtg-gg/blink,hgl888/blink-crosswalk-efl,Bysmyyr/blink-crosswalk,modulexcite/blink,jtg-gg/blink,nwjs/blink,Bysmyyr/blink-crosswalk,XiaosongWei/blink-crosswalk,crosswalk-project/blink-crosswalk-efl,Pluto-tv/blink-crosswalk,modulexcite/blink,hgl888/blink-crosswalk-efl,smishenk/blink-crosswalk,crosswalk-project/blink-crosswalk-efl,Bysmyyr/blink-crosswalk,XiaosongWei/blink-crosswalk,XiaosongWei/blink-crosswalk,XiaosongWei/blink-crosswalk,Pluto-tv/blink-crosswalk,Pluto-tv/blink-crosswalk,jtg-gg/blink,XiaosongWei/blink-crosswalk,crosswalk-project/blink-crosswalk-efl,crosswalk-project/blink-crosswalk-efl,ondra-novak/blink,Bysmyyr/blink-crosswalk,modulexcite/blink,nwjs/blink,jtg-gg/blink,nwjs/blink,smishenk/blink-crosswalk,ondra-novak/blink,ondra-novak/blink,jtg-gg/blink,modulexcite/blink,hgl888/blink-crosswalk-efl,hgl888/blink-crosswalk-efl,hgl888/blink-crosswalk-efl,crosswalk-project/blink-crosswalk-efl,smishenk/blink-crosswalk,modulexcite/blink,Pluto-tv/blink-crosswalk,nwjs/blink,XiaosongWei/blink-crosswalk,crosswalk-project/blink-crosswalk-efl,hgl888/blink-crosswalk-efl,modulexcite/blink,PeterWangIntel/blink-crosswalk,kurli/blink-crosswalk,Bysmyyr/blink-crosswalk