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

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: Rebase Created 3 years, 12 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: 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 9c9a0ea472883d66a5e3ffeaefc397df089c5ef9..3d03cad805a757e96b21ff8a7e2ab7416b5b8598 100644
--- a/third_party/WebKit/Source/web/WebDevToolsAgentImpl.cpp
+++ b/third_party/WebKit/Source/web/WebDevToolsAgentImpl.cpp
@@ -534,8 +534,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