OLD | NEW |
(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 #include "athena/wm/coordinate_conversion.h" |
| 6 |
| 7 #include "ui/aura/client/screen_position_client.h" |
| 8 #include "ui/gfx/point.h" |
| 9 |
| 10 namespace athena { |
| 11 |
| 12 void ConvertPointToScreen(const aura::Window* window, gfx::Point* point) { |
| 13 CHECK(aura::client::GetScreenPositionClient(window->GetRootWindow())); |
| 14 aura::client::GetScreenPositionClient(window->GetRootWindow())-> |
| 15 ConvertPointToScreen(window, point); |
| 16 } |
| 17 |
| 18 void ConvertPointFromScreen(const aura::Window* window, |
| 19 gfx::Point* point_in_screen) { |
| 20 aura::client::GetScreenPositionClient(window->GetRootWindow())-> |
| 21 ConvertPointFromScreen(window, point_in_screen); |
| 22 } |
| 23 |
| 24 } // namespace athena |
OLD | NEW |