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

Unified Diff: content/browser/android/content_view_core_impl.cc

Issue 2528823002: Separate SwipeRefreshHandler and ContentViewCore (Closed)
Patch Set: tedchoc's requested changes Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/android/content_view_core_impl.cc
diff --git a/content/browser/android/content_view_core_impl.cc b/content/browser/android/content_view_core_impl.cc
index ca16252ba2a6e551b374bc18b11bee7e602035b4..458e67f8a13ca6d5b70a622b0a703960b20838ba 100644
--- a/content/browser/android/content_view_core_impl.cc
+++ b/content/browser/android/content_view_core_impl.cc
@@ -1548,36 +1548,6 @@ void ContentViewCoreImpl::WebContentsDestroyed() {
wcva->SetContentViewCore(NULL);
}
-bool ContentViewCoreImpl::PullStart() {
- JNIEnv* env = AttachCurrentThread();
- ScopedJavaLocalRef<jobject> obj = java_ref_.get(env);
- if (!obj.is_null())
- return Java_ContentViewCore_onOverscrollRefreshStart(env, obj);
- return false;
-}
-
-void ContentViewCoreImpl::PullUpdate(float delta) {
- JNIEnv* env = AttachCurrentThread();
- ScopedJavaLocalRef<jobject> obj = java_ref_.get(env);
- if (!obj.is_null())
- Java_ContentViewCore_onOverscrollRefreshUpdate(env, obj, delta);
-}
-
-void ContentViewCoreImpl::PullRelease(bool allow_refresh) {
- JNIEnv* env = AttachCurrentThread();
- ScopedJavaLocalRef<jobject> obj = java_ref_.get(env);
- if (!obj.is_null()) {
- Java_ContentViewCore_onOverscrollRefreshRelease(env, obj, allow_refresh);
- }
-}
-
-void ContentViewCoreImpl::PullReset() {
- JNIEnv* env = AttachCurrentThread();
- ScopedJavaLocalRef<jobject> obj = java_ref_.get(env);
- if (!obj.is_null())
- Java_ContentViewCore_onOverscrollRefreshReset(env, obj);
-}
-
// This is called for each ContentView.
jlong Init(JNIEnv* env,
const JavaParamRef<jobject>& obj,
« no previous file with comments | « content/browser/android/content_view_core_impl.h ('k') | content/browser/android/overscroll_controller_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698