Replace NextEvent with NextSnapshot

This patch uses NextSnapshot to replace NextEvent, and computes
the leaving TIDs.

Note that NextSnapshot does not return raw events for now. When
it does later, the raw events should be processed accordingly.

BUG=chromium:466552
TEST=Emerge and deploy webplot to a chromebook.
Run webplot on the chromebook and see it execute correctly.
$ webplot
CQ-DEPEND=I7661239218087f6199ef0ce91fb84e08e7bd8ca0

Change-Id: I93cab35aad890795bfa21fcb573dd0b1f328d570
Reviewed-on: https://chromium-review.googlesource.com/260196
Reviewed-by: Charlie Mooney <charliemooney@chromium.org>
Commit-Queue: Shyh-In Hwang <josephsih@chromium.org>
Tested-by: Shyh-In Hwang <josephsih@chromium.org>
1 file changed
tree: 3c21ded27c4b5eccf1c33467712ac8f96a603752
  1. webplot/
  2. OWNERS
  3. setup.py
  4. webplot.sh