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); | |
278 | 277 |
279 void StartContentIntent(const GURL& content_url); | 278 void StartContentIntent(const GURL& content_url); |
280 | 279 |
281 // Shows the disambiguation popup | 280 // Shows the disambiguation popup |
282 // |target_rect| --> window coordinates which |zoomed_bitmap| represents | 281 // |target_rect| --> window coordinates which |zoomed_bitmap| represents |
283 // |zoomed_bitmap| --> magnified image of potential touch targets | 282 // |zoomed_bitmap| --> magnified image of potential touch targets |
284 void ShowDisambiguationPopup( | 283 void ShowDisambiguationPopup( |
285 const gfx::Rect& target_rect, const SkBitmap& zoomed_bitmap); | 284 const gfx::Rect& target_rect, const SkBitmap& zoomed_bitmap); |
286 | 285 |
287 // Creates a java-side touch event, used for injecting touch event for | 286 // 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... |
401 bool geolocation_needs_pause_; | 400 bool geolocation_needs_pause_; |
402 | 401 |
403 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); | 402 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); |
404 }; | 403 }; |
405 | 404 |
406 bool RegisterContentViewCore(JNIEnv* env); | 405 bool RegisterContentViewCore(JNIEnv* env); |
407 | 406 |
408 } // namespace content | 407 } // namespace content |
409 | 408 |
410 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ | 409 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ |
OLD | NEW |