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

Issue 679493002: [Android] Add a native pull-to-refresh overscroll effect (Closed)

Created:
6 years, 2 months ago by jdduke (slow)
Modified:
6 years, 1 month 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
Project:
chromium
Visibility:
Public.

Description

[Android] Add a native pull-to-refresh overscroll effect 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 Committed: https://crrev.com/9db1b9d8f01028f3badc34a2f4f6ce63fda87247 Cr-Commit-Position: refs/heads/master@{#304320}

Patch Set 1 #

Patch Set 2 : Various tweaks #

Patch Set 3 : Proper assets #

Patch Set 4 : Boilerplate :( #

Patch Set 5 : Cleanup #

Patch Set 6 : Refactor #

Patch Set 7 : Add header #

Patch Set 8 : Tests! #

Total comments: 26

Patch Set 9 : Code review #

Total comments: 19

Patch Set 10 : Cleanup #

Patch Set 11 : Fix gn/aura compile #

Patch Set 12 : Rebase #

Patch Set 13 : Rebase #

Patch Set 14 : Move resources #

Patch Set 15 : Fix WebView #

Patch Set 16 : Fix lint #

Total comments: 2

Patch Set 17 : Change package to ui.base #

Patch Set 18 : Sigh, 3 different build configs, awesome #

Patch Set 19 : Really fix lint #

Patch Set 20 : Fix findbugs... #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1495 lines, -415 lines) Patch
M android_webview/java_library_common.mk View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +2 lines, -1 line 0 comments Download
M android_webview/libwebviewchromium.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -0 lines 0 comments Download
A content/browser/android/animation_utils.h View 1 2 3 4 5 6 1 chunk +33 lines, -0 lines 0 comments Download
M content/browser/android/browser_jni_registrar.cc View 1 2 3 3 chunks +6 lines, -2 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 2 chunks +2 lines, -2 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 2 chunks +3 lines, -3 lines 0 comments Download
M content/browser/android/edge_effect.cc View 1 2 3 4 5 5 chunks +7 lines, -31 lines 0 comments Download
M content/browser/android/edge_effect_l.cc View 1 2 3 4 5 2 chunks +2 lines, -23 lines 0 comments Download
A content/browser/android/overscroll_controller_android.h View 1 2 3 4 5 6 7 8 9 1 chunk +92 lines, -0 lines 0 comments Download
A content/browser/android/overscroll_controller_android.cc View 1 2 3 4 5 6 7 8 9 1 chunk +227 lines, -0 lines 0 comments Download
M content/browser/android/overscroll_glow.h View 1 2 3 4 5 6 7 8 9 2 chunks +15 lines, -23 lines 0 comments Download
M content/browser/android/overscroll_glow.cc View 1 2 8 chunks +45 lines, -56 lines 0 comments Download
A content/browser/android/overscroll_refresh.h View 1 2 3 4 5 6 7 8 9 1 chunk +103 lines, -0 lines 0 comments Download
A content/browser/android/overscroll_refresh.cc View 1 2 3 4 5 6 7 8 9 1 chunk +418 lines, -0 lines 0 comments Download
A content/browser/android/overscroll_refresh_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +261 lines, -0 lines 0 comments Download
M content/browser/android/system_ui_resource_manager_impl.h View 1 2 2 chunks +10 lines, -7 lines 0 comments Download
M content/browser/android/system_ui_resource_manager_impl.cc View 1 2 3 4 5 6 7 8 7 chunks +48 lines, -19 lines 0 comments Download
M content/browser/android/system_ui_resource_manager_impl_unittest.cc View 1 2 3 4 5 6 7 5 chunks +21 lines, -24 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 4 chunks +15 lines, -15 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 18 chunks +52 lines, -117 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +5 lines, -0 lines 0 comments Download
M content/content_jni.gypi View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M content/content_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
A content/public/android/java/res/drawable-hdpi/refresh_blue.png View 1 2 3 4 5 6 7 8 9 10 11 12 13 Binary file 0 comments Download
A content/public/android/java/res/drawable-hdpi/refresh_gray.png View 1 2 3 4 5 6 7 8 9 10 11 12 13 Binary file 0 comments Download
A + content/public/android/java/res/drawable-mdpi/refresh_blue.png View 1 2 3 4 5 6 7 8 9 10 11 12 13 Binary file 0 comments Download
A + content/public/android/java/res/drawable-mdpi/refresh_gray.png View 1 2 3 4 5 6 7 8 9 10 11 12 13 Binary file 0 comments Download
A content/public/android/java/res/drawable-xhdpi/refresh_blue.png View 1 2 3 4 5 6 7 8 9 10 11 12 13 Binary file 0 comments Download
A content/public/android/java/res/drawable-xhdpi/refresh_gray.png View 1 2 3 4 5 6 7 8 9 10 11 12 13 Binary file 0 comments Download
A content/public/android/java/res/drawable-xxhdpi/refresh_blue.png View 1 2 3 4 5 6 7 8 9 10 11 12 13 Binary file 0 comments Download
A content/public/android/java/res/drawable-xxhdpi/refresh_gray.png View 1 2 3 4 5 6 7 8 9 10 11 12 13 Binary file 0 comments Download
A content/public/android/java/res/drawable-xxxhdpi/refresh_blue.png View 1 2 3 4 5 6 7 8 9 10 11 12 13 Binary file 0 comments Download
A content/public/android/java/res/drawable-xxxhdpi/refresh_gray.png View 1 2 3 4 5 6 7 8 9 10 11 12 13 Binary file 0 comments Download
A content/public/android/java/src/org/chromium/content/browser/UIResources.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +84 lines, -0 lines 0 comments Download
M content/public/browser/android/content_view_core.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +1 line, -1 line 0 comments Download
M ui/android/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +2 lines, -0 lines 0 comments Download
M ui/android/java/src/org/chromium/ui/gfx/BitmapHelper.java View 1 2 2 chunks +0 lines, -53 lines 0 comments Download
M ui/android/ui_android.gyp View 1 2 2 chunks +9 lines, -0 lines 0 comments Download
M ui/base/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M ui/base/android/system_ui_resource_manager.h View 1 2 3 chunks +3 lines, -10 lines 0 comments Download
A ui/base/android/system_ui_resource_type.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +24 lines, -0 lines 0 comments Download
M ui/base/ui_base.gyp View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M ui/gfx/android/java_bitmap.h View 1 2 1 chunk +0 lines, -7 lines 0 comments Download
M ui/gfx/android/java_bitmap.cc View 1 2 2 chunks +0 lines, -21 lines 0 comments Download

Messages

Total messages: 39 (12 generated)
jdduke (slow)
PTAL, thanks. tedchoc@: ui/base/android, content/public/android and content/browser/android (in the last directory, particularly overscroll_controller_android* and overscroll_refresh*, ...
6 years, 1 month ago (2014-10-30 00:03:12 UTC) #2
jdduke (slow)
On 2014/10/30 00:03:12, jdduke wrote: > PTAL, thanks. > > tedchoc@: ui/base/android, content/public/android and content/browser/android ...
6 years, 1 month ago (2014-10-30 00:05:18 UTC) #3
aelias_OOO_until_Jul13
https://codereview.chromium.org/679493002/diff/140001/content/browser/android/overscroll_controller_android.cc File content/browser/android/overscroll_controller_android.cc (right): https://codereview.chromium.org/679493002/diff/140001/content/browser/android/overscroll_controller_android.cc#newcode93 content/browser/android/overscroll_controller_android.cc:93: // TODO(jdduke): Figure out a cleaner way of suppressing ...
6 years, 1 month ago (2014-10-30 03:53:22 UTC) #4
jdduke (slow)
https://codereview.chromium.org/679493002/diff/140001/content/browser/android/overscroll_controller_android.cc File content/browser/android/overscroll_controller_android.cc (right): https://codereview.chromium.org/679493002/diff/140001/content/browser/android/overscroll_controller_android.cc#newcode93 content/browser/android/overscroll_controller_android.cc:93: // TODO(jdduke): Figure out a cleaner way of suppressing ...
6 years, 1 month ago (2014-10-30 15:19:02 UTC) #5
Ted C
overall this seems very reasonable to me. some small nits but nothing major https://codereview.chromium.org/679493002/diff/140001/content/browser/android/overscroll_controller_android.cc File ...
6 years, 1 month ago (2014-10-31 23:52:06 UTC) #6
jdduke (slow)
https://codereview.chromium.org/679493002/diff/140001/content/browser/android/overscroll_controller_android.cc File content/browser/android/overscroll_controller_android.cc (right): https://codereview.chromium.org/679493002/diff/140001/content/browser/android/overscroll_controller_android.cc#newcode113 content/browser/android/overscroll_controller_android.cc:113: content_view_core_->SetNeedsAnimate(); On 2014/10/31 23:52:05, Ted C wrote: > I ...
6 years, 1 month ago (2014-11-06 00:10:37 UTC) #7
Ted C
lgtm -- nothing major left from me https://codereview.chromium.org/679493002/diff/140001/content/browser/android/overscroll_controller_android.cc File content/browser/android/overscroll_controller_android.cc (right): https://codereview.chromium.org/679493002/diff/140001/content/browser/android/overscroll_controller_android.cc#newcode113 content/browser/android/overscroll_controller_android.cc:113: content_view_core_->SetNeedsAnimate(); On ...
6 years, 1 month ago (2014-11-06 19:25:40 UTC) #8
aelias_OOO_until_Jul13
lgtm, since almost all my comments below are just code/terminology clarity. https://codereview.chromium.org/679493002/diff/160001/content/browser/android/overscroll_refresh.cc File content/browser/android/overscroll_refresh.cc (right): ...
6 years, 1 month ago (2014-11-06 22:28:49 UTC) #9
jdduke (slow)
https://codereview.chromium.org/679493002/diff/140001/content/browser/android/overscroll_controller_android.cc File content/browser/android/overscroll_controller_android.cc (right): https://codereview.chromium.org/679493002/diff/140001/content/browser/android/overscroll_controller_android.cc#newcode113 content/browser/android/overscroll_controller_android.cc:113: content_view_core_->SetNeedsAnimate(); On 2014/11/06 19:25:40, Ted C wrote: > On ...
6 years, 1 month ago (2014-11-07 18:33:45 UTC) #10
jdduke (slow)
+sadrul for ui/base/BUILD.gn and ui/base/ui_base.gyp.
6 years, 1 month ago (2014-11-07 18:37:13 UTC) #12
sadrul
said files lgtm
6 years, 1 month ago (2014-11-07 20:37:01 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/679493002/240001
6 years, 1 month ago (2014-11-14 17:08:40 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_dbg on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_chromium_gn_compile_dbg/builds/17217)
6 years, 1 month ago (2014-11-14 17:19:32 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/679493002/260001
6 years, 1 month ago (2014-11-14 17:42:45 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: android_aosp on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_aosp/builds/33471)
6 years, 1 month ago (2014-11-14 18:09:44 UTC) #21
jdduke (slow)
+boliu@ for android_webview/ review.
6 years, 1 month ago (2014-11-14 18:28:01 UTC) #23
boliu
https://codereview.chromium.org/679493002/diff/300001/android_webview/java_library_common.mk File android_webview/java_library_common.mk (right): https://codereview.chromium.org/679493002/diff/300001/android_webview/java_library_common.mk#newcode66 android_webview/java_library_common.mk:66: $(call intermediates-dir-for,GYP,shared)/enums/system_ui_resource_type_java/org/chromium/ui/SystemUIResourceType.java \ Following the pattern above, seems you ...
6 years, 1 month ago (2014-11-14 18:49:24 UTC) #24
jdduke (slow)
https://codereview.chromium.org/679493002/diff/300001/android_webview/java_library_common.mk File android_webview/java_library_common.mk (right): https://codereview.chromium.org/679493002/diff/300001/android_webview/java_library_common.mk#newcode66 android_webview/java_library_common.mk:66: $(call intermediates-dir-for,GYP,shared)/enums/system_ui_resource_type_java/org/chromium/ui/SystemUIResourceType.java \ On 2014/11/14 18:49:24, boliu wrote: > ...
6 years, 1 month ago (2014-11-14 18:57:54 UTC) #25
jdduke (slow)
On 2014/11/14 18:57:54, jdduke wrote: > https://codereview.chromium.org/679493002/diff/300001/android_webview/java_library_common.mk > File android_webview/java_library_common.mk (right): > > https://codereview.chromium.org/679493002/diff/300001/android_webview/java_library_common.mk#newcode66 > ...
6 years, 1 month ago (2014-11-14 19:05:13 UTC) #26
boliu
lgtm
6 years, 1 month ago (2014-11-14 19:07:40 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/679493002/320001
6 years, 1 month ago (2014-11-14 19:10:10 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_rel on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_chromium_gn_compile_rel/builds/34042)
6 years, 1 month ago (2014-11-14 19:15:50 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/679493002/340001
6 years, 1 month ago (2014-11-14 19:21:15 UTC) #33
commit-bot: I haz the power
Try jobs failed on following builders: android_clang_dbg_recipe on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_clang_dbg_recipe/builds/22315) android_dbg_tests_recipe on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_dbg_tests_recipe/builds/28470)
6 years, 1 month ago (2014-11-14 20:04:35 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/679493002/380001
6 years, 1 month ago (2014-11-14 22:43:13 UTC) #37
commit-bot: I haz the power
Committed patchset #20 (id:380001)
6 years, 1 month ago (2014-11-15 00:50:06 UTC) #38
commit-bot: I haz the power
6 years, 1 month ago (2014-11-15 00:50:39 UTC) #39
Message was sent while issue was closed.
Patchset 20 (id:??) landed as
https://crrev.com/9db1b9d8f01028f3badc34a2f4f6ce63fda87247
Cr-Commit-Position: refs/heads/master@{#304320}

Powered by Google App Engine
This is Rietveld 408576698