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

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

Issue 14268004: Add overscroll edge effect animations for Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase + CR. Avoid round-trip animation requests on animate(). Created 7 years, 7 months 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.h
diff --git a/content/browser/android/content_view_core_impl.h b/content/browser/android/content_view_core_impl.h
index 0c311a63eb682d8597127e1662df336f88afcb40..e4c9547c198f6ac3f178996040a2b2ad0d8875b4 100644
--- a/content/browser/android/content_view_core_impl.h
+++ b/content/browser/android/content_view_core_impl.h
@@ -199,6 +199,7 @@ class ContentViewCoreImpl : public ContentViewCore,
void UpdateVSyncParameters(JNIEnv* env, jobject obj, jlong timebase_micros,
jlong interval_micros);
void OnVSync(JNIEnv* env, jobject /* obj */, jlong frame_time_micros);
+ jboolean Animate(JNIEnv* env, jobject /* obj */, jlong frame_time_micros);
no sievers 2013/05/13 18:38:24 Hmm, why 'frame_time_micros'? Maybe just 'monotoni
jdduke (slow) 2013/05/13 20:44:24 This was primarily for consistency with the *VSync
jboolean PopulateBitmapFromCompositor(JNIEnv* env,
jobject obj,
jobject jbitmap);
@@ -296,6 +297,7 @@ class ContentViewCoreImpl : public ContentViewCore,
void AttachLayer(scoped_refptr<cc::Layer> layer);
void RemoveLayer(scoped_refptr<cc::Layer> layer);
void SetVSyncNotificationEnabled(bool enabled);
+ void SetNeedsAnimate();
private:
enum InputEventVSyncStatus {

Powered by Google App Engine
This is Rietveld 408576698