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

Unified Diff: services/ui/ws/cursor_location_manager.cc

Issue 2778943005: Keep root_location to be in pixels and display coordinates in WS. (Closed)
Patch Set: const Created 3 years, 7 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 | « services/ui/ws/cursor_location_manager.h ('k') | services/ui/ws/display_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/cursor_location_manager.cc
diff --git a/services/ui/ws/cursor_location_manager.cc b/services/ui/ws/cursor_location_manager.cc
index c26e15a3c6f5f5f1bc9ecd655d578b920fa8ef43..a95871621fb117df321cd49748edbd7a4c2dce11 100644
--- a/services/ui/ws/cursor_location_manager.cc
+++ b/services/ui/ws/cursor_location_manager.cc
@@ -14,9 +14,9 @@ CursorLocationManager::CursorLocationManager() {}
CursorLocationManager::~CursorLocationManager() {}
void CursorLocationManager::OnMouseCursorLocationChanged(
- const gfx::Point& point) {
+ const gfx::Point& point_in_dip) {
current_cursor_location_ = static_cast<base::subtle::Atomic32>(
- (point.x() & 0xFFFF) << 16 | (point.y() & 0xFFFF));
+ (point_in_dip.x() & 0xFFFF) << 16 | (point_in_dip.y() & 0xFFFF));
if (cursor_location_memory()) {
base::subtle::NoBarrier_Store(cursor_location_memory(),
current_cursor_location_);
« no previous file with comments | « services/ui/ws/cursor_location_manager.h ('k') | services/ui/ws/display_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698