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

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

Issue 2792063003: Factor out RenderWidgetHostConnector (Closed)
Patch Set: format Created 3 years, 8 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 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 const float top_controls_height, 261 const float top_controls_height,
262 const float top_controls_shown_ratio, 262 const float top_controls_shown_ratio,
263 bool is_mobile_optimized_hint, 263 bool is_mobile_optimized_hint,
264 const gfx::SelectionBound& selection_start); 264 const gfx::SelectionBound& selection_start);
265 265
266 bool HasFocus(); 266 bool HasFocus();
267 void RequestDisallowInterceptTouchEvent(); 267 void RequestDisallowInterceptTouchEvent();
268 void OnGestureEventAck(const blink::WebGestureEvent& event, 268 void OnGestureEventAck(const blink::WebGestureEvent& event,
269 InputEventAckState ack_result); 269 InputEventAckState ack_result);
270 bool FilterInputEvent(const blink::WebInputEvent& event); 270 bool FilterInputEvent(const blink::WebInputEvent& event);
271 void OnSelectionChanged(const std::string& text);
272 void OnSelectionEvent(ui::SelectionEventType event,
273 const gfx::PointF& selection_anchor,
274 const gfx::RectF& selection_rect);
275 271
276 // Shows the disambiguation popup 272 // Shows the disambiguation popup
277 // |rect_pixels| --> window coordinates which |zoomed_bitmap| represents 273 // |rect_pixels| --> window coordinates which |zoomed_bitmap| represents
278 // |zoomed_bitmap| --> magnified image of potential touch targets 274 // |zoomed_bitmap| --> magnified image of potential touch targets
279 void ShowDisambiguationPopup( 275 void ShowDisambiguationPopup(
280 const gfx::Rect& rect_pixels, const SkBitmap& zoomed_bitmap); 276 const gfx::Rect& rect_pixels, const SkBitmap& zoomed_bitmap);
281 277
282 // Creates a java-side touch event, used for injecting motion events for 278 // Creates a java-side touch event, used for injecting motion events for
283 // testing/benchmarking purposes. 279 // testing/benchmarking purposes.
284 base::android::ScopedJavaLocalRef<jobject> CreateMotionEventSynthesizer(); 280 base::android::ScopedJavaLocalRef<jobject> CreateMotionEventSynthesizer();
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
387 scoped_refptr<GinJavaBridgeDispatcherHost> java_bridge_dispatcher_host_; 383 scoped_refptr<GinJavaBridgeDispatcherHost> java_bridge_dispatcher_host_;
388 384
389 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); 385 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl);
390 }; 386 };
391 387
392 bool RegisterContentViewCore(JNIEnv* env); 388 bool RegisterContentViewCore(JNIEnv* env);
393 389
394 } // namespace content 390 } // namespace content
395 391
396 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ 392 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698