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

Unified Diff: content/browser/renderer_host/render_widget_host_view_android.h

Issue 2943383002: Android double/triple click (Closed)
Patch Set: Fixing mouse up scenario Created 3 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/renderer_host/render_widget_host_view_android.h
diff --git a/content/browser/renderer_host/render_widget_host_view_android.h b/content/browser/renderer_host/render_widget_host_view_android.h
index 295c9dae0a3ef2ea85fa92a3731067f748195478..eb6097f194f3b2a9bddf9a32dfd4aaf9b9731596 100644
--- a/content/browser/renderer_host/render_widget_host_view_android.h
+++ b/content/browser/renderer_host/render_widget_host_view_android.h
@@ -347,6 +347,10 @@ class CONTENT_EXPORT RenderWidgetHostViewAndroid
void CreateOverscrollControllerIfPossible();
+ void UpdateLeftClickCount(int action_button,
+ float mousedown_x,
+ float mouse_down_y);
+
WebContentsAccessibilityAndroid* GetWebContentsAccessibilityAndroid() const;
// The model object.
@@ -428,6 +432,10 @@ class CONTENT_EXPORT RenderWidgetHostViewAndroid
float prev_top_shown_pix_;
float prev_bottom_shown_pix_;
+ base::TimeTicks prev_mousedown_timestamp_;
+ gfx::Point prev_mousedown_point_;
+ int left_click_count_ = 0;
+
cc::mojom::MojoCompositorFrameSinkClient* renderer_compositor_frame_sink_ =
nullptr;

Powered by Google App Engine
This is Rietveld 408576698