Chromium Code Reviews
Description[Mac] Add gfx::ScreenPoint[To|From]NSPoint.
Similarly to ScreenRect[To|From]NSRect, we want to avoid a proliferation of the
following patterns for doing this conversion:
gfx::Point point(ns_point.x,
NSMaxY([[[NSScreen screens] objectAtIndex:0] frame]) - ns_point.y);
Or alternatively, creating an NSRect, converting with gfx::ScreenRectFromNSRect(),
and taking the origin.
BUG=None
Committed: https://crrev.com/148c98707491251276ec2380e269e1b7f0edc699
Cr-Commit-Position: refs/heads/master@{#342914}
Patch Set 1 #
Total comments: 16
Patch Set 2 : Address comments. #
Total comments: 6
Depends on Patchset: Dependent Patchsets: Messages
Total messages: 15 (4 generated)
|
|||||||||||||||||||||||||||||||||||||