Index: ui/aura/window.cc |
diff --git a/ui/aura/window.cc b/ui/aura/window.cc |
index 4a0fb350a56fbd4833d726f13ba07bdfcd42d11a..5724fee95618f25cd58a52569892363293c8a314 100644 |
--- a/ui/aura/window.cc |
+++ b/ui/aura/window.cc |
@@ -141,6 +141,14 @@ gfx::Rect Window::GetScreenBounds() const { |
return gfx::Rect(origin, local_bounds.size()); |
} |
+gfx::Point Window::GetPointInScreenCoordinates( |
+ const gfx::Point& local_point) { |
+ gfx::Point global_point = local_point; |
+ Window::ConvertPointToWindow( |
+ this, aura::Desktop::GetInstance(), &global_point); |
+ return global_point; |
+} |
+ |
void Window::Activate() { |
// If we support minimization need to ensure this restores the window first. |
aura::Desktop::GetInstance()->SetActiveWindow(this, this); |