Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(291)

Unified Diff: views/mouse_watcher.cc

Issue 7054052: Move more from Window onto Widget. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « views/desktop/desktop_window.cc ('k') | views/view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
« no previous file with comments | « views/desktop/desktop_window.cc ('k') | views/view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698