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

Unified Diff: ui/views/widget/widget.h

Issue 1297373004: Don't synthesize mousemove events if the mouse cursor is not on the widget (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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 | « no previous file | ui/views/widget/widget.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/widget/widget.h
diff --git a/ui/views/widget/widget.h b/ui/views/widget/widget.h
index 320332bec2461bd309d694e3651eabc7ba38c712..c7b9a332905f1f3a0c2e69007250f726eef030df 100644
--- a/ui/views/widget/widget.h
+++ b/ui/views/widget/widget.h
@@ -927,6 +927,9 @@ class VIEWS_EXPORT Widget : public internal::NativeWidgetDelegate,
// Whether native widget has been destroyed.
bool native_widget_destroyed_;
+ // Whether the mouse cursor is on this widget.
+ bool hovered_;
oshima 2015/08/20 08:46:34 maybe is_mouse_on_widget_ ? I'd defer to sky thoug
yoshiki 2015/08/20 14:59:02 Changed the name as for now.
+
// TODO(beng): Remove NativeWidgetGtk's dependence on these:
// If true, the mouse is currently down.
bool is_mouse_button_pressed_;
« no previous file with comments | « no previous file | ui/views/widget/widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698