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

Unified Diff: content/browser/renderer_host/input/synthetic_mouse_driver.h

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_mouse_driver.h
diff --git a/content/browser/renderer_host/input/synthetic_mouse_driver.h b/content/browser/renderer_host/input/synthetic_mouse_driver.h
index 04a00706411073078cb8d139222fbcb118918cf8..34b876092764d286f8010809514effa63fdddf9b 100644
--- a/content/browser/renderer_host/input/synthetic_mouse_driver.h
+++ b/content/browser/renderer_host/input/synthetic_mouse_driver.h
@@ -20,15 +20,23 @@ class CONTENT_EXPORT SyntheticMouseDriver : public SyntheticPointerDriver {
void DispatchEvent(SyntheticGestureTarget* target,
const base::TimeTicks& timestamp) override;
- void Press(float x, float y, int index = 0) override;
+ void Press(float x,
+ float y,
+ int index = 0,
+ SyntheticPointerActionParams::Button button =
+ SyntheticPointerActionParams::Button::LEFT) override;
void Move(float x, float y, int index = 0) override;
- void Release(int index = 0) override;
+ void Release(int index = 0,
+ SyntheticPointerActionParams::Button button =
+ SyntheticPointerActionParams::Button::LEFT) override;
bool UserInputCheck(
const SyntheticPointerActionParams& params) const override;
private:
blink::WebMouseEvent mouse_event_;
+ unsigned last_modifiers_;
+
DISALLOW_COPY_AND_ASSIGN(SyntheticMouseDriver);
};

Powered by Google App Engine
This is Rietveld 408576698