Index: views/view.cc |
diff --git a/views/view.cc b/views/view.cc |
index 9acbd47ce1390be067eff1095b2bab21bfb146fd..04dbc40e0e5eac9ce70851288addcc640ae2a7af 100644 |
--- a/views/view.cc |
+++ b/views/view.cc |
@@ -1257,6 +1257,12 @@ void View::ConvertPointToScreen(const View* src, gfx::Point* p) { |
} |
} |
+gfx::Rect View::GetScreenBounds() const { |
+ gfx::Point origin; |
+ View::ConvertPointToScreen(this, &origin); |
+ return gfx::Rect(origin, size()); |
+} |
+ |
///////////////////////////////////////////////////////////////////////////// |
// |
// View - event handlers |