Chromium Code Reviews| Index: ui/wm/core/coordinate_conversion.h |
| diff --git a/ui/wm/core/coordinate_conversion.h b/ui/wm/core/coordinate_conversion.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..7a556e91678ab08ba0d921c42172ef3abd6ec0cc |
| --- /dev/null |
| +++ b/ui/wm/core/coordinate_conversion.h |
| @@ -0,0 +1,32 @@ |
| +// Copyright (c) 2014 The Chromium Authors. All rights reserved. |
|
oshima
2014/08/02 00:34:13
nit: nuke "(c)"
mfomitchev
2014/08/02 14:50:17
Done.
|
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef UI_WM_CORE_COORDINATE_CONVERSION_H_ |
| +#define UI_WM_CORE_COORDINATE_CONVERSION_H_ |
| + |
| +#include "ui/wm/wm_export.h" |
| + |
| +namespace aura { |
| +class Window; |
| +} // namespace aura |
| + |
| +namespace gfx { |
| +class Point; |
| +} // namespace gfx |
| + |
| +namespace wm { |
| + |
| +// Converts the |point| from a given |window|'s coordinates into the screen |
| +// coordinates. |
| +WM_EXPORT void ConvertPointToScreen(const aura::Window* window, |
| + gfx::Point* point); |
| + |
| +// Converts the |point| from the screen coordinates to a given |window|'s |
| +// coordinates. |
| +WM_EXPORT void ConvertPointFromScreen(const aura::Window* window, |
| + gfx::Point* point_in_screen); |
| + |
| +} // namespace wm |
| + |
| +#endif // UI_WM_CORE_COORDINATE_CONVERSION_H_ |