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

Unified Diff: content/browser/renderer_host/input/synthetic_touch_driver.cc

Issue 2634183002: Support multi-button press for synthetic mouse events (Closed)
Patch Set: button Created 3 years, 11 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/input/synthetic_touch_driver.cc
diff --git a/content/browser/renderer_host/input/synthetic_touch_driver.cc b/content/browser/renderer_host/input/synthetic_touch_driver.cc
index 2926c575eb6781775ca82b6f4263f7011f6291bc..522208c0fb242b38542a9d19388534ccfcec5328 100644
--- a/content/browser/renderer_host/input/synthetic_touch_driver.cc
+++ b/content/browser/renderer_host/input/synthetic_touch_driver.cc
@@ -27,7 +27,10 @@ void SyntheticTouchDriver::DispatchEvent(SyntheticGestureTarget* target,
touch_event_.ResetPoints();
}
-void SyntheticTouchDriver::Press(float x, float y, int index) {
+void SyntheticTouchDriver::Press(float x,
+ float y,
+ int index,
+ SyntheticPointerActionParams::Button button) {
DCHECK_GE(index, 0);
DCHECK_LT(index, blink::WebTouchEvent::kTouchesLengthCap);
int touch_index = touch_event_.PressPoint(x, y);
@@ -40,7 +43,9 @@ void SyntheticTouchDriver::Move(float x, float y, int index) {
touch_event_.MovePoint(index_map_[index], x, y);
}
-void SyntheticTouchDriver::Release(int index) {
+void SyntheticTouchDriver::Release(
+ int index,
+ SyntheticPointerActionParams::Button button) {
DCHECK_GE(index, 0);
DCHECK_LT(index, blink::WebTouchEvent::kTouchesLengthCap);
touch_event_.ReleasePoint(index_map_[index]);
« no previous file with comments | « content/browser/renderer_host/input/synthetic_touch_driver.h ('k') | content/common/input/synthetic_pointer_action_params.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698