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

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: Change the property name and add a test 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') | ui/views/widget/widget.cc » ('J')
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..ca9a2e6ef74c6c98ca3a5497e14137e54f1cc658 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 is_mouse_on_widget_;
+
// 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') | ui/views/widget/widget.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698