Use scroll-boundary-behavior to control swipe-navigation on Mac.

This is a feature improvement of scroll-boundary-behavior. In short, it
allows web developers to use a css value to specify whether default
overscroll behaviors (swipe-navigation in this patch) will be generated.
Details can be found at https://wicg.github.io/scroll-boundary-behavior/

This patch uses scroll-boundary-behavior to control swipe-navigation on
Mac. This is implemented by overriding DidOverscroll in
RenderWidgetHostViewMac from RenderWidgetHostViewBase. By looking at the
ScrollBoundaryBehavior value in DidOverscrollParams, the
MacHistorySwiper decides whether to navigate or not.

Bug: 762023
Change-Id: If9fdff4ea362e318d41ad81c2718a25161efc417
Reviewed-on: https://chromium-review.googlesource.com/650828
Commit-Queue: Sandra Sun <sunyunjia@chromium.org>
Reviewed-by: Camille Lamy <clamy@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
Reviewed-by: Erik Chen <erikchen@chromium.org>
Reviewed-by: ccameron <ccameron@chromium.org>
Cr-Commit-Position: refs/heads/master@{#512010}
9 files changed