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

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

Issue 2178153002: Prepare SyntheticPointerAction to handle mouse actions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add comment Created 4 years, 4 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
« no previous file with comments | « no previous file | content/browser/renderer_host/input/synthetic_pointer_action.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/input/synthetic_mouse_pointer.cc
diff --git a/content/browser/renderer_host/input/synthetic_mouse_pointer.cc b/content/browser/renderer_host/input/synthetic_mouse_pointer.cc
index 556d1fe36ed2dfa37630788eb96470258082afb6..2dd8cbb4c5b0e015167863139f4c22db9ee7f875 100644
--- a/content/browser/renderer_host/input/synthetic_mouse_pointer.cc
+++ b/content/browser/renderer_host/input/synthetic_mouse_pointer.cc
@@ -33,9 +33,12 @@ void SyntheticMousePointer::Move(int index,
float y,
SyntheticGestureTarget* target,
const base::TimeTicks& timestamp) {
+ blink::WebMouseEvent::Button button = mouse_event_.button;
+ int click_count = mouse_event_.clickCount;
mouse_event_ = SyntheticWebMouseEventBuilder::Build(
blink::WebInputEvent::MouseMove, x, y, 0);
- mouse_event_.button = blink::WebMouseEvent::ButtonLeft;
+ mouse_event_.button = button;
+ mouse_event_.clickCount = click_count;
}
void SyntheticMousePointer::Release(int index,
« no previous file with comments | « no previous file | content/browser/renderer_host/input/synthetic_pointer_action.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698