OLD | NEW |
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 Loading... |
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: | |
924 // If true, the mouse is currently down. | |
925 bool is_mouse_button_pressed_; | |
926 | |
927 // True if capture losses should be ignored. | 923 // True if capture losses should be ignored. |
928 bool ignore_capture_loss_; | 924 bool ignore_capture_loss_; |
929 | 925 |
930 // TODO(beng): Remove NativeWidgetGtk's dependence on these: | |
931 // The following are used to detect duplicate mouse move events and not | 926 // The following are used to detect duplicate mouse move events and not |
932 // deliver them. Displaying a window may result in the system generating | 927 // deliver them. Displaying a window may result in the system generating |
933 // duplicate move events even though the mouse hasn't moved. | 928 // duplicate move events even though the mouse hasn't moved. |
| 929 // TODO(tdanderson): We may be able to remove these members. |
934 bool last_mouse_event_was_move_; | 930 bool last_mouse_event_was_move_; |
935 gfx::Point last_mouse_event_position_; | 931 gfx::Point last_mouse_event_position_; |
936 | 932 |
937 // True if event capture should be released on a mouse up event. Default is | 933 // True if event capture should be released on a mouse up event. Default is |
938 // true. | 934 // true. |
939 bool auto_release_capture_; | 935 bool auto_release_capture_; |
940 | 936 |
941 // See description in GetRootLayers(). | 937 // See description in GetRootLayers(). |
942 std::vector<ui::Layer*> root_layers_; | 938 std::vector<ui::Layer*> root_layers_; |
943 | 939 |
944 // Is |root_layers_| out of date? | 940 // Is |root_layers_| out of date? |
945 bool root_layers_dirty_; | 941 bool root_layers_dirty_; |
946 | 942 |
947 // True when window movement via mouse interaction with the frame should be | 943 // True when window movement via mouse interaction with the frame should be |
948 // disabled. | 944 // disabled. |
949 bool movement_disabled_; | 945 bool movement_disabled_; |
950 | 946 |
951 ScopedObserver<ui::NativeTheme, ui::NativeThemeObserver> observer_manager_; | 947 ScopedObserver<ui::NativeTheme, ui::NativeThemeObserver> observer_manager_; |
952 | 948 |
953 DISALLOW_COPY_AND_ASSIGN(Widget); | 949 DISALLOW_COPY_AND_ASSIGN(Widget); |
954 }; | 950 }; |
955 | 951 |
956 } // namespace views | 952 } // namespace views |
957 | 953 |
958 #endif // UI_VIEWS_WIDGET_WIDGET_H_ | 954 #endif // UI_VIEWS_WIDGET_WIDGET_H_ |
OLD | NEW |