Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(271)

Side by Side Diff: content/browser/android/content_view_core_impl.h

Issue 2682593002: Refactor ContentViewClient (4/6) (Closed)
Patch Set: . Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 317 matching lines...) Expand 10 before | Expand all | Expand 10 after
328 int text_input_type, 328 int text_input_type,
329 int text_input_flags, 329 int text_input_flags,
330 int text_input_mode, 330 int text_input_mode,
331 const std::string& text, 331 const std::string& text,
332 int selection_start, 332 int selection_start,
333 int selection_end, 333 int selection_end,
334 int composition_start, 334 int composition_start,
335 int composition_end, 335 int composition_end,
336 bool show_ime_if_needed, 336 bool show_ime_if_needed,
337 bool reply_to_request); 337 bool reply_to_request);
338 void OnBackgroundColorChanged(SkColor color);
339 338
340 bool HasFocus(); 339 bool HasFocus();
341 void RequestDisallowInterceptTouchEvent(); 340 void RequestDisallowInterceptTouchEvent();
342 void OnGestureEventAck(const blink::WebGestureEvent& event, 341 void OnGestureEventAck(const blink::WebGestureEvent& event,
343 InputEventAckState ack_result); 342 InputEventAckState ack_result);
344 bool FilterInputEvent(const blink::WebInputEvent& event); 343 bool FilterInputEvent(const blink::WebInputEvent& event);
345 void OnSelectionChanged(const std::string& text); 344 void OnSelectionChanged(const std::string& text);
346 void OnSelectionEvent(ui::SelectionEventType event, 345 void OnSelectionEvent(ui::SelectionEventType event,
347 const gfx::PointF& selection_anchor, 346 const gfx::PointF& selection_anchor,
348 const gfx::RectF& selection_rect); 347 const gfx::RectF& selection_rect);
349 348
350 void StartContentIntent(const GURL& content_url, bool is_main_frame);
351
352 // Shows the disambiguation popup 349 // Shows the disambiguation popup
353 // |rect_pixels| --> window coordinates which |zoomed_bitmap| represents 350 // |rect_pixels| --> window coordinates which |zoomed_bitmap| represents
354 // |zoomed_bitmap| --> magnified image of potential touch targets 351 // |zoomed_bitmap| --> magnified image of potential touch targets
355 void ShowDisambiguationPopup( 352 void ShowDisambiguationPopup(
356 const gfx::Rect& rect_pixels, const SkBitmap& zoomed_bitmap); 353 const gfx::Rect& rect_pixels, const SkBitmap& zoomed_bitmap);
357 354
358 // Creates a java-side touch event, used for injecting motion events for 355 // Creates a java-side touch event, used for injecting motion events for
359 // testing/benchmarking purposes. 356 // testing/benchmarking purposes.
360 base::android::ScopedJavaLocalRef<jobject> CreateMotionEventSynthesizer(); 357 base::android::ScopedJavaLocalRef<jobject> CreateMotionEventSynthesizer();
361 358
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
462 scoped_refptr<GinJavaBridgeDispatcherHost> java_bridge_dispatcher_host_; 459 scoped_refptr<GinJavaBridgeDispatcherHost> java_bridge_dispatcher_host_;
463 460
464 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); 461 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl);
465 }; 462 };
466 463
467 bool RegisterContentViewCore(JNIEnv* env); 464 bool RegisterContentViewCore(JNIEnv* env);
468 465
469 } // namespace content 466 } // namespace content
470 467
471 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ 468 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698