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

Unified Diff: trunk/src/chrome/browser/ui/cocoa/panels/panel_utils_cocoa.mm

Issue 23922003: Revert 221651 "Switch to doing user-resizing via system for pane..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 3 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: trunk/src/chrome/browser/ui/cocoa/panels/panel_utils_cocoa.mm
===================================================================
--- trunk/src/chrome/browser/ui/cocoa/panels/panel_utils_cocoa.mm (revision 221673)
+++ trunk/src/chrome/browser/ui/cocoa/panels/panel_utils_cocoa.mm (working copy)
@@ -15,15 +15,6 @@
bounds.width(), bounds.height());
}
-gfx::Rect ConvertRectFromCocoaCoordinates(NSRect bounds) {
- // Flip coordinates based on the primary screen.
- NSScreen* screen = [[NSScreen screens] objectAtIndex:0];
-
- return gfx::Rect(
- NSMinX(bounds), NSHeight([screen frame]) - NSMaxY(bounds),
- NSWidth(bounds), NSHeight(bounds));
-}
-
NSPoint ConvertPointToCocoaCoordinates(const gfx::Point& point) {
// Flip coordinates based on the primary screen.
NSScreen* screen = [[NSScreen screens] objectAtIndex:0];

Powered by Google App Engine
This is Rietveld 408576698