From 97a311466bc7db336d8315587ff1b2ec06f7ea9c Mon Sep 17 00:00:00 2001 From: "ben@chromium.org" Date: Tue, 8 Feb 2011 00:09:16 +0000 Subject: Rework basic bounds methods on View to match new V2 API: SetBounds(const gfx::Rect& rect) -> SetBoundsRect(); DidChangeBounds()->OnBoundsChanged() GetLocalBounds(false)->GetLocalBounds() GetLocalBounds(true)->GetContentsBounds() Moved GetBounds(), GetX(), and GetPosition into RTL section. http://crbug.com/72040 TEST=none Review URL: http://codereview.chromium.org/6410109 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@74052 0039d316-1c4b-4281-b951-d872f2087c98 --- views/mouse_watcher.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'views/mouse_watcher.cc') diff --git a/views/mouse_watcher.cc b/views/mouse_watcher.cc index 033a6f6b..b4c76d8 100644 --- a/views/mouse_watcher.cc +++ b/views/mouse_watcher.cc @@ -80,7 +80,7 @@ class MouseWatcher::Observer : public MessageLoopForUI::Observer { // Returns whether or not the cursor is currently in the view's "zone" which // is defined as a slightly larger region than the view. bool IsCursorInViewZone() { - gfx::Rect bounds = view()->GetLocalBounds(true); + gfx::Rect bounds = view()->GetContentsBounds(); gfx::Point view_topleft(bounds.origin()); View::ConvertPointToScreen(view(), &view_topleft); bounds.set_origin(view_topleft); -- cgit v1.1