| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 300 void HideSelectPopupMenu(); | 300 void HideSelectPopupMenu(); |
| 301 | 301 |
| 302 // All sizes and offsets are in CSS pixels as cached by the renderer. | 302 // All sizes and offsets are in CSS pixels as cached by the renderer. |
| 303 void UpdateFrameInfo(const gfx::Vector2dF& scroll_offset, | 303 void UpdateFrameInfo(const gfx::Vector2dF& scroll_offset, |
| 304 float page_scale_factor, | 304 float page_scale_factor, |
| 305 const gfx::Vector2dF& page_scale_factor_limits, | 305 const gfx::Vector2dF& page_scale_factor_limits, |
| 306 const gfx::SizeF& content_size, | 306 const gfx::SizeF& content_size, |
| 307 const gfx::SizeF& viewport_size, | 307 const gfx::SizeF& viewport_size, |
| 308 const float top_controls_height, | 308 const float top_controls_height, |
| 309 const float top_controls_shown_ratio, | 309 const float top_controls_shown_ratio, |
| 310 const float bottom_controls_height, | |
| 311 const float bottom_controls_shown_ratio, | |
| 312 bool is_mobile_optimized_hint, | 310 bool is_mobile_optimized_hint, |
| 313 const gfx::SelectionBound& selection_start); | 311 const gfx::SelectionBound& selection_start); |
| 314 | 312 |
| 315 void ForceUpdateImeAdapter(long native_ime_adapter); | 313 void ForceUpdateImeAdapter(long native_ime_adapter); |
| 316 void UpdateImeAdapter(long native_ime_adapter, | 314 void UpdateImeAdapter(long native_ime_adapter, |
| 317 int text_input_type, | 315 int text_input_type, |
| 318 int text_input_flags, | 316 int text_input_flags, |
| 319 int text_input_mode, | 317 int text_input_mode, |
| 320 const std::string& text, | 318 const std::string& text, |
| 321 int selection_start, | 319 int selection_start, |
| 322 int selection_end, | 320 int selection_end, |
| 323 int composition_start, | 321 int composition_start, |
| 324 int composition_end, | 322 int composition_end, |
| 325 bool show_ime_if_needed, | 323 bool show_ime_if_needed, |
| 326 bool reply_to_request); | 324 bool reply_to_request); |
| 327 void OnBackgroundColorChanged(SkColor color); | |
| 328 | 325 |
| 329 bool HasFocus(); | 326 bool HasFocus(); |
| 330 void RequestDisallowInterceptTouchEvent(); | 327 void RequestDisallowInterceptTouchEvent(); |
| 331 void OnGestureEventAck(const blink::WebGestureEvent& event, | 328 void OnGestureEventAck(const blink::WebGestureEvent& event, |
| 332 InputEventAckState ack_result); | 329 InputEventAckState ack_result); |
| 333 bool FilterInputEvent(const blink::WebInputEvent& event); | 330 bool FilterInputEvent(const blink::WebInputEvent& event); |
| 334 void OnSelectionChanged(const std::string& text); | 331 void OnSelectionChanged(const std::string& text); |
| 335 void OnSelectionEvent(ui::SelectionEventType event, | 332 void OnSelectionEvent(ui::SelectionEventType event, |
| 336 const gfx::PointF& selection_anchor, | 333 const gfx::PointF& selection_anchor, |
| 337 const gfx::RectF& selection_rect); | 334 const gfx::RectF& selection_rect); |
| 338 | 335 |
| 339 void StartContentIntent(const GURL& content_url, bool is_main_frame); | |
| 340 | |
| 341 // Shows the disambiguation popup | 336 // Shows the disambiguation popup |
| 342 // |rect_pixels| --> window coordinates which |zoomed_bitmap| represents | 337 // |rect_pixels| --> window coordinates which |zoomed_bitmap| represents |
| 343 // |zoomed_bitmap| --> magnified image of potential touch targets | 338 // |zoomed_bitmap| --> magnified image of potential touch targets |
| 344 void ShowDisambiguationPopup( | 339 void ShowDisambiguationPopup( |
| 345 const gfx::Rect& rect_pixels, const SkBitmap& zoomed_bitmap); | 340 const gfx::Rect& rect_pixels, const SkBitmap& zoomed_bitmap); |
| 346 | 341 |
| 347 // Creates a java-side touch event, used for injecting motion events for | 342 // Creates a java-side touch event, used for injecting motion events for |
| 348 // testing/benchmarking purposes. | 343 // testing/benchmarking purposes. |
| 349 base::android::ScopedJavaLocalRef<jobject> CreateMotionEventSynthesizer(); | 344 base::android::ScopedJavaLocalRef<jobject> CreateMotionEventSynthesizer(); |
| 350 | 345 |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 451 scoped_refptr<GinJavaBridgeDispatcherHost> java_bridge_dispatcher_host_; | 446 scoped_refptr<GinJavaBridgeDispatcherHost> java_bridge_dispatcher_host_; |
| 452 | 447 |
| 453 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); | 448 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); |
| 454 }; | 449 }; |
| 455 | 450 |
| 456 bool RegisterContentViewCore(JNIEnv* env); | 451 bool RegisterContentViewCore(JNIEnv* env); |
| 457 | 452 |
| 458 } // namespace content | 453 } // namespace content |
| 459 | 454 |
| 460 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ | 455 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ |
| OLD | NEW |