Index: views/widget/widget.h |
diff --git a/views/widget/widget.h b/views/widget/widget.h |
index c164c166445badf7a3813951040c5ea882093495..93ecf77741216b05a44b6e49e4df264be3f8601f 100644 |
--- a/views/widget/widget.h |
+++ b/views/widget/widget.h |
@@ -91,6 +91,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): |