Chromium Code Reviews| 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 909 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 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 Loading... | |
| 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_ |
| OLD | NEW |