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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « no previous file | ui/views/widget/widget.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_VIEWS_WIDGET_WIDGET_H_ 5 #ifndef UI_VIEWS_WIDGET_WIDGET_H_
6 #define UI_VIEWS_WIDGET_WIDGET_H_ 6 #define UI_VIEWS_WIDGET_WIDGET_H_
7 7
8 #include <set> 8 #include <set>
9 #include <stack> 9 #include <stack>
10 #include <vector> 10 #include <vector>
(...skipping 909 matching lines...) Expand 10 before | Expand all | Expand 10 after
920 920
921 // See |is_top_level()| accessor. 921 // See |is_top_level()| accessor.
922 bool is_top_level_; 922 bool is_top_level_;
923 923
924 // Tracks whether native widget has been initialized. 924 // Tracks whether native widget has been initialized.
925 bool native_widget_initialized_; 925 bool native_widget_initialized_;
926 926
927 // Whether native widget has been destroyed. 927 // Whether native widget has been destroyed.
928 bool native_widget_destroyed_; 928 bool native_widget_destroyed_;
929 929
930 // Whether the mouse cursor is on this widget.
931 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.
932
930 // TODO(beng): Remove NativeWidgetGtk's dependence on these: 933 // TODO(beng): Remove NativeWidgetGtk's dependence on these:
931 // If true, the mouse is currently down. 934 // If true, the mouse is currently down.
932 bool is_mouse_button_pressed_; 935 bool is_mouse_button_pressed_;
933 936
934 // True if capture losses should be ignored. 937 // True if capture losses should be ignored.
935 bool ignore_capture_loss_; 938 bool ignore_capture_loss_;
936 939
937 // TODO(beng): Remove NativeWidgetGtk's dependence on these: 940 // TODO(beng): Remove NativeWidgetGtk's dependence on these:
938 // The following are used to detect duplicate mouse move events and not 941 // The following are used to detect duplicate mouse move events and not
939 // deliver them. Displaying a window may result in the system generating 942 // deliver them. Displaying a window may result in the system generating
(...skipping 16 matching lines...) Expand all
956 bool movement_disabled_; 959 bool movement_disabled_;
957 960
958 ScopedObserver<ui::NativeTheme, ui::NativeThemeObserver> observer_manager_; 961 ScopedObserver<ui::NativeTheme, ui::NativeThemeObserver> observer_manager_;
959 962
960 DISALLOW_COPY_AND_ASSIGN(Widget); 963 DISALLOW_COPY_AND_ASSIGN(Widget);
961 }; 964 };
962 965
963 } // namespace views 966 } // namespace views
964 967
965 #endif // UI_VIEWS_WIDGET_WIDGET_H_ 968 #endif // UI_VIEWS_WIDGET_WIDGET_H_
OLDNEW
« 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