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

Unified Diff: content/browser/devtools/protocol/color_picker.cc

Issue 2782893002: WebMouseEvent coordinates are now fractional & private (Closed)
Patch Set: Fixed compile failures. Created 3 years, 9 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: content/browser/devtools/protocol/color_picker.cc
diff --git a/content/browser/devtools/protocol/color_picker.cc b/content/browser/devtools/protocol/color_picker.cc
index e53a50ba72d3c6edfb5c4fecd8f13379aca3d109..b22055c714cecc4cdb127dad4aadba4f4edc38d0 100644
--- a/content/browser/devtools/protocol/color_picker.cc
+++ b/content/browser/devtools/protocol/color_picker.cc
@@ -112,8 +112,8 @@ void ColorPicker::FrameUpdated(const SkBitmap& bitmap,
}
bool ColorPicker::HandleMouseEvent(const blink::WebMouseEvent& event) {
- last_cursor_x_ = event.x;
- last_cursor_y_ = event.y;
+ last_cursor_x_ = event.position.x;
+ last_cursor_y_ = event.position.y;
if (frame_.drawsNothing())
return true;

Powered by Google App Engine
This is Rietveld 408576698