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 #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 bool remove_standard_frame; | |
|
Ben Goodger (Google)
2012/02/07 20:18:57
Please document what this does, and note that it i
jeremya
2012/02/08 00:35:16
Done.
| |
| 166 // Whether the widget should be maximized or minimized. | 167 // Whether the widget should be maximized or minimized. |
| 167 ui::WindowShowState show_state; | 168 ui::WindowShowState show_state; |
| 168 // Should the widget be double buffered? Default is false. | 169 // Should the widget be double buffered? Default is false. |
| 169 bool double_buffer; | 170 bool double_buffer; |
| 170 gfx::NativeView parent; | 171 gfx::NativeView parent; |
| 171 Widget* parent_widget; | 172 Widget* parent_widget; |
| 172 // Specifies the initial bounds of the Widget. Default is empty, which means | 173 // Specifies the initial bounds of the Widget. Default is empty, which means |
| 173 // the NativeWidget may specify a default size. | 174 // the NativeWidget may specify a default size. |
| 174 gfx::Rect bounds; | 175 gfx::Rect bounds; |
| 175 // When set, this value is used as the Widget's NativeWidget implementation. | 176 // When set, this value is used as the Widget's NativeWidget implementation. |
| (...skipping 583 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 759 // duplicate move events even though the mouse hasn't moved. | 760 // duplicate move events even though the mouse hasn't moved. |
| 760 bool last_mouse_event_was_move_; | 761 bool last_mouse_event_was_move_; |
| 761 gfx::Point last_mouse_event_position_; | 762 gfx::Point last_mouse_event_position_; |
| 762 | 763 |
| 763 DISALLOW_COPY_AND_ASSIGN(Widget); | 764 DISALLOW_COPY_AND_ASSIGN(Widget); |
| 764 }; | 765 }; |
| 765 | 766 |
| 766 } // namespace views | 767 } // namespace views |
| 767 | 768 |
| 768 #endif // UI_VIEWS_WIDGET_WIDGET_H_ | 769 #endif // UI_VIEWS_WIDGET_WIDGET_H_ |
| OLD | NEW |