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