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

Unified Diff: chrome/browser/ui/cocoa/panels/panel_utils_cocoa.h

Issue 23918002: Switch to doing user-resizing via system for panels on Mac (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Patch to reland 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
« no previous file with comments | « chrome/browser/ui/cocoa/panels/panel_cocoa.mm ('k') | chrome/browser/ui/cocoa/panels/panel_utils_cocoa.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/panels/panel_utils_cocoa.h
diff --git a/chrome/browser/ui/cocoa/panels/panel_utils_cocoa.h b/chrome/browser/ui/cocoa/panels/panel_utils_cocoa.h
index 2deb2a5a094b1590683bb6d0a4d6117874b5cef6..aefd5651541cb9e8eb3af86d08852d425c0d3a24 100644
--- a/chrome/browser/ui/cocoa/panels/panel_utils_cocoa.h
+++ b/chrome/browser/ui/cocoa/panels/panel_utils_cocoa.h
@@ -12,18 +12,23 @@
namespace cocoa_utils {
// TODO(dcheng): Move elsewhere so BrowserWindowCocoa can use them too.
-// Converts a rect from the platfrom-independent screen coordinates (with the
+// Converts a rect from the platform-independent screen coordinates (with the
// (0,0) in the top-left corner of the primary screen) to the Cocoa screen
// coordinates (with (0,0) in the low-left corner).
NSRect ConvertRectToCocoaCoordinates(const gfx::Rect& bounds);
-// Converts a point from the platfrom-independent screen coordinates (with the
+// Converts a rect from the Cocoa screen oordinates (with (0,0) in the low-left
+// corner) to the platform-independent screen coordinates (with the (0,0) in
+// the top-left corner of the primary screen).
+gfx::Rect ConvertRectFromCocoaCoordinates(NSRect bounds);
+
+// Converts a point from the platform-independent screen coordinates (with the
// (0,0) in the top-left corner of the primary screen) to the Cocoa screen
// coordinates (with (0,0) in the low-left corner).
NSPoint ConvertPointToCocoaCoordinates(const gfx::Point& point);
// Converts a point from the Cocoa screen coordinates (with (0,0) in the
-// low-left corner of the primary screen) to the platfrom-independent screen
+// low-left corner of the primary screen) to the platform-independent screen
// coordinates (with the (0,0) in the top-left corner).
gfx::Point ConvertPointFromCocoaCoordinates(NSPoint point);
« no previous file with comments | « chrome/browser/ui/cocoa/panels/panel_cocoa.mm ('k') | chrome/browser/ui/cocoa/panels/panel_utils_cocoa.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698