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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 class Compositor; | 45 class Compositor; |
46 class DefaultThemeProvider; | 46 class DefaultThemeProvider; |
47 class Layer; | 47 class Layer; |
48 class NativeTheme; | 48 class NativeTheme; |
49 class OSExchangeData; | 49 class OSExchangeData; |
50 class ThemeProvider; | 50 class ThemeProvider; |
51 } | 51 } |
52 | 52 |
53 namespace views { | 53 namespace views { |
54 | 54 |
55 class DesktopRootWindowHost; | 55 class DesktopWindowTreeHost; |
56 class InputMethod; | 56 class InputMethod; |
57 class NativeWidget; | 57 class NativeWidget; |
58 class NonClientFrameView; | 58 class NonClientFrameView; |
59 class TooltipManager; | 59 class TooltipManager; |
60 class View; | 60 class View; |
61 class WidgetDelegate; | 61 class WidgetDelegate; |
62 class WidgetObserver; | 62 class WidgetObserver; |
63 | 63 |
64 namespace internal { | 64 namespace internal { |
65 class NativeWidgetPrivate; | 65 class NativeWidgetPrivate; |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 bool double_buffer; | 198 bool double_buffer; |
199 gfx::NativeView parent; | 199 gfx::NativeView parent; |
200 // Specifies the initial bounds of the Widget. Default is empty, which means | 200 // Specifies the initial bounds of the Widget. Default is empty, which means |
201 // the NativeWidget may specify a default size. If the parent is specified, | 201 // the NativeWidget may specify a default size. If the parent is specified, |
202 // |bounds| is in the parent's coordinate system. If the parent is not | 202 // |bounds| is in the parent's coordinate system. If the parent is not |
203 // specified, it's in screen's global coordinate system. | 203 // specified, it's in screen's global coordinate system. |
204 gfx::Rect bounds; | 204 gfx::Rect bounds; |
205 // When set, this value is used as the Widget's NativeWidget implementation. | 205 // When set, this value is used as the Widget's NativeWidget implementation. |
206 // The Widget will not construct a default one. Default is NULL. | 206 // The Widget will not construct a default one. Default is NULL. |
207 NativeWidget* native_widget; | 207 NativeWidget* native_widget; |
208 // Aura-only. Provides a DesktopRootWindowHost implementation to use instead | 208 // Aura-only. Provides a DesktopWindowTreeHost 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 DesktopWindowTreeHost* 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 LAYER_TEXTURED. |
219 ui::LayerType layer_type; | 219 ui::LayerType 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|; |
(...skipping 659 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 |