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 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
255 int composition_start, int composition_end, | 255 int composition_start, int composition_end, |
256 bool show_ime_if_needed, bool is_non_ime_change); | 256 bool show_ime_if_needed, bool is_non_ime_change); |
257 void SetTitle(const base::string16& title); | 257 void SetTitle(const base::string16& title); |
258 void OnBackgroundColorChanged(SkColor color); | 258 void OnBackgroundColorChanged(SkColor color); |
259 | 259 |
260 bool HasFocus(); | 260 bool HasFocus(); |
261 void OnGestureEventAck(const blink::WebGestureEvent& event, | 261 void OnGestureEventAck(const blink::WebGestureEvent& event, |
262 InputEventAckState ack_result); | 262 InputEventAckState ack_result); |
263 bool FilterInputEvent(const blink::WebInputEvent& event); | 263 bool FilterInputEvent(const blink::WebInputEvent& event); |
264 void OnSelectionChanged(const std::string& text); | 264 void OnSelectionChanged(const std::string& text); |
265 void OnSelectionBoundsChanged( | 265 void OnSelectionBoundsChanged(const gfx::PointF& anchor, |
266 const ViewHostMsg_SelectionBounds_Params& params); | 266 const gfx::PointF& focus, |
| 267 int anchor_dir, |
| 268 int focus_dir, |
| 269 bool is_anchor_first, |
| 270 bool is_anchor_visible, |
| 271 bool is_focus_visible); |
267 | 272 |
268 void StartContentIntent(const GURL& content_url); | 273 void StartContentIntent(const GURL& content_url); |
269 | 274 |
270 // Shows the disambiguation popup | 275 // Shows the disambiguation popup |
271 // |target_rect| --> window coordinates which |zoomed_bitmap| represents | 276 // |target_rect| --> window coordinates which |zoomed_bitmap| represents |
272 // |zoomed_bitmap| --> magnified image of potential touch targets | 277 // |zoomed_bitmap| --> magnified image of potential touch targets |
273 void ShowDisambiguationPopup( | 278 void ShowDisambiguationPopup( |
274 const gfx::Rect& target_rect, const SkBitmap& zoomed_bitmap); | 279 const gfx::Rect& target_rect, const SkBitmap& zoomed_bitmap); |
275 | 280 |
276 // Creates a java-side touch event, used for injecting touch event for | 281 // Creates a java-side touch event, used for injecting touch event for |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
375 java_bridge_dispatcher_host_manager_; | 380 java_bridge_dispatcher_host_manager_; |
376 | 381 |
377 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); | 382 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); |
378 }; | 383 }; |
379 | 384 |
380 bool RegisterContentViewCore(JNIEnv* env); | 385 bool RegisterContentViewCore(JNIEnv* env); |
381 | 386 |
382 } // namespace content | 387 } // namespace content |
383 | 388 |
384 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ | 389 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ |
OLD | NEW |