commit | 397a1f595ec1fddea298385a48250d02267525f2 | [log] [tgz] |
---|---|---|
author | Sandra Sun <sunyunjia@chromium.org> | Thu Oct 26 23:31:47 2017 |
committer | Commit Bot <commit-bot@chromium.org> | Thu Oct 26 23:31:47 2017 |
tree | 7225c8d825625811ba21c2bda989bfe0f1b1602b | |
parent | 16dc20ed16b06edaff2eb58627a8ccd8d65aec55 [diff] |
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}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .