| 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 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 265 void ConfirmTouchEvent(InputEventAckState ack_result); | 265 void ConfirmTouchEvent(InputEventAckState ack_result); |
| 266 void UnhandledFlingStartEvent(); | 266 void UnhandledFlingStartEvent(); |
| 267 void OnScrollUpdateGestureConsumed(); | 267 void OnScrollUpdateGestureConsumed(); |
| 268 void HasTouchEventHandlers(bool need_touch_events); | 268 void HasTouchEventHandlers(bool need_touch_events); |
| 269 void OnSelectionChanged(const std::string& text); | 269 void OnSelectionChanged(const std::string& text); |
| 270 void OnSelectionBoundsChanged( | 270 void OnSelectionBoundsChanged( |
| 271 const ViewHostMsg_SelectionBounds_Params& params); | 271 const ViewHostMsg_SelectionBounds_Params& params); |
| 272 | 272 |
| 273 void StartContentIntent(const GURL& content_url); | 273 void StartContentIntent(const GURL& content_url); |
| 274 | 274 |
| 275 float GetDeviceScaleFactor() const; |
| 276 |
| 275 // Shows the disambiguation popup | 277 // Shows the disambiguation popup |
| 276 // |target_rect| --> window coordinates which |zoomed_bitmap| represents | 278 // |target_rect| --> window coordinates which |zoomed_bitmap| represents |
| 277 // |zoomed_bitmap| --> magnified image of potential touch targets | 279 // |zoomed_bitmap| --> magnified image of potential touch targets |
| 278 void ShowDisambiguationPopup( | 280 void ShowDisambiguationPopup( |
| 279 const gfx::Rect& target_rect, const SkBitmap& zoomed_bitmap); | 281 const gfx::Rect& target_rect, const SkBitmap& zoomed_bitmap); |
| 280 | 282 |
| 281 // Creates a java-side touch event, used for injecting touch event for | 283 // Creates a java-side touch event, used for injecting touch event for |
| 282 // testing/benchmarking purposes | 284 // testing/benchmarking purposes |
| 283 base::android::ScopedJavaLocalRef<jobject> CreateTouchEventSynthesizer(); | 285 base::android::ScopedJavaLocalRef<jobject> CreateTouchEventSynthesizer(); |
| 284 | 286 |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 384 int device_orientation_; | 386 int device_orientation_; |
| 385 | 387 |
| 386 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); | 388 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); |
| 387 }; | 389 }; |
| 388 | 390 |
| 389 bool RegisterContentViewCore(JNIEnv* env); | 391 bool RegisterContentViewCore(JNIEnv* env); |
| 390 | 392 |
| 391 } // namespace content | 393 } // namespace content |
| 392 | 394 |
| 393 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ | 395 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ |
| OLD | NEW |