| 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 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 bool show_ime_if_needed, | 222 bool show_ime_if_needed, |
| 223 bool is_non_ime_change); | 223 bool is_non_ime_change); |
| 224 void SetTitle(const base::string16& title); | 224 void SetTitle(const base::string16& title); |
| 225 void OnBackgroundColorChanged(SkColor color); | 225 void OnBackgroundColorChanged(SkColor color); |
| 226 | 226 |
| 227 bool HasFocus(); | 227 bool HasFocus(); |
| 228 void OnGestureEventAck(const blink::WebGestureEvent& event, | 228 void OnGestureEventAck(const blink::WebGestureEvent& event, |
| 229 InputEventAckState ack_result); | 229 InputEventAckState ack_result); |
| 230 bool FilterInputEvent(const blink::WebInputEvent& event); | 230 bool FilterInputEvent(const blink::WebInputEvent& event); |
| 231 void OnSelectionChanged(const std::string& text); | 231 void OnSelectionChanged(const std::string& text); |
| 232 void OnSelectionEvent(SelectionEventType event, | 232 void OnSelectionEvent(ui::SelectionEventType event, |
| 233 const gfx::PointF& anchor_position); | 233 const gfx::PointF& anchor_position); |
| 234 scoped_ptr<TouchHandleDrawable> CreatePopupTouchHandleDrawable(); | 234 scoped_ptr<ui::TouchHandleDrawable> CreatePopupTouchHandleDrawable(); |
| 235 | 235 |
| 236 void StartContentIntent(const GURL& content_url); | 236 void StartContentIntent(const GURL& content_url); |
| 237 | 237 |
| 238 // Shows the disambiguation popup | 238 // Shows the disambiguation popup |
| 239 // |rect_pixels| --> window coordinates which |zoomed_bitmap| represents | 239 // |rect_pixels| --> window coordinates which |zoomed_bitmap| represents |
| 240 // |zoomed_bitmap| --> magnified image of potential touch targets | 240 // |zoomed_bitmap| --> magnified image of potential touch targets |
| 241 void ShowDisambiguationPopup( | 241 void ShowDisambiguationPopup( |
| 242 const gfx::Rect& rect_pixels, const SkBitmap& zoomed_bitmap); | 242 const gfx::Rect& rect_pixels, const SkBitmap& zoomed_bitmap); |
| 243 | 243 |
| 244 // Creates a java-side touch event, used for injecting touch event for | 244 // Creates a java-side touch event, used for injecting touch event for |
| (...skipping 100 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 |