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

Side by Side Diff: ui/views/widget/widget.h

Issue 560053002: Do not interchange MOUSE_MOVED and MOUSE_DRAGGED events in Widget (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: for review Created 6 years, 2 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
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 902 matching lines...) Expand 10 before | Expand all | Expand 10 after
913 913
914 // See |is_top_level()| accessor. 914 // See |is_top_level()| accessor.
915 bool is_top_level_; 915 bool is_top_level_;
916 916
917 // Tracks whether native widget has been initialized. 917 // Tracks whether native widget has been initialized.
918 bool native_widget_initialized_; 918 bool native_widget_initialized_;
919 919
920 // Whether native widget has been destroyed. 920 // Whether native widget has been destroyed.
921 bool native_widget_destroyed_; 921 bool native_widget_destroyed_;
922 922
923 // TODO(beng): Remove NativeWidgetGtk's dependence on these: 923 // TODO(beng): Remove NativeWidgetGtk's dependence on this:
sadrul 2014/09/25 16:19:38 You can just remove this comment. NativeWidgetGtk
tdanderson 2014/09/26 18:49:40 Done.
924 // If true, the mouse is currently down.
925 bool is_mouse_button_pressed_;
926
927 // True if capture losses should be ignored. 924 // True if capture losses should be ignored.
928 bool ignore_capture_loss_; 925 bool ignore_capture_loss_;
929 926
930 // TODO(beng): Remove NativeWidgetGtk's dependence on these: 927 // TODO(beng): Remove NativeWidgetGtk's dependence on these:
931 // The following are used to detect duplicate mouse move events and not 928 // The following are used to detect duplicate mouse move events and not
932 // deliver them. Displaying a window may result in the system generating 929 // deliver them. Displaying a window may result in the system generating
933 // duplicate move events even though the mouse hasn't moved. 930 // duplicate move events even though the mouse hasn't moved.
934 bool last_mouse_event_was_move_; 931 bool last_mouse_event_was_move_;
935 gfx::Point last_mouse_event_position_; 932 gfx::Point last_mouse_event_position_;
sadrul 2014/09/25 16:19:38 We should also attempt removing these and see what
tdanderson 2014/09/26 18:49:40 Agreed, I will try that in a follow-up CL. If I we
936 933
937 // True if event capture should be released on a mouse up event. Default is 934 // True if event capture should be released on a mouse up event. Default is
938 // true. 935 // true.
939 bool auto_release_capture_; 936 bool auto_release_capture_;
940 937
941 // See description in GetRootLayers(). 938 // See description in GetRootLayers().
942 std::vector<ui::Layer*> root_layers_; 939 std::vector<ui::Layer*> root_layers_;
943 940
944 // Is |root_layers_| out of date? 941 // Is |root_layers_| out of date?
945 bool root_layers_dirty_; 942 bool root_layers_dirty_;
946 943
947 // True when window movement via mouse interaction with the frame should be 944 // True when window movement via mouse interaction with the frame should be
948 // disabled. 945 // disabled.
949 bool movement_disabled_; 946 bool movement_disabled_;
950 947
951 ScopedObserver<ui::NativeTheme, ui::NativeThemeObserver> observer_manager_; 948 ScopedObserver<ui::NativeTheme, ui::NativeThemeObserver> observer_manager_;
952 949
953 DISALLOW_COPY_AND_ASSIGN(Widget); 950 DISALLOW_COPY_AND_ASSIGN(Widget);
954 }; 951 };
955 952
956 } // namespace views 953 } // namespace views
957 954
958 #endif // UI_VIEWS_WIDGET_WIDGET_H_ 955 #endif // UI_VIEWS_WIDGET_WIDGET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698