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