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

Unified Diff: content/renderer/render_view_browsertest.cc

Issue 2782893002: WebMouseEvent coordinates are now fractional & private (Closed)
Patch Set: Rebased, fixed a comment in web_input_event_builders_mac.mm Created 3 years, 8 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
« no previous file with comments | « content/renderer/pepper/event_conversion.cc ('k') | content/renderer/render_widget.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_view_browsertest.cc
diff --git a/content/renderer/render_view_browsertest.cc b/content/renderer/render_view_browsertest.cc
index eee162c1b8c93482bf97558857f9e0056134070d..918e77ed7a3c2de5dd4c68e09a70511a4930b195 100644
--- a/content/renderer/render_view_browsertest.cc
+++ b/content/renderer/render_view_browsertest.cc
@@ -1409,10 +1409,8 @@ TEST_F(RenderViewImplTest, ContextMenu) {
WebInputEvent::NoModifiers,
ui::EventTimeStampToSeconds(ui::EventTimeForNow()));
mouse_event.button = WebMouseEvent::Button::Right;
- mouse_event.x = 250;
- mouse_event.y = 250;
- mouse_event.globalX = 250;
- mouse_event.globalY = 250;
+ mouse_event.setPositionInWidget(250, 250);
+ mouse_event.setPositionInScreen(250, 250);
SendWebMouseEvent(mouse_event);
« no previous file with comments | « content/renderer/pepper/event_conversion.cc ('k') | content/renderer/render_widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698