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

Unified Diff: third_party/WebKit/Source/web/WebDevToolsAgentImpl.cpp

Issue 2569273002: Add constructors to WebInputEvents and setters so we can work at cleaning up these public structs. (Closed)
Patch Set: Fix mouse up event sender not modifying modifiers Created 4 years 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: third_party/WebKit/Source/web/WebDevToolsAgentImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebDevToolsAgentImpl.cpp b/third_party/WebKit/Source/web/WebDevToolsAgentImpl.cpp
index 7a4065c33032681f977d5fcc886de91ef3d095a8..a04599327fd465632920842f8c32232df401979e 100644
--- a/third_party/WebKit/Source/web/WebDevToolsAgentImpl.cpp
+++ b/third_party/WebKit/Source/web/WebDevToolsAgentImpl.cpp
@@ -595,8 +595,8 @@ void WebDevToolsAgentImpl::inspectElementAt(int sessionId,
HitTestRequest::Move | HitTestRequest::ReadOnly |
HitTestRequest::AllowChildFrameContent;
HitTestRequest request(hitType);
- WebMouseEvent dummyEvent;
- dummyEvent.type = WebInputEvent::MouseDown;
+ WebMouseEvent dummyEvent(WebInputEvent::MouseDown, WebInputEvent::NoModifiers,
+ WTF::monotonicallyIncreasingTimeMS());
dummyEvent.x = pointInRootFrame.x;
dummyEvent.y = pointInRootFrame.y;
IntPoint transformedPoint =

Powered by Google App Engine
This is Rietveld 408576698