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

Unified Diff: content/browser/devtools/protocol/color_picker.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
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..a44dca1040260058eed1b02014f29f69906b73bb 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.positionInWidget().x;
+ last_cursor_y_ = event.positionInWidget().y;
if (frame_.drawsNothing())
return true;
« no previous file with comments | « content/browser/browser_plugin/browser_plugin_guest.cc ('k') | content/browser/devtools/protocol/input_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698