Index: views/widget/widget.h |
diff --git a/views/widget/widget.h b/views/widget/widget.h |
index b0e22a31abfbf462ae2500bdc8b58bd504e9e49f..f4e32f7552e4e527748a784385772d5a264c82da 100644 |
--- a/views/widget/widget.h |
+++ b/views/widget/widget.h |
@@ -95,6 +95,14 @@ class Widget : public internal::NativeWidgetDelegate, |
// view hierarchies that the locale has changed. |
static void NotifyLocaleChanged(); |
+ // Converts a rectangle from one Widget's coordinate system to another's. |
+ // Returns false if the conversion couldn't be made, because either these two |
+ // Widgets do not have a common ancestor or they are not on the screen yet. |
+ // The value of |*rect| won't be changed when false is returned. |
+ static bool ConvertRect(const Widget* source, |
+ const Widget* target, |
+ gfx::Rect* rect); |
+ |
// Unconverted methods ------------------------------------------------------- |
// TODO(beng): |