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 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
180 // specified, it's in screen's global coordinate system. | 180 // specified, it's in screen's global coordinate system. |
181 gfx::Rect bounds; | 181 gfx::Rect bounds; |
182 // When set, this value is used as the Widget's NativeWidget implementation. | 182 // When set, this value is used as the Widget's NativeWidget implementation. |
183 // The Widget will not construct a default one. Default is NULL. | 183 // The Widget will not construct a default one. Default is NULL. |
184 NativeWidget* native_widget; | 184 NativeWidget* native_widget; |
185 // Aura-only. Provides a DesktopRootWindowHost implementation to use instead | 185 // Aura-only. Provides a DesktopRootWindowHost implementation to use instead |
186 // of the default one. | 186 // of the default one. |
187 // TODO(beng): Figure out if there's a better way to expose this, e.g. get | 187 // TODO(beng): Figure out if there's a better way to expose this, e.g. get |
188 // rid of NW subclasses and do this all via message handling. | 188 // rid of NW subclasses and do this all via message handling. |
189 DesktopRootWindowHost* desktop_root_window_host; | 189 DesktopRootWindowHost* desktop_root_window_host; |
190 // Whether this window is intended to be a toplevel window with no | |
191 // attachment to any other window. | |
robertshield
2012/12/14 01:15:58
I initially found it confusing that a Widget can b
| |
190 bool top_level; | 192 bool top_level; |
191 // Only used by NativeWidgetAura. Specifies the type of layer for the | 193 // Only used by NativeWidgetAura. Specifies the type of layer for the |
192 // aura::Window. Default is LAYER_TEXTURED. | 194 // aura::Window. Default is LAYER_TEXTURED. |
193 ui::LayerType layer_type; | 195 ui::LayerType layer_type; |
194 // Only used by Aura. Provides a context window whose RootWindow is | 196 // Only used by Aura. Provides a context window whose RootWindow is |
195 // consulted during widget creation to determine where in the Window | 197 // consulted during widget creation to determine where in the Window |
196 // hierarchy this widget should be placed. (This is separate from |parent|; | 198 // hierarchy this widget should be placed. (This is separate from |parent|; |
197 // if you pass a RootWindow to |parent|, your window will be parented to | 199 // if you pass a RootWindow to |parent|, your window will be parented to |
198 // |parent|. If you pass a RootWindow to |context|, we ask that RootWindow | 200 // |parent|. If you pass a RootWindow to |context|, we ask that RootWindow |
199 // where it wants your window placed.) NULL is not allowed if you are using | 201 // where it wants your window placed.) NULL is not allowed if you are using |
(...skipping 624 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
824 | 826 |
825 // Is |root_layers_| out of date? | 827 // Is |root_layers_| out of date? |
826 bool root_layers_dirty_; | 828 bool root_layers_dirty_; |
827 | 829 |
828 DISALLOW_COPY_AND_ASSIGN(Widget); | 830 DISALLOW_COPY_AND_ASSIGN(Widget); |
829 }; | 831 }; |
830 | 832 |
831 } // namespace views | 833 } // namespace views |
832 | 834 |
833 #endif // UI_VIEWS_WIDGET_WIDGET_H_ | 835 #endif // UI_VIEWS_WIDGET_WIDGET_H_ |
OLD | NEW |