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

Unified Diff: content/shell/renderer/test_runner/event_sender.cc

Issue 732433002: Add some modifiers to eventSender for test. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/renderer/test_runner/event_sender.cc
diff --git a/content/shell/renderer/test_runner/event_sender.cc b/content/shell/renderer/test_runner/event_sender.cc
index 4c90eb413004dc5e1644f4fbda21b9a952ef0053..3265d036385eb38416e5d2da73a9765bc79a976e 100644
--- a/content/shell/renderer/test_runner/event_sender.cc
+++ b/content/shell/renderer/test_runner/event_sender.cc
@@ -93,6 +93,12 @@ int GetKeyModifier(const std::string& modifier_name) {
#else
return WebInputEvent::ControlKey;
#endif
+ } else if (!strcmp(characters, "leftButton")) {
+ return WebInputEvent::LeftButtonDown;
+ } else if (!strcmp(characters, "middleButton")) {
+ return WebInputEvent::MiddleButtonDown;
+ } else if (!strcmp(characters, "rightButton")) {
+ return WebInputEvent::RightButtonDown;
}
return 0;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698