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> |
11 | 11 |
12 #include "base/gtest_prod_util.h" | 12 #include "base/gtest_prod_util.h" |
13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
14 #include "base/observer_list.h" | 14 #include "base/observer_list.h" |
| 15 #include "ui/aura/window_layer_type.h" |
15 #include "ui/base/ui_base_types.h" | 16 #include "ui/base/ui_base_types.h" |
16 #include "ui/compositor/layer_type.h" | |
17 #include "ui/gfx/native_widget_types.h" | 17 #include "ui/gfx/native_widget_types.h" |
18 #include "ui/gfx/rect.h" | 18 #include "ui/gfx/rect.h" |
19 #include "ui/views/focus/focus_manager.h" | 19 #include "ui/views/focus/focus_manager.h" |
20 #include "ui/views/widget/native_widget_delegate.h" | 20 #include "ui/views/widget/native_widget_delegate.h" |
21 #include "ui/views/window/client_view.h" | 21 #include "ui/views/window/client_view.h" |
22 #include "ui/views/window/non_client_view.h" | 22 #include "ui/views/window/non_client_view.h" |
23 | 23 |
24 #if defined(OS_WIN) | 24 #if defined(OS_WIN) |
25 // Windows headers define macros for these function names which screw with us. | 25 // Windows headers define macros for these function names which screw with us. |
26 #if defined(IsMaximized) | 26 #if defined(IsMaximized) |
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 // Aura-only. Provides a DesktopRootWindowHost implementation to use instead | 208 // Aura-only. Provides a DesktopRootWindowHost implementation to use instead |
209 // of the default one. | 209 // of the default one. |
210 // TODO(beng): Figure out if there's a better way to expose this, e.g. get | 210 // TODO(beng): Figure out if there's a better way to expose this, e.g. get |
211 // rid of NW subclasses and do this all via message handling. | 211 // rid of NW subclasses and do this all via message handling. |
212 DesktopRootWindowHost* desktop_root_window_host; | 212 DesktopRootWindowHost* desktop_root_window_host; |
213 // Whether this window is intended to be a toplevel window with no | 213 // Whether this window is intended to be a toplevel window with no |
214 // attachment to any other window. (This may be a transient window if | 214 // attachment to any other window. (This may be a transient window if |
215 // |parent| is set.) | 215 // |parent| is set.) |
216 bool top_level; | 216 bool top_level; |
217 // Only used by NativeWidgetAura. Specifies the type of layer for the | 217 // Only used by NativeWidgetAura. Specifies the type of layer for the |
218 // aura::Window. Default is LAYER_TEXTURED. | 218 // aura::Window. Default is WINDOW_LAYER_TEXTURED. |
219 ui::LayerType layer_type; | 219 aura::WindowLayerType layer_type; |
220 // Only used by Aura. Provides a context window whose RootWindow is | 220 // Only used by Aura. Provides a context window whose RootWindow is |
221 // consulted during widget creation to determine where in the Window | 221 // consulted during widget creation to determine where in the Window |
222 // hierarchy this widget should be placed. (This is separate from |parent|; | 222 // hierarchy this widget should be placed. (This is separate from |parent|; |
223 // if you pass a RootWindow to |parent|, your window will be parented to | 223 // if you pass a RootWindow to |parent|, your window will be parented to |
224 // |parent|. If you pass a RootWindow to |context|, we ask that RootWindow | 224 // |parent|. If you pass a RootWindow to |context|, we ask that RootWindow |
225 // where it wants your window placed.) NULL is not allowed if you are using | 225 // where it wants your window placed.) NULL is not allowed if you are using |
226 // aura. | 226 // aura. |
227 gfx::NativeView context; | 227 gfx::NativeView context; |
228 // Only used by X11, for root level windows. Specifies the res_name and | 228 // Only used by X11, for root level windows. Specifies the res_name and |
229 // res_class fields, respectively, of the WM_CLASS window property. Controls | 229 // res_class fields, respectively, of the WM_CLASS window property. Controls |
(...skipping 652 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
882 // True when window movement via mouse interaction with the frame should be | 882 // True when window movement via mouse interaction with the frame should be |
883 // disabled. | 883 // disabled. |
884 bool movement_disabled_; | 884 bool movement_disabled_; |
885 | 885 |
886 DISALLOW_COPY_AND_ASSIGN(Widget); | 886 DISALLOW_COPY_AND_ASSIGN(Widget); |
887 }; | 887 }; |
888 | 888 |
889 } // namespace views | 889 } // namespace views |
890 | 890 |
891 #endif // UI_VIEWS_WIDGET_WIDGET_H_ | 891 #endif // UI_VIEWS_WIDGET_WIDGET_H_ |
OLD | NEW |