diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2019-08-18 12:17:24 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-18 12:17:24 -0400 |
commit | 3658a8cc591ef4ca827ce1cda9565a1bca7d7b3c (patch) | |
tree | a398fa6cf152e111d32a1e2c438967b430b19c59 /components/script_traits | |
parent | 8ceb0ed4bde579b8eb11d4a52f8fd1461e51304d (diff) | |
parent | 225cecf66126fee386fd071cc9d8caeb8503f536 (diff) | |
download | servo-3658a8cc591ef4ca827ce1cda9565a1bca7d7b3c.tar.gz servo-3658a8cc591ef4ca827ce1cda9565a1bca7d7b3c.zip |
Auto merge of #23988 - georgeroman:implement_pointer_up_and_down_actions, r=jdm
Implement pointerDown and pointerUp webdriver actions
<!-- Please describe your changes on the following line: -->
---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->
<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/23988)
<!-- Reviewable:end -->
Diffstat (limited to 'components/script_traits')
-rw-r--r-- | components/script_traits/lib.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/components/script_traits/lib.rs b/components/script_traits/lib.rs index 00fb64b39e9..790c49eff94 100644 --- a/components/script_traits/lib.rs +++ b/components/script_traits/lib.rs @@ -798,6 +798,8 @@ pub enum WebDriverCommandMsg { SendKeys(BrowsingContextId, Vec<WebDriverInputEvent>), /// Act as if keys were pressed or release in the browsing context with the given ID. KeyboardAction(BrowsingContextId, KeyboardEvent), + /// Act as if the mouse was clicked in the browsing context with the given ID. + MouseButtonAction(MouseEventType, MouseButton, f32, f32), /// Set the window size. SetWindowSize( TopLevelBrowsingContextId, |