| 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 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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. |
| 158 // Defaults to false. | 158 // Defaults to false. |
| 159 bool transparent; | 159 bool transparent; |
| 160 bool accept_events; | 160 bool accept_events; |
| 161 bool can_activate; | 161 bool can_activate; |
| 162 bool keep_on_top; | 162 bool keep_on_top; |
| 163 Ownership ownership; | 163 Ownership ownership; |
| 164 bool mirror_origin_in_rtl; | 164 bool mirror_origin_in_rtl; |
| 165 bool has_dropshadow; | 165 bool has_dropshadow; |
| 166 // Only used by NativeWidgetWin. Specifies that the system default caption |
| 167 // and icon should not be rendered, and that the client area should be |
| 168 // equivalent to the window area. |
| 169 bool remove_standard_frame; |
| 166 // Whether the widget should be maximized or minimized. | 170 // Whether the widget should be maximized or minimized. |
| 167 ui::WindowShowState show_state; | 171 ui::WindowShowState show_state; |
| 168 // Should the widget be double buffered? Default is false. | 172 // Should the widget be double buffered? Default is false. |
| 169 bool double_buffer; | 173 bool double_buffer; |
| 170 gfx::NativeView parent; | 174 gfx::NativeView parent; |
| 171 Widget* parent_widget; | 175 Widget* parent_widget; |
| 172 // Specifies the initial bounds of the Widget. Default is empty, which means | 176 // Specifies the initial bounds of the Widget. Default is empty, which means |
| 173 // the NativeWidget may specify a default size. | 177 // the NativeWidget may specify a default size. |
| 174 gfx::Rect bounds; | 178 gfx::Rect bounds; |
| 175 // When set, this value is used as the Widget's NativeWidget implementation. | 179 // When set, this value is used as the Widget's NativeWidget implementation. |
| (...skipping 586 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 762 // duplicate move events even though the mouse hasn't moved. | 766 // duplicate move events even though the mouse hasn't moved. |
| 763 bool last_mouse_event_was_move_; | 767 bool last_mouse_event_was_move_; |
| 764 gfx::Point last_mouse_event_position_; | 768 gfx::Point last_mouse_event_position_; |
| 765 | 769 |
| 766 DISALLOW_COPY_AND_ASSIGN(Widget); | 770 DISALLOW_COPY_AND_ASSIGN(Widget); |
| 767 }; | 771 }; |
| 768 | 772 |
| 769 } // namespace views | 773 } // namespace views |
| 770 | 774 |
| 771 #endif // UI_VIEWS_WIDGET_WIDGET_H_ | 775 #endif // UI_VIEWS_WIDGET_WIDGET_H_ |
| OLD | NEW |