OLD | NEW |
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_helper.h" | 10 #include "base/android/jni_helper.h" |
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
187 jobject retained_object_set); | 187 jobject retained_object_set); |
188 void RemoveJavascriptInterface(JNIEnv* env, jobject obj, jstring name); | 188 void RemoveJavascriptInterface(JNIEnv* env, jobject obj, jstring name); |
189 int GetNavigationHistory(JNIEnv* env, jobject obj, jobject context); | 189 int GetNavigationHistory(JNIEnv* env, jobject obj, jobject context); |
190 void GetDirectedNavigationHistory(JNIEnv* env, | 190 void GetDirectedNavigationHistory(JNIEnv* env, |
191 jobject obj, | 191 jobject obj, |
192 jobject context, | 192 jobject context, |
193 jboolean is_forward, | 193 jboolean is_forward, |
194 jint max_entries); | 194 jint max_entries); |
195 void UpdateVSyncParameters(JNIEnv* env, jobject obj, jlong timebase_micros, | 195 void UpdateVSyncParameters(JNIEnv* env, jobject obj, jlong timebase_micros, |
196 jlong interval_micros); | 196 jlong interval_micros); |
| 197 void SendVSync(JNIEnv* env, jobject /* obj */, jlong frame_time_micros); |
197 jboolean PopulateBitmapFromCompositor(JNIEnv* env, | 198 jboolean PopulateBitmapFromCompositor(JNIEnv* env, |
198 jobject obj, | 199 jobject obj, |
199 jobject jbitmap); | 200 jobject jbitmap); |
200 void WasResized(JNIEnv* env, jobject obj); | 201 void WasResized(JNIEnv* env, jobject obj); |
201 jboolean IsRenderWidgetHostViewReady(JNIEnv* env, jobject obj); | 202 jboolean IsRenderWidgetHostViewReady(JNIEnv* env, jobject obj); |
202 void ExitFullscreen(JNIEnv* env, jobject obj); | 203 void ExitFullscreen(JNIEnv* env, jobject obj); |
203 void EnableHidingTopControls(JNIEnv* env, jobject obj, bool enable); | 204 void EnableHidingTopControls(JNIEnv* env, jobject obj, bool enable); |
204 void ShowImeIfNeeded(JNIEnv* env, jobject obj); | 205 void ShowImeIfNeeded(JNIEnv* env, jobject obj); |
205 | 206 |
206 void ShowInterstitialPage(JNIEnv* env, | 207 void ShowInterstitialPage(JNIEnv* env, |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
274 gfx::Size GetPhysicalBackingSize() const; | 275 gfx::Size GetPhysicalBackingSize() const; |
275 gfx::Size GetViewportSizeDip() const; | 276 gfx::Size GetViewportSizeDip() const; |
276 gfx::Size GetViewportSizeOffsetDip() const; | 277 gfx::Size GetViewportSizeOffsetDip() const; |
277 float GetOverdrawBottomHeightDip() const; | 278 float GetOverdrawBottomHeightDip() const; |
278 | 279 |
279 InputEventAckState FilterInputEvent(const WebKit::WebInputEvent& input_event); | 280 InputEventAckState FilterInputEvent(const WebKit::WebInputEvent& input_event); |
280 | 281 |
281 void AttachLayer(scoped_refptr<cc::Layer> layer); | 282 void AttachLayer(scoped_refptr<cc::Layer> layer); |
282 void RemoveLayer(scoped_refptr<cc::Layer> layer); | 283 void RemoveLayer(scoped_refptr<cc::Layer> layer); |
283 void DidProduceRendererFrame(); | 284 void DidProduceRendererFrame(); |
| 285 void SetVSyncNotificationEnabled(bool enabled); |
284 | 286 |
285 private: | 287 private: |
286 class ContentViewUserData; | 288 class ContentViewUserData; |
287 | 289 |
288 friend class ContentViewUserData; | 290 friend class ContentViewUserData; |
289 virtual ~ContentViewCoreImpl(); | 291 virtual ~ContentViewCoreImpl(); |
290 | 292 |
291 // NotificationObserver implementation. | 293 // NotificationObserver implementation. |
292 virtual void Observe(int type, | 294 virtual void Observe(int type, |
293 const NotificationSource& source, | 295 const NotificationSource& source, |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
350 scoped_ptr<SyncInputEventFilter> input_event_filter_; | 352 scoped_ptr<SyncInputEventFilter> input_event_filter_; |
351 | 353 |
352 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); | 354 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); |
353 }; | 355 }; |
354 | 356 |
355 bool RegisterContentViewCore(JNIEnv* env); | 357 bool RegisterContentViewCore(JNIEnv* env); |
356 | 358 |
357 } // namespace content | 359 } // namespace content |
358 | 360 |
359 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ | 361 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ |
OLD | NEW |