| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Adopt the compat library's implementation of the pull-to-refresh effect,
removing the old compositor-based approach.
This depends directly on the SwipeRefreshLayout addition in
https://codereview.chromium.org/897663003/.
BUG=428429,444134
Review URL: https://codereview.chromium.org/894193005
Cr-Commit-Position: refs/heads/master@{#325172}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Currently, the only way to disable the pull-to-refresh effect is to
explictly preventDefault the causal touches or suppress their default
actions with touch-action: none. However, the latter prevents
any kind of accelerated scrolling, and the former can be to get right
with composed or nested scrollable content.
Use the overflow-y:hidden property on the root element as a signal to
disable the effect. This dovetails with how this property both prevents
hiding of the top controls and suppresses the overscroll glow effect.
BUG=456515,456300
Review URL: https://codereview.chromium.org/910373002
Cr-Commit-Position: refs/heads/master@{#315938}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Avoid accidental refreshes by suppressing the effect when the overscroll
glow animation is still visible. This naturally prevents the case where
the user repeatedly flings/scrolls to the top, releasing before they
realize that the scroll has turned into a pull-to-refresh.
Note that suppression is only provided on L; the glow effect on previous
platforms is both too long and too visually faint to provide a good feedback
signal for when the user can start pulling to refresh.
BUG=456300
Review URL: https://codereview.chromium.org/879273007
Cr-Commit-Position: refs/heads/master@{#315832}
|
|
|
|
|
|
|
|
|
|
|
|
| |
Align the pull-to-refresh effect's appearance with the toolbar refresh
icon when the device layout is RTL. Note that this affects both the
refresh icon and its rotation.
BUG=446684
Review URL: https://codereview.chromium.org/836863004
Cr-Commit-Position: refs/heads/master@{#310657}
|
|
|
|
|
|
|
|
|
|
|
|
| |
Simplify testing by making the ResourceManager a pure interface.
Also add some basic trace coverage for resource loading.
BUG=426939
Review URL: https://codereview.chromium.org/802013004
Cr-Commit-Position: refs/heads/master@{#309296}
|
|
|
|
|
|
|
|
|
|
| |
And move UIResourceClientAndroid and UIResourceProvider under ui/android.
BUG=426939
Review URL: https://codereview.chromium.org/755643004
Cr-Commit-Position: refs/heads/master@{#307844}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
When pull-to-refresh is triggered, use the NavigationController to
trigger the reload instead of WebContents::ReloadFocusedFrame. This is
consistent with how toolbar-triggered reloads are performed.
Also reduce the animation time for a single reload animation rotation.
BUG=440406,428429
Review URL: https://codereview.chromium.org/792623003
Cr-Commit-Position: refs/heads/master@{#307610}
|
|
|
|
|
|
|
|
|
|
|
| |
The default refresh action is often undesirable for fullscreen content
like video. Disable it in such cases to prevent unexpected interactions.
BUG=435732,428429
Review URL: https://codereview.chromium.org/762533003
Cr-Commit-Position: refs/heads/master@{#305715}
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Match the native pull-to-refresh effect by shrinking the refresh icon
after the activation animating has finished. Also adjust the activated
animation by giving it a small constant velocity and changing its
ease-out cruve to an ease-in-out curve.
BUG=428429
Review URL: https://codereview.chromium.org/757083002
Cr-Commit-Position: refs/heads/master@{#305681}
|
|
|
|
|
|
|
|
|
|
|
| |
Immediately dismiss the pull-to-refresh effect when a pinch is detected,
preventing accidental activation.
BUG=435417
Review URL: https://codereview.chromium.org/736313003
Cr-Commit-Position: refs/heads/master@{#305249}
|
|
|
|
|
|
|
|
|
|
|
|
| |
Make the OverscrollRefresh effect take the target drag threshold as a
parameter. This isolates it from direct dependencies on the device scale
factor, making associated unit tests determnistics across all devices.
BUG=435125
Review URL: https://codereview.chromium.org/748433002
Cr-Commit-Position: refs/heads/master@{#305026}
|
|
|
|
|
|
|
|
|
|
|
|
| |
Modify pull-to-refresh drag movement, as well as the initial activation
animation, to more closely align with the default Android platform
effect.
BUG=428429
Review URL: https://codereview.chromium.org/733273004
Cr-Commit-Position: refs/heads/master@{#304931}
|
|
Add a restricted pull-to-refresh effect to Android. The effect is
triggered only when 1) the scroll starts when the page has no vertical
offset, 2) the scroll direction is upward and 3) the initial scroll
is not consumed by the page. Page reloads are triggered only when
the user pulls and releases beyond a certain threshold.
BUG=428429
Review URL: https://codereview.chromium.org/679493002
Cr-Commit-Position: refs/heads/master@{#304320}
|