diff options
author | erg@chromium.org <erg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-04-25 01:12:28 +0000 |
---|---|---|
committer | erg@chromium.org <erg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-04-25 01:12:28 +0000 |
commit | fc72e7f7f5d5ef9dd5bffe5fdabd5caf4e269321 (patch) | |
tree | 41e79a906fa536ae029e4e212c3af8e2a2c4aacd /ash/tooltips/tooltip_controller.cc | |
parent | b6a25105cd5a036da7a652598b1331ff685d027a (diff) | |
download | chromium_src-fc72e7f7f5d5ef9dd5bffe5fdabd5caf4e269321.zip chromium_src-fc72e7f7f5d5ef9dd5bffe5fdabd5caf4e269321.tar.gz chromium_src-fc72e7f7f5d5ef9dd5bffe5fdabd5caf4e269321.tar.bz2 |
Ash/aura split: NativeWidgetAura::GetWindowScreenBounds() should return screen bounds.
- Renames aura::Window::GetScreenBounds() to ::GetBoundsInRootWindow(),
which is what it really does.
- NativeWidgetAura now gives its NativeWidgetHelperAura a chance to
modify those bounds.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/10210005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@133831 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/tooltips/tooltip_controller.cc')
-rw-r--r-- | ash/tooltips/tooltip_controller.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ash/tooltips/tooltip_controller.cc b/ash/tooltips/tooltip_controller.cc index ba69352..341128d 100644 --- a/ash/tooltips/tooltip_controller.cc +++ b/ash/tooltips/tooltip_controller.cc @@ -405,7 +405,8 @@ void TooltipController::UpdateIfRequired() { } else { string16 tooltip_text(tooltip_text_); gfx::Point widget_loc = curr_mouse_loc_; - widget_loc = widget_loc.Add(tooltip_window_->GetScreenBounds().origin()); + widget_loc = widget_loc.Add( + tooltip_window_->GetBoundsInRootWindow().origin()); tooltip_->SetText(tooltip_text, widget_loc); tooltip_->Show(); } |