diff options
author | dpolukhin@chromium.org <dpolukhin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-23 16:03:05 +0000 |
---|---|---|
committer | dpolukhin@chromium.org <dpolukhin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-23 16:03:05 +0000 |
commit | a0949a47eb937d208779d0894170eaa5c5e07257 (patch) | |
tree | b3eb4d3114c04b488d02e94679d538551312da89 /views | |
parent | ac3b2592ae2fa2ec77e4ac82f644220499dd13e9 (diff) | |
download | chromium_src-a0949a47eb937d208779d0894170eaa5c5e07257.zip chromium_src-a0949a47eb937d208779d0894170eaa5c5e07257.tar.gz chromium_src-a0949a47eb937d208779d0894170eaa5c5e07257.tar.bz2 |
Fixed error message bubbles according to the latest mocks
BUG=chromium-os:5762, chromium-os:5761
TEST=Enter wrong password on Chrome OS login screen.
Review URL: http://codereview.chromium.org/3201003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57060 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views')
-rw-r--r-- | views/view.cc | 6 | ||||
-rw-r--r-- | views/view.h | 3 |
2 files changed, 9 insertions, 0 deletions
diff --git a/views/view.cc b/views/view.cc index 9acbd47..04dbc40 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 diff --git a/views/view.h b/views/view.h index c5268c2..293c5c7 100644 --- a/views/view.h +++ b/views/view.h @@ -644,6 +644,9 @@ class View : public AcceleratorTarget { // screen. This is useful for example when placing popup windows. static void ConvertPointToScreen(const View* src, gfx::Point* point); + // Return the bounds of the View in screen coordinate system. + gfx::Rect GetScreenBounds() const; + // Event Handlers // This method is invoked when the user clicks on this view. |