| 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 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 230 InputEventAckState ack_result); | 230 InputEventAckState ack_result); |
| 231 bool FilterInputEvent(const blink::WebInputEvent& event); | 231 bool FilterInputEvent(const blink::WebInputEvent& event); |
| 232 void OnSelectionChanged(const std::string& text); | 232 void OnSelectionChanged(const std::string& text); |
| 233 void OnSelectionEvent(SelectionEventType event, | 233 void OnSelectionEvent(SelectionEventType event, |
| 234 const gfx::PointF& anchor_position); | 234 const gfx::PointF& anchor_position); |
| 235 scoped_ptr<TouchHandleDrawable> CreatePopupTouchHandleDrawable(); | 235 scoped_ptr<TouchHandleDrawable> CreatePopupTouchHandleDrawable(); |
| 236 | 236 |
| 237 void StartContentIntent(const GURL& content_url); | 237 void StartContentIntent(const GURL& content_url); |
| 238 | 238 |
| 239 // Shows the disambiguation popup | 239 // Shows the disambiguation popup |
| 240 // |target_rect| --> window coordinates which |zoomed_bitmap| represents | 240 // |rect_pixels| --> window coordinates which |zoomed_bitmap| represents |
| 241 // |zoomed_bitmap| --> magnified image of potential touch targets | 241 // |zoomed_bitmap| --> magnified image of potential touch targets |
| 242 void ShowDisambiguationPopup( | 242 void ShowDisambiguationPopup( |
| 243 const gfx::Rect& target_rect, const SkBitmap& zoomed_bitmap); | 243 const gfx::Rect& rect_pixels, const SkBitmap& zoomed_bitmap); |
| 244 | 244 |
| 245 // Creates a java-side touch event, used for injecting touch event for | 245 // Creates a java-side touch event, used for injecting touch event for |
| 246 // testing/benchmarking purposes | 246 // testing/benchmarking purposes |
| 247 base::android::ScopedJavaLocalRef<jobject> CreateTouchEventSynthesizer(); | 247 base::android::ScopedJavaLocalRef<jobject> CreateTouchEventSynthesizer(); |
| 248 | 248 |
| 249 base::android::ScopedJavaLocalRef<jobject> GetContentVideoViewClient(); | 249 base::android::ScopedJavaLocalRef<jobject> GetContentVideoViewClient(); |
| 250 | 250 |
| 251 // Returns the context that the ContentViewCore was created with, it would | 251 // Returns the context that the ContentViewCore was created with, it would |
| 252 // typically be an Activity context for an on screen view. | 252 // typically be an Activity context for an on screen view. |
| 253 base::android::ScopedJavaLocalRef<jobject> GetContext(); | 253 base::android::ScopedJavaLocalRef<jobject> GetContext(); |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 345 java_bridge_dispatcher_host_; | 345 java_bridge_dispatcher_host_; |
| 346 | 346 |
| 347 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); | 347 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); |
| 348 }; | 348 }; |
| 349 | 349 |
| 350 bool RegisterContentViewCore(JNIEnv* env); | 350 bool RegisterContentViewCore(JNIEnv* env); |
| 351 | 351 |
| 352 } // namespace content | 352 } // namespace content |
| 353 | 353 |
| 354 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ | 354 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ |
| OLD | NEW |