| 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 198 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  209                               bool enable_showing, |  209                               bool enable_showing, | 
|  210                               bool animate); |  210                               bool animate); | 
|  211   void ShowImeIfNeeded(JNIEnv* env, jobject obj); |  211   void ShowImeIfNeeded(JNIEnv* env, jobject obj); | 
|  212  |  212  | 
|  213   void ShowInterstitialPage(JNIEnv* env, |  213   void ShowInterstitialPage(JNIEnv* env, | 
|  214                             jobject obj, |  214                             jobject obj, | 
|  215                             jstring jurl, |  215                             jstring jurl, | 
|  216                             jint delegate); |  216                             jint delegate); | 
|  217   jboolean IsShowingInterstitialPage(JNIEnv* env, jobject obj); |  217   jboolean IsShowingInterstitialPage(JNIEnv* env, jobject obj); | 
|  218  |  218  | 
|  219   void AttachExternalVideoSurface(JNIEnv* env, |  | 
|  220                                   jobject obj, |  | 
|  221                                   jint player_id, |  | 
|  222                                   jobject jsurface); |  | 
|  223   void DetachExternalVideoSurface(JNIEnv* env, jobject obj, jint player_id); |  | 
|  224   void SetAccessibilityEnabled(JNIEnv* env, jobject obj, bool enabled); |  219   void SetAccessibilityEnabled(JNIEnv* env, jobject obj, bool enabled); | 
|  225   void SendActionAfterDoubleTapUma(JNIEnv* env, |  220   void SendActionAfterDoubleTapUma(JNIEnv* env, | 
|  226                                    jobject obj, |  221                                    jobject obj, | 
|  227                                    jint type, |  222                                    jint type, | 
|  228                                    jboolean has_delay, |  223                                    jboolean has_delay, | 
|  229                                    jint count); |  224                                    jint count); | 
|  230   void SendSingleTapUma(JNIEnv* env, jobject obj, jint type, jint count); |  225   void SendSingleTapUma(JNIEnv* env, jobject obj, jint type, jint count); | 
|  231  |  226  | 
|  232   void ExtractSmartClipData(JNIEnv* env, |  227   void ExtractSmartClipData(JNIEnv* env, | 
|  233                             jobject obj, |  228                             jobject obj, | 
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  283   // Shows the disambiguation popup |  278   // Shows the disambiguation popup | 
|  284   // |target_rect|   --> window coordinates which |zoomed_bitmap| represents |  279   // |target_rect|   --> window coordinates which |zoomed_bitmap| represents | 
|  285   // |zoomed_bitmap| --> magnified image of potential touch targets |  280   // |zoomed_bitmap| --> magnified image of potential touch targets | 
|  286   void ShowDisambiguationPopup( |  281   void ShowDisambiguationPopup( | 
|  287       const gfx::Rect& target_rect, const SkBitmap& zoomed_bitmap); |  282       const gfx::Rect& target_rect, const SkBitmap& zoomed_bitmap); | 
|  288  |  283  | 
|  289   // Creates a java-side touch event, used for injecting touch event for |  284   // Creates a java-side touch event, used for injecting touch event for | 
|  290   // testing/benchmarking purposes |  285   // testing/benchmarking purposes | 
|  291   base::android::ScopedJavaLocalRef<jobject> CreateTouchEventSynthesizer(); |  286   base::android::ScopedJavaLocalRef<jobject> CreateTouchEventSynthesizer(); | 
|  292  |  287  | 
|  293   // Notifies the java object about the external surface, requesting for one if |  | 
|  294   // necessary. |  | 
|  295   void NotifyExternalSurface( |  | 
|  296       int player_id, bool is_request, const gfx::RectF& rect); |  | 
|  297  |  | 
|  298   base::android::ScopedJavaLocalRef<jobject> GetContentVideoViewClient(); |  288   base::android::ScopedJavaLocalRef<jobject> GetContentVideoViewClient(); | 
|  299  |  289  | 
|  300   // Returns the context that the ContentViewCore was created with, it would |  290   // Returns the context that the ContentViewCore was created with, it would | 
|  301   // typically be an Activity context for an on screen view. |  291   // typically be an Activity context for an on screen view. | 
|  302   base::android::ScopedJavaLocalRef<jobject> GetContext(); |  292   base::android::ScopedJavaLocalRef<jobject> GetContext(); | 
|  303  |  293  | 
|  304   // Returns True if the given media should be blocked to load. |  294   // Returns True if the given media should be blocked to load. | 
|  305   bool ShouldBlockMediaRequest(const GURL& url); |  295   bool ShouldBlockMediaRequest(const GURL& url); | 
|  306  |  296  | 
|  307   void DidStopFlinging(); |  297   void DidStopFlinging(); | 
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  408   GestureEventPacket pending_gesture_packet_; |  398   GestureEventPacket pending_gesture_packet_; | 
|  409  |  399  | 
|  410   DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); |  400   DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); | 
|  411 }; |  401 }; | 
|  412  |  402  | 
|  413 bool RegisterContentViewCore(JNIEnv* env); |  403 bool RegisterContentViewCore(JNIEnv* env); | 
|  414  |  404  | 
|  415 }  // namespace content |  405 }  // namespace content | 
|  416  |  406  | 
|  417 #endif  // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ |  407 #endif  // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ | 
| OLD | NEW |