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 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
267 void OnBackgroundColorChanged(SkColor color); | 267 void OnBackgroundColorChanged(SkColor color); |
268 | 268 |
269 bool HasFocus(); | 269 bool HasFocus(); |
270 void ConfirmTouchEvent(InputEventAckState ack_result); | 270 void ConfirmTouchEvent(InputEventAckState ack_result); |
271 void OnGestureEventAck(const blink::WebGestureEvent& event, | 271 void OnGestureEventAck(const blink::WebGestureEvent& event, |
272 InputEventAckState ack_result); | 272 InputEventAckState ack_result); |
273 bool FilterInputEvent(const blink::WebInputEvent& event); | 273 bool FilterInputEvent(const blink::WebInputEvent& event); |
274 void OnSelectionChanged(const std::string& text); | 274 void OnSelectionChanged(const std::string& text); |
275 void OnSelectionBoundsChanged( | 275 void OnSelectionBoundsChanged( |
276 const ViewHostMsg_SelectionBounds_Params& params); | 276 const ViewHostMsg_SelectionBounds_Params& params); |
| 277 void OnSelectionRootBoundsChanged(const gfx::Rect& bounds); |
277 | 278 |
278 void StartContentIntent(const GURL& content_url); | 279 void StartContentIntent(const GURL& content_url); |
279 | 280 |
280 // Shows the disambiguation popup | 281 // Shows the disambiguation popup |
281 // |target_rect| --> window coordinates which |zoomed_bitmap| represents | 282 // |target_rect| --> window coordinates which |zoomed_bitmap| represents |
282 // |zoomed_bitmap| --> magnified image of potential touch targets | 283 // |zoomed_bitmap| --> magnified image of potential touch targets |
283 void ShowDisambiguationPopup( | 284 void ShowDisambiguationPopup( |
284 const gfx::Rect& target_rect, const SkBitmap& zoomed_bitmap); | 285 const gfx::Rect& target_rect, const SkBitmap& zoomed_bitmap); |
285 | 286 |
286 // Creates a java-side touch event, used for injecting touch event for | 287 // Creates a java-side touch event, used for injecting touch event for |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
400 bool geolocation_needs_pause_; | 401 bool geolocation_needs_pause_; |
401 | 402 |
402 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); | 403 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); |
403 }; | 404 }; |
404 | 405 |
405 bool RegisterContentViewCore(JNIEnv* env); | 406 bool RegisterContentViewCore(JNIEnv* env); |
406 | 407 |
407 } // namespace content | 408 } // namespace content |
408 | 409 |
409 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ | 410 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ |
OLD | NEW |