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

Side by Side Diff: chrome/browser/ui/cocoa/panels/panel_utils_cocoa.h

Issue 2263863002: Remove implementation of Panels on OSes other than ChromeOS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: CR feedback Created 4 years, 4 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_UI_COCOA_PANELS_PANEL_UTILS_COCOA_H_
6 #define CHROME_BROWSER_UI_COCOA_PANELS_PANEL_UTILS_COCOA_H_
7
8 #import <Cocoa/Cocoa.h>
9 #include "ui/gfx/geometry/point.h"
10 #include "ui/gfx/geometry/rect.h"
11
12 namespace cocoa_utils {
13
14 // TODO(dcheng): Move elsewhere so BrowserWindowCocoa can use them too.
15 // Converts a rect from the platform-independent screen coordinates (with the
16 // (0,0) in the top-left corner of the primary screen) to the Cocoa screen
17 // coordinates (with (0,0) in the low-left corner).
18 NSRect ConvertRectToCocoaCoordinates(const gfx::Rect& bounds);
19
20 // Converts a rect from the Cocoa screen oordinates (with (0,0) in the low-left
21 // corner) to the platform-independent screen coordinates (with the (0,0) in
22 // the top-left corner of the primary screen).
23 gfx::Rect ConvertRectFromCocoaCoordinates(NSRect bounds);
24
25 // Converts a point from the platform-independent screen coordinates (with the
26 // (0,0) in the top-left corner of the primary screen) to the Cocoa screen
27 // coordinates (with (0,0) in the low-left corner).
28 NSPoint ConvertPointToCocoaCoordinates(const gfx::Point& point);
29
30 // Converts a point from the Cocoa screen coordinates (with (0,0) in the
31 // low-left corner of the primary screen) to the platform-independent screen
32 // coordinates (with the (0,0) in the top-left corner).
33 gfx::Point ConvertPointFromCocoaCoordinates(NSPoint point);
34
35 } // namespace cocoa_utils
36
37 #endif // CHROME_BROWSER_UI_COCOA_PANELS_PANEL_UTILS_COCOA_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/panels/panel_titlebar_view_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