Update DT_RELA* fields when packing relocations with addends.
[chromium-blink-merge.git] / ui / gfx / mac / coordinate_conversion.h
blob3deec9a94767d9aee4544bb6386048584eab827b
1 // Copyright 2014 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.
5 #ifndef UI_GFX_MAC_COORDINATE_CONVERSION_H_
6 #define UI_GFX_MAC_COORDINATE_CONVERSION_H_
8 #import <Foundation/Foundation.h>
10 #include "ui/gfx/gfx_export.h"
12 namespace gfx {
14 class Rect;
16 // Convert a gfx::Rect specified with the origin at the top left of the primary
17 // display into AppKit secreen coordinates (origin at the bottom left).
18 GFX_EXPORT NSRect ScreenRectToNSRect(const gfx::Rect& rect);
20 // Convert an AppKit NSRect with origin in the bottom left of the primary
21 // display into a gfx::Rect with origin at the top left of the primary display.
22 GFX_EXPORT gfx::Rect ScreenRectFromNSRect(const NSRect& point);
24 } // namespace gfx
26 #endif // UI_GFX_MAC_COORDINATE_CONVERSION_H_