Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(531)

Issue 894193005: [Android] Use the platform SwipeRefreshLayout (Closed)

Created:
5 years, 10 months ago by jdduke (slow)
Modified:
5 years, 8 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam, nona+watch_chromium.org, penghuang+watch_chromium.org, James Su, yukishiino+watch_chromium.org, yusukes+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Android] Use the platform SwipeRefreshLayout 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 Committed: https://crrev.com/b003775553a0b51cbbd8bd25a5b9c4a27f46550c Cr-Commit-Position: refs/heads/master@{#325172}

Patch Set 1 #

Patch Set 2 : Updates #

Patch Set 3 : Updates #

Patch Set 4 : Rebase #

Patch Set 5 : Cleanup #

Patch Set 6 : Cleanup #

Patch Set 7 : Rebase, tweak offset #

Patch Set 8 : On-demand attachment #

Patch Set 9 : Cleanup #

Patch Set 10 : Fix GN #

Total comments: 1

Patch Set 11 : Rebase #

Patch Set 12 : Rebase #

Patch Set 13 : Add tracing #

Patch Set 14 : Disable LARGE layouts #

Total comments: 3

Patch Set 15 : Rebase #

Patch Set 16 : Cleanup for Chrome #

Patch Set 17 : Fix findbugs #

Patch Set 18 : Rebase #

Patch Set 19 : Final fix #

Patch Set 20 : rebase #

Patch Set 21 : Remove unused resources #

Patch Set 22 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+761 lines, -2951 lines) Patch
M chrome/android/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -0 lines 0 comments Download
A chrome/android/java/src/org/chromium/chrome/browser/SwipeRefreshHandler.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +164 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/Tab.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 4 chunks +13 lines, -0 lines 0 comments Download
M chrome/android/java/strings/android_chrome_strings.grd View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +6 lines, -1 line 0 comments Download
M chrome/chrome.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/android/content_view_core_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 3 chunks +8 lines, -0 lines 0 comments Download
M content/browser/android/content_view_core_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +31 lines, -0 lines 0 comments Download
M content/browser/android/overscroll_controller_android.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 3 chunks +4 lines, -12 lines 0 comments Download
M content/browser/android/overscroll_controller_android.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 12 chunks +20 lines, -68 lines 0 comments Download
M content/browser/android/overscroll_glow.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +3 lines, -3 lines 0 comments Download
M content/browser/android/overscroll_glow.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
M content/browser/android/overscroll_refresh.h View 1 2 3 4 6 chunks +28 lines, -45 lines 0 comments Download
M content/browser/android/overscroll_refresh.cc View 1 2 3 4 5 6 7 8 9 10 5 chunks +19 lines, -429 lines 0 comments Download
M content/browser/android/overscroll_refresh_unittest.cc View 1 2 3 1 chunk +157 lines, -230 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +2 lines, -10 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 4 chunks +38 lines, -0 lines 0 comments Download
A content/public/android/java/src/org/chromium/content/browser/OverscrollRefreshHandler.java View 1 2 3 4 5 1 chunk +40 lines, -0 lines 0 comments Download
M third_party/android_swipe_refresh/BUILD.gn View 1 2 3 4 5 6 1 chunk +0 lines, -3 lines 0 comments Download
M third_party/android_swipe_refresh/README.chromium View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +9 lines, -2 lines 0 comments Download
M third_party/android_swipe_refresh/android_swipe_refresh.gyp View 1 2 3 4 5 6 1 chunk +0 lines, -3 lines 0 comments Download
M third_party/android_swipe_refresh/java/src/chromium/third_party/android/swiperefresh/CircleImageView.java View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -153 lines 0 comments Download
M third_party/android_swipe_refresh/java/src/chromium/third_party/android/swiperefresh/MaterialProgressDrawable.java View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -723 lines 0 comments Download
M third_party/android_swipe_refresh/java/src/chromium/third_party/android/swiperefresh/SwipeRefreshLayout.java View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -923 lines 0 comments Download
A + third_party/android_swipe_refresh/java/src/org/chromium/third_party/android/swiperefresh/CircleImageView.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 5 chunks +28 lines, -17 lines 0 comments Download
A + third_party/android_swipe_refresh/java/src/org/chromium/third_party/android/swiperefresh/MaterialProgressDrawable.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 9 chunks +21 lines, -10 lines 0 comments Download
A + third_party/android_swipe_refresh/java/src/org/chromium/third_party/android/swiperefresh/SwipeRefreshLayout.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 18 chunks +167 lines, -309 lines 0 comments Download
D ui/android/java/res/drawable-hdpi/refresh_blue.png View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Binary file 0 comments Download
D ui/android/java/res/drawable-hdpi/refresh_gray.png View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Binary file 0 comments Download
D ui/android/java/res/drawable-mdpi/refresh_blue.png View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Binary file 0 comments Download
D ui/android/java/res/drawable-mdpi/refresh_gray.png View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Binary file 0 comments Download
D ui/android/java/res/drawable-xhdpi/refresh_blue.png View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Binary file 0 comments Download
D ui/android/java/res/drawable-xhdpi/refresh_gray.png View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Binary file 0 comments Download
D ui/android/java/res/drawable-xxhdpi/refresh_blue.png View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Binary file 0 comments Download
D ui/android/java/res/drawable-xxhdpi/refresh_gray.png View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Binary file 0 comments Download
D ui/android/java/res/drawable-xxxhdpi/refresh_blue.png View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Binary file 0 comments Download
D ui/android/java/res/drawable-xxxhdpi/refresh_gray.png View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Binary file 0 comments Download
M ui/android/java/src/org/chromium/ui/resources/system/SystemResourceLoader.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +0 lines, -7 lines 0 comments Download
M ui/android/resources/system_ui_resource_type.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 21 (5 generated)
jdduke (slow)
Here's the fun. If you gentlemen could take a look at the following: aurimas@: content/browser/android ...
5 years, 9 months ago (2015-03-20 17:02:08 UTC) #2
jdduke (slow)
OK, I've tested this on N7, N7v2, GN, N4, N5, N9, HTC One M8, and ...
5 years, 9 months ago (2015-03-25 20:08:16 UTC) #3
aurimas (slooooooooow)
It looks reasonable to me, but I think Ted should have a pass over this ...
5 years, 9 months ago (2015-03-26 20:25:26 UTC) #4
jdduke (slow)
https://codereview.chromium.org/894193005/diff/260001/third_party/android_swipe_refresh/java/src/org/chromium/third_party/android/swiperefresh/SwipeRefreshLayout.java File third_party/android_swipe_refresh/java/src/org/chromium/third_party/android/swiperefresh/SwipeRefreshLayout.java (right): https://codereview.chromium.org/894193005/diff/260001/third_party/android_swipe_refresh/java/src/org/chromium/third_party/android/swiperefresh/SwipeRefreshLayout.java#newcode182 third_party/android_swipe_refresh/java/src/org/chromium/third_party/android/swiperefresh/SwipeRefreshLayout.java:182: private static final boolean IS_CHROME_BUILD = true; On 2015/03/26 ...
5 years, 9 months ago (2015-03-26 20:30:10 UTC) #5
jdduke (slow)
https://codereview.chromium.org/894193005/diff/260001/third_party/android_swipe_refresh/java/src/org/chromium/third_party/android/swiperefresh/SwipeRefreshLayout.java File third_party/android_swipe_refresh/java/src/org/chromium/third_party/android/swiperefresh/SwipeRefreshLayout.java (right): https://codereview.chromium.org/894193005/diff/260001/third_party/android_swipe_refresh/java/src/org/chromium/third_party/android/swiperefresh/SwipeRefreshLayout.java#newcode684 third_party/android_swipe_refresh/java/src/org/chromium/third_party/android/swiperefresh/SwipeRefreshLayout.java:684: public boolean onTouchEvent(MotionEvent ev) { What I might do ...
5 years, 9 months ago (2015-03-27 20:15:15 UTC) #6
Ted C
On 2015/03/27 20:15:15, jdduke wrote: > https://codereview.chromium.org/894193005/diff/260001/third_party/android_swipe_refresh/java/src/org/chromium/third_party/android/swiperefresh/SwipeRefreshLayout.java > File > third_party/android_swipe_refresh/java/src/org/chromium/third_party/android/swiperefresh/SwipeRefreshLayout.java > (right): > > ...
5 years, 8 months ago (2015-04-02 00:58:46 UTC) #7
jdduke (slow)
Ted, anybody you'd feel comfortable reviewing this while you're gone? I'm also happy to wait. ...
5 years, 8 months ago (2015-04-10 22:21:26 UTC) #8
Ted C
On 2015/04/10 22:21:26, jdduke wrote: > Ted, anybody you'd feel comfortable reviewing this while you're ...
5 years, 8 months ago (2015-04-10 22:40:19 UTC) #9
jdduke (slow)
OK aurimas@, anything else you'd like to see here? +aelias for content/browser/renderer_host +sky for chrome/chrome.gyp ...
5 years, 8 months ago (2015-04-13 19:09:14 UTC) #11
David Trainor- moved to gerrit
chrome/android/java lgtm
5 years, 8 months ago (2015-04-13 19:37:44 UTC) #12
sky
LGTM
5 years, 8 months ago (2015-04-13 19:38:55 UTC) #13
aelias_OOO_until_Jul13
renderer_host lgtm
5 years, 8 months ago (2015-04-13 20:02:41 UTC) #15
aurimas (slooooooooow)
LGTM, all the Java code looks reasonable to me.
5 years, 8 months ago (2015-04-14 21:59:36 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/894193005/430001
5 years, 8 months ago (2015-04-15 00:57:38 UTC) #19
commit-bot: I haz the power
Committed patchset #22 (id:430001)
5 years, 8 months ago (2015-04-15 01:55:19 UTC) #20
commit-bot: I haz the power
5 years, 8 months ago (2015-04-15 01:56:36 UTC) #21
Message was sent while issue was closed.
Patchset 22 (id:??) landed as
https://crrev.com/b003775553a0b51cbbd8bd25a5b9c4a27f46550c
Cr-Commit-Position: refs/heads/master@{#325172}

Powered by Google App Engine
This is Rietveld 408576698