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 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
228 // specified, it's in screen's global coordinate system. | 228 // specified, it's in screen's global coordinate system. |
229 gfx::Rect bounds; | 229 gfx::Rect bounds; |
230 // When set, this value is used as the Widget's NativeWidget implementation. | 230 // When set, this value is used as the Widget's NativeWidget implementation. |
231 // The Widget will not construct a default one. Default is NULL. | 231 // The Widget will not construct a default one. Default is NULL. |
232 NativeWidget* native_widget; | 232 NativeWidget* native_widget; |
233 // Aura-only. Provides a DesktopWindowTreeHost implementation to use instead | 233 // Aura-only. Provides a DesktopWindowTreeHost implementation to use instead |
234 // of the default one. | 234 // of the default one. |
235 // TODO(beng): Figure out if there's a better way to expose this, e.g. get | 235 // TODO(beng): Figure out if there's a better way to expose this, e.g. get |
236 // rid of NW subclasses and do this all via message handling. | 236 // rid of NW subclasses and do this all via message handling. |
237 DesktopWindowTreeHost* desktop_window_tree_host; | 237 DesktopWindowTreeHost* desktop_window_tree_host; |
238 // Whether this window is intended to be a toplevel window with no | |
239 // attachment to any other window. (This may be a transient window if | |
240 // |parent| is set.) | |
241 bool top_level; | |
242 // Only used by NativeWidgetAura. Specifies the type of layer for the | 238 // Only used by NativeWidgetAura. Specifies the type of layer for the |
243 // aura::Window. Default is WINDOW_LAYER_TEXTURED. | 239 // aura::Window. Default is WINDOW_LAYER_TEXTURED. |
244 aura::WindowLayerType layer_type; | 240 aura::WindowLayerType layer_type; |
245 // Only used by Aura. Provides a context window whose RootWindow is | 241 // Only used by Aura. Provides a context window whose RootWindow is |
246 // consulted during widget creation to determine where in the Window | 242 // consulted during widget creation to determine where in the Window |
247 // hierarchy this widget should be placed. (This is separate from |parent|; | 243 // hierarchy this widget should be placed. (This is separate from |parent|; |
248 // if you pass a RootWindow to |parent|, your window will be parented to | 244 // if you pass a RootWindow to |parent|, your window will be parented to |
249 // |parent|. If you pass a RootWindow to |context|, we ask that RootWindow | 245 // |parent|. If you pass a RootWindow to |context|, we ask that RootWindow |
250 // where it wants your window placed.) NULL is not allowed if you are using | 246 // where it wants your window placed.) NULL is not allowed if you are using |
251 // aura. | 247 // aura. |
(...skipping 684 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
936 bool movement_disabled_; | 932 bool movement_disabled_; |
937 | 933 |
938 ScopedObserver<ui::NativeTheme, ui::NativeThemeObserver> observer_manager_; | 934 ScopedObserver<ui::NativeTheme, ui::NativeThemeObserver> observer_manager_; |
939 | 935 |
940 DISALLOW_COPY_AND_ASSIGN(Widget); | 936 DISALLOW_COPY_AND_ASSIGN(Widget); |
941 }; | 937 }; |
942 | 938 |
943 } // namespace views | 939 } // namespace views |
944 | 940 |
945 #endif // UI_VIEWS_WIDGET_WIDGET_H_ | 941 #endif // UI_VIEWS_WIDGET_WIDGET_H_ |
OLD | NEW |