Chromium Code Reviews| Index: athena/wm/coordinate_conversion.h |
| diff --git a/athena/wm/coordinate_conversion.h b/athena/wm/coordinate_conversion.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..1a9329db2c5636253a0e41cb1a64dd773d1d7167 |
| --- /dev/null |
| +++ b/athena/wm/coordinate_conversion.h |
| @@ -0,0 +1,30 @@ |
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef ATHENA_WM_COORDINATE_CONVERSION_H_ |
| +#define ATHENA_WM_COORDINATE_CONVERSION_H_ |
| + |
| +namespace aura { |
| +class Window; |
| +} // namespace aura |
| + |
| +namespace gfx { |
| +class Point; |
| +class Rect; |
| +} // namespace gfx |
| + |
| +namespace athena { |
| +// Converts the |point| from a given |window|'s coordinates into the screen |
| +// coordinates. |
| +void ConvertPointToScreen(const aura::Window* window, |
|
Jun Mukai
2014/07/25 20:21:29
This file would be great to be in ui/wm/core (or e
oshima
2014/07/25 21:41:10
yep, and consolidate methods (that make sense) ash
mfomitchev
2014/08/05 19:56:57
Done. Created a separate review for ash changes: h
|
| + gfx::Point* point); |
| + |
| +// Converts the |point| from the screen coordinates to a given |window|'s |
| +// coordinates. |
| +void ConvertPointFromScreen(const aura::Window* window, |
| + gfx::Point* point_in_screen); |
| + |
| +} // namespace athena |
| + |
| +#endif // ATHENA_WM_COORDINATE_CONVERSION_H_ |