| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 virtual void ShowPastePopup(int x, int y) OVERRIDE; | 59 virtual void ShowPastePopup(int x, int y) OVERRIDE; |
| 60 virtual void GetScaledContentBitmap( | 60 virtual void GetScaledContentBitmap( |
| 61 float scale, | 61 float scale, |
| 62 gfx::Size* out_size, | 62 gfx::Size* out_size, |
| 63 const base::Callback<void(bool, const SkBitmap&)>& result_callback) | 63 const base::Callback<void(bool, const SkBitmap&)>& result_callback) |
| 64 OVERRIDE; | 64 OVERRIDE; |
| 65 virtual float GetDpiScale() const OVERRIDE; | 65 virtual float GetDpiScale() const OVERRIDE; |
| 66 virtual void RequestContentClipping(const gfx::Rect& clipping, | 66 virtual void RequestContentClipping(const gfx::Rect& clipping, |
| 67 const gfx::Size& content_size) OVERRIDE; | 67 const gfx::Size& content_size) OVERRIDE; |
| 68 virtual void PauseVideo() OVERRIDE; | 68 virtual void PauseVideo() OVERRIDE; |
| 69 virtual void ResumeVideo() OVERRIDE; | |
| 70 virtual void PauseOrResumeGeolocation(bool should_pause) OVERRIDE; | 69 virtual void PauseOrResumeGeolocation(bool should_pause) OVERRIDE; |
| 71 | 70 |
| 72 // -------------------------------------------------------------------------- | 71 // -------------------------------------------------------------------------- |
| 73 // Methods called from Java via JNI | 72 // Methods called from Java via JNI |
| 74 // -------------------------------------------------------------------------- | 73 // -------------------------------------------------------------------------- |
| 75 | 74 |
| 76 base::android::ScopedJavaLocalRef<jobject> GetWebContentsAndroid(JNIEnv* env, | 75 base::android::ScopedJavaLocalRef<jobject> GetWebContentsAndroid(JNIEnv* env, |
| 77 jobject obj); | 76 jobject obj); |
| 78 | 77 |
| 79 void OnJavaContentViewCoreDestroyed(JNIEnv* env, jobject obj); | 78 void OnJavaContentViewCoreDestroyed(JNIEnv* env, jobject obj); |
| (...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 409 GestureEventPacket pending_gesture_packet_; | 408 GestureEventPacket pending_gesture_packet_; |
| 410 | 409 |
| 411 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); | 410 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); |
| 412 }; | 411 }; |
| 413 | 412 |
| 414 bool RegisterContentViewCore(JNIEnv* env); | 413 bool RegisterContentViewCore(JNIEnv* env); |
| 415 | 414 |
| 416 } // namespace content | 415 } // namespace content |
| 417 | 416 |
| 418 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ | 417 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ |
| OLD | NEW |