| Index: views/mouse_watcher.cc
|
| ===================================================================
|
| --- views/mouse_watcher.cc (revision 88218)
|
| +++ views/mouse_watcher.cc (working copy)
|
| @@ -96,12 +96,12 @@
|
|
|
| // Returns true if the mouse is over the view's window.
|
| bool IsMouseOverWindow() {
|
| - Window* window = view()->GetWindow();
|
| - if (!window)
|
| + Widget* widget = view()->GetWidget();
|
| + if (!widget)
|
| return false;
|
|
|
| return Screen::GetWindowAtCursorScreenPoint() ==
|
| - window->GetNativeWindow();
|
| + widget->GetNativeWindow();
|
| }
|
|
|
| // Called from the message loop observer when a mouse movement has occurred.
|
|
|