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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <set> | 9 #include <set> |
10 #include <stack> | 10 #include <stack> |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 // destroyed. | 137 // destroyed. |
138 NATIVE_WIDGET_OWNS_WIDGET, | 138 NATIVE_WIDGET_OWNS_WIDGET, |
139 // Used when the Widget is owned by someone other than the NativeWidget, | 139 // Used when the Widget is owned by someone other than the NativeWidget, |
140 // e.g. a scoped_ptr in tests. | 140 // e.g. a scoped_ptr in tests. |
141 WIDGET_OWNS_NATIVE_WIDGET | 141 WIDGET_OWNS_NATIVE_WIDGET |
142 }; | 142 }; |
143 | 143 |
144 InitParams(); | 144 InitParams(); |
145 explicit InitParams(Type type); | 145 explicit InitParams(Type type); |
146 | 146 |
147 // If |parent_widget| is non-null, it's native view is returned, otherwise | 147 // If |parent_widget| is non-null, its native view is returned, otherwise |
148 // |parent| is returned. | 148 // |parent| is returned. |
149 gfx::NativeView GetParent() const; | 149 gfx::NativeView GetParent() const; |
150 | 150 |
151 Type type; | 151 Type type; |
152 // If NULL, a default implementation will be constructed. | 152 // If NULL, a default implementation will be constructed. |
153 WidgetDelegate* delegate; | 153 WidgetDelegate* delegate; |
154 bool child; | 154 bool child; |
155 bool transient; | 155 bool transient; |
156 // If true, the widget may be fully or partially transparent. If false, | 156 // If true, the widget may be fully or partially transparent. If false, |
157 // we can perform optimizations based on the widget being fully opaque. | 157 // we can perform optimizations based on the widget being fully opaque. |
(...skipping 621 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
779 // duplicate move events even though the mouse hasn't moved. | 779 // duplicate move events even though the mouse hasn't moved. |
780 bool last_mouse_event_was_move_; | 780 bool last_mouse_event_was_move_; |
781 gfx::Point last_mouse_event_position_; | 781 gfx::Point last_mouse_event_position_; |
782 | 782 |
783 DISALLOW_COPY_AND_ASSIGN(Widget); | 783 DISALLOW_COPY_AND_ASSIGN(Widget); |
784 }; | 784 }; |
785 | 785 |
786 } // namespace views | 786 } // namespace views |
787 | 787 |
788 #endif // UI_VIEWS_WIDGET_WIDGET_H_ | 788 #endif // UI_VIEWS_WIDGET_WIDGET_H_ |
OLD | NEW |