summaryrefslogtreecommitdiffstats
path: root/cc/animation/scrollbar_animation_controller.h
Commit message (Collapse)AuthorAgeFilesLines
* cc: Make scrollbar animations not require traversing the layer tree.sunnyps2015-02-251-7/+19
| | | | | | Review URL: https://codereview.chromium.org/956453002 Cr-Commit-Position: refs/heads/master@{#317933}
* cc cleanup: Update paths to geometry headersheejin.r.chung2014-10-231-1/+1
| | | | | | | | | | | Geometry headers were moved from /ui/gfx/ to ui/gfx/geometry. Updating includes accordingly. BUG=395370 Review URL: https://codereview.chromium.org/660333004 Cr-Commit-Position: refs/heads/master@{#300902}
* [Android]Increase Scrollbar fade delay on Resize.sataya.m2014-10-071-2/+4
| | | | | | | | | | | | | | | Increase Scrollbar fade delay during on Resize to 2000mS. Scrollbar layer properties changes during page load, which is triggering scrollbar animation continuously because of 300mS fade delay. Increasing the fade delay to 2000mS on Resize ensures the scrollbar animates optimally rather than animating rapidly while loading heavy sites. BUG=361141 Review URL: https://codereview.chromium.org/608223002 Cr-Commit-Position: refs/heads/master@{#298471}
* Remove physical time dependency from scrollbar fades.aelias@chromium.org2014-05-021-10/+46
| | | | | | | | | | | | | | | | | | | | | | | This patch switches fade delay to use base::CancelableClosure, and makes the animation only note the time during the first animation frame. Background: we need to avoid spamming unnecessary animation frames during the 300ms between a scroll and when the scrollbar starts fading. Therefore, we post a delayed task and then start a redraw cycle only when that task wakes up. The difficulty is that the fade may actually need to be postponed, depending on events that occured during the waiting period. In the past, we've dealt with this by noting the timestamp of the last ScrollEnd, and reposting if it's later than the current time when the task wakes up. This made the fade logic complex, and introduced a problematic dependency on true physical time (as opposed to frame time) that exists nowhere else in CC. NOTRY=true BUG=369006 Review URL: https://codereview.chromium.org/236743003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@267756 0039d316-1c4b-4281-b951-d872f2087c98
* Grow scrollbars while the mouse is over the track or thumb.tony@chromium.org2013-10-011-0/+1
| | | | | | | | | | | | For overlay scrollbars, when the mouse is over the scrollbar, prevent the animation from making the scrollbar smaller. BUG=274010 R=enne@chromium.org Review URL: https://codereview.chromium.org/24782002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@226308 0039d316-1c4b-4281-b951-d872f2087c98
* Trigger overlay scrollbar animation when the pointer is nearby.tony@chromium.org2013-09-261-0/+1
| | | | | | | | | | | When the mouse cursor is near a scrollbar, trigger the scrollbar animation so it's easier to find and grab the thinning scrollbars. BUG=274010 Review URL: https://codereview.chromium.org/23983035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@225352 0039d316-1c4b-4281-b951-d872f2087c98
* Add a thinning scrollbar animator for desktop overlay scrollbars.tony@chromium.org2013-09-111-1/+3
| | | | | | | | | | | | | This makes the overlay scrollbars on desktop get thinner on idle rather than disappearing. This allows people to find and target them easier. No changes to Android scrollbars. BUG=274010 Review URL: https://chromiumcodereview.appspot.com/23647004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@222543 0039d316-1c4b-4281-b951-d872f2087c98
* Suppress scrollbar animation if the scroll gesture does not scrolljdduke@chromium.org2013-09-061-2/+1
| | | | | | | | | | | | | | Currently, the scrollbar layer animation is triggered at the end of every scroll gesture. However, as not every scroll gesture actually scrolls a layer, this may trigger extraneous animations, e.g., when the user overscrolls, or presses and lifts their finger without scrolling. Only trigger the scrollbar animation at the end of a scroll gesture if the gesture caused the layer to scroll. BUG=285771 Review URL: https://chromiumcodereview.appspot.com/23978008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@221801 0039d316-1c4b-4281-b951-d872f2087c98
* Use a direct include of time headers in cc/.avi@chromium.org2013-06-271-1/+1
| | | | | | | | | | BUG=254986 TEST=none TBR=ben@chromium.org Review URL: https://chromiumcodereview.appspot.com/18120002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@209027 0039d316-1c4b-4281-b951-d872f2087c98
* cc: Chromify ScrollbarAnimationController.aelias@chromium.org2013-03-191-12/+13
| | | | | | | | | Style-only change. Review URL: https://chromiumcodereview.appspot.com/12541024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@188946 0039d316-1c4b-4281-b951-d872f2087c98
* Part 3 of cc/ directory shuffles: animationjamesr@chromium.org2013-03-181-0/+32
Continuation of https://src.chromium.org/viewvc/chrome?view=rev&revision=188681 BUG=190824 TBR=enne@chromium.org, vollick@chromium.org Review URL: https://codereview.chromium.org/12822004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@188688 0039d316-1c4b-4281-b951-d872f2087c98