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

Side by Side 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 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ 5 #ifndef CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_
6 #define CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ 6 #define CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/android/jni_android.h" 10 #include "base/android/jni_android.h"
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 void GetDirectedNavigationHistory(JNIEnv* env, 190 void GetDirectedNavigationHistory(JNIEnv* env,
191 jobject obj, 191 jobject obj,
192 jobject history, 192 jobject history,
193 jboolean is_forward, 193 jboolean is_forward,
194 jint max_entries); 194 jint max_entries);
195 base::android::ScopedJavaLocalRef<jstring> 195 base::android::ScopedJavaLocalRef<jstring>
196 GetOriginalUrlForActiveNavigationEntry(JNIEnv* env, jobject obj); 196 GetOriginalUrlForActiveNavigationEntry(JNIEnv* env, jobject obj);
197 void UpdateVSyncParameters(JNIEnv* env, jobject obj, jlong timebase_micros, 197 void UpdateVSyncParameters(JNIEnv* env, jobject obj, jlong timebase_micros,
198 jlong interval_micros); 198 jlong interval_micros);
199 void OnVSync(JNIEnv* env, jobject /* obj */, jlong frame_time_micros); 199 void OnVSync(JNIEnv* env, jobject /* obj */, jlong frame_time_micros);
200 void Animate(JNIEnv* env, jobject /* obj */, jlong frame_time_micros);
200 jboolean PopulateBitmapFromCompositor(JNIEnv* env, 201 jboolean PopulateBitmapFromCompositor(JNIEnv* env,
201 jobject obj, 202 jobject obj,
202 jobject jbitmap); 203 jobject jbitmap);
203 void WasResized(JNIEnv* env, jobject obj); 204 void WasResized(JNIEnv* env, jobject obj);
204 jboolean IsRenderWidgetHostViewReady(JNIEnv* env, jobject obj); 205 jboolean IsRenderWidgetHostViewReady(JNIEnv* env, jobject obj);
205 void ExitFullscreen(JNIEnv* env, jobject obj); 206 void ExitFullscreen(JNIEnv* env, jobject obj);
206 void UpdateTopControlsState(JNIEnv* env, 207 void UpdateTopControlsState(JNIEnv* env,
207 jobject obj, 208 jobject obj,
208 bool enable_hiding, 209 bool enable_hiding,
209 bool enable_showing, 210 bool enable_showing,
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 gfx::Size GetPhysicalBackingSize() const; 288 gfx::Size GetPhysicalBackingSize() const;
288 gfx::Size GetViewportSizeDip() const; 289 gfx::Size GetViewportSizeDip() const;
289 gfx::Size GetViewportSizeOffsetDip() const; 290 gfx::Size GetViewportSizeOffsetDip() const;
290 float GetOverdrawBottomHeightDip() const; 291 float GetOverdrawBottomHeightDip() const;
291 292
292 InputEventAckState FilterInputEvent(const WebKit::WebInputEvent& input_event); 293 InputEventAckState FilterInputEvent(const WebKit::WebInputEvent& input_event);
293 294
294 void AttachLayer(scoped_refptr<cc::Layer> layer); 295 void AttachLayer(scoped_refptr<cc::Layer> layer);
295 void RemoveLayer(scoped_refptr<cc::Layer> layer); 296 void RemoveLayer(scoped_refptr<cc::Layer> layer);
296 void SetVSyncNotificationEnabled(bool enabled); 297 void SetVSyncNotificationEnabled(bool enabled);
298 void SetNeedsAnimate();
297 299
298 private: 300 private:
299 enum InputEventVSyncStatus { 301 enum InputEventVSyncStatus {
300 NOT_LAST_INPUT_EVENT_FOR_VSYNC, 302 NOT_LAST_INPUT_EVENT_FOR_VSYNC,
301 LAST_INPUT_EVENT_FOR_VSYNC 303 LAST_INPUT_EVENT_FOR_VSYNC
302 }; 304 };
303 305
304 class ContentViewUserData; 306 class ContentViewUserData;
305 307
306 friend class ContentViewUserData; 308 friend class ContentViewUserData;
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
363 scoped_ptr<SyncInputEventFilter> input_event_filter_; 365 scoped_ptr<SyncInputEventFilter> input_event_filter_;
364 366
365 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); 367 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl);
366 }; 368 };
367 369
368 bool RegisterContentViewCore(JNIEnv* env); 370 bool RegisterContentViewCore(JNIEnv* env);
369 371
370 } // namespace content 372 } // namespace content
371 373
372 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ 374 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698