pdf: Enable pen mode and out-of-bounds panning for annotation

* Pen mode: once a pen is detected touch is only used for panning and
  not drawing strokes.
* Out-of-bounds panning: pen and touch events that occur outside of
  the page are allowed to start pan-x or pan-y gestures.

Bug: 902646
Change-Id: Ieb9719c61d31db2c7e7e6e4f5f97ebea8084bb39
Reviewed-on: https://chromium-review.googlesource.com/c/1405157
Reviewed-by: Demetrios Papadopoulos <dpapad@chromium.org>
Reviewed-by: Henrique Nakashima <hnakashima@chromium.org>
Commit-Queue: dstockwell <dstockwell@chromium.org>
Cr-Commit-Position: refs/heads/master@{#623139}
5 files changed