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 DesktopWindowTreeHost; | 55 class DesktopRootWindowHost; |
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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 bool double_buffer; | 200 bool double_buffer; |
201 gfx::NativeView parent; | 201 gfx::NativeView parent; |
202 // Specifies the initial bounds of the Widget. Default is empty, which means | 202 // Specifies the initial bounds of the Widget. Default is empty, which means |
203 // the NativeWidget may specify a default size. If the parent is specified, | 203 // the NativeWidget may specify a default size. If the parent is specified, |
204 // |bounds| is in the parent's coordinate system. If the parent is not | 204 // |bounds| is in the parent's coordinate system. If the parent is not |
205 // specified, it's in screen's global coordinate system. | 205 // specified, it's in screen's global coordinate system. |
206 gfx::Rect bounds; | 206 gfx::Rect bounds; |
207 // When set, this value is used as the Widget's NativeWidget implementation. | 207 // When set, this value is used as the Widget's NativeWidget implementation. |
208 // The Widget will not construct a default one. Default is NULL. | 208 // The Widget will not construct a default one. Default is NULL. |
209 NativeWidget* native_widget; | 209 NativeWidget* native_widget; |
210 // Aura-only. Provides a DesktopWindowTreeHost implementation to use instead | 210 // Aura-only. Provides a DesktopRootWindowHost implementation to use instead |
211 // of the default one. | 211 // of the default one. |
212 // TODO(beng): Figure out if there's a better way to expose this, e.g. get | 212 // TODO(beng): Figure out if there's a better way to expose this, e.g. get |
213 // rid of NW subclasses and do this all via message handling. | 213 // rid of NW subclasses and do this all via message handling. |
214 DesktopWindowTreeHost* desktop_root_window_host; | 214 DesktopRootWindowHost* desktop_root_window_host; |
215 // Whether this window is intended to be a toplevel window with no | 215 // Whether this window is intended to be a toplevel window with no |
216 // attachment to any other window. (This may be a transient window if | 216 // attachment to any other window. (This may be a transient window if |
217 // |parent| is set.) | 217 // |parent| is set.) |
218 bool top_level; | 218 bool top_level; |
219 // Only used by NativeWidgetAura. Specifies the type of layer for the | 219 // Only used by NativeWidgetAura. Specifies the type of layer for the |
220 // aura::Window. Default is LAYER_TEXTURED. | 220 // aura::Window. Default is LAYER_TEXTURED. |
221 ui::LayerType layer_type; | 221 ui::LayerType layer_type; |
222 // Only used by Aura. Provides a context window whose RootWindow is | 222 // Only used by Aura. Provides a context window whose RootWindow is |
223 // consulted during widget creation to determine where in the Window | 223 // consulted during widget creation to determine where in the Window |
224 // hierarchy this widget should be placed. (This is separate from |parent|; | 224 // hierarchy this widget should be placed. (This is separate from |parent|; |
(...skipping 664 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
889 // True when window movement via mouse interaction with the frame should be | 889 // True when window movement via mouse interaction with the frame should be |
890 // disabled. | 890 // disabled. |
891 bool movement_disabled_; | 891 bool movement_disabled_; |
892 | 892 |
893 DISALLOW_COPY_AND_ASSIGN(Widget); | 893 DISALLOW_COPY_AND_ASSIGN(Widget); |
894 }; | 894 }; |
895 | 895 |
896 } // namespace views | 896 } // namespace views |
897 | 897 |
898 #endif // UI_VIEWS_WIDGET_WIDGET_H_ | 898 #endif // UI_VIEWS_WIDGET_WIDGET_H_ |
OLD | NEW |