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 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
247 static Widget* CreateWindowWithBounds(WidgetDelegate* delegate, | 247 static Widget* CreateWindowWithBounds(WidgetDelegate* delegate, |
248 const gfx::Rect& bounds); | 248 const gfx::Rect& bounds); |
249 | 249 |
250 // Creates a decorated window Widget with the specified properties. | 250 // Creates a decorated window Widget with the specified properties. |
251 static Widget* CreateWindowWithParent(WidgetDelegate* delegate, | 251 static Widget* CreateWindowWithParent(WidgetDelegate* delegate, |
252 gfx::NativeWindow parent); | 252 gfx::NativeWindow parent); |
253 static Widget* CreateWindowWithParentAndBounds(WidgetDelegate* delegate, | 253 static Widget* CreateWindowWithParentAndBounds(WidgetDelegate* delegate, |
254 gfx::NativeWindow parent, | 254 gfx::NativeWindow parent, |
255 const gfx::Rect& bounds); | 255 const gfx::Rect& bounds); |
256 | 256 |
257 // Creates a decorated window Widget in the same desktop context as | 257 // Creates a decorated window Widget in the same desktop context as |context|. |
258 // |context|. | |
259 static Widget* CreateWindowWithContext(WidgetDelegate* delegate, | 258 static Widget* CreateWindowWithContext(WidgetDelegate* delegate, |
260 gfx::NativeView context); | 259 gfx::NativeView context); |
261 static Widget* CreateWindowWithContextAndBounds(WidgetDelegate* delegate, | 260 static Widget* CreateWindowWithContextAndBounds(WidgetDelegate* delegate, |
262 gfx::NativeView context, | 261 gfx::NativeView context, |
263 const gfx::Rect& bounds); | 262 const gfx::Rect& bounds); |
264 | 263 |
265 // Creates an undecorated child window Widget. |new_style_parent| is the | 264 // Creates an undecorated child window Widget parented to |parent|. |
266 // parent to use for new style dialogs, |parent| for currently-styled dialogs. | |
267 // | |
268 // TODO(wittman): use a single parent parameter once we move fully to | |
269 // new-style dialogs. | |
270 static Widget* CreateWindowAsFramelessChild(WidgetDelegate* widget_delegate, | 265 static Widget* CreateWindowAsFramelessChild(WidgetDelegate* widget_delegate, |
271 gfx::NativeView parent, | 266 gfx::NativeView parent); |
272 gfx::NativeView new_style_parent); | |
273 | 267 |
274 // Enumerates all windows pertaining to us and notifies their | 268 // Enumerates all windows pertaining to us and notifies their |
275 // view hierarchies that the locale has changed. | 269 // view hierarchies that the locale has changed. |
276 // TODO(beng): remove post-Aurafication of ChromeOS. | 270 // TODO(beng): remove post-Aurafication of ChromeOS. |
277 static void NotifyLocaleChanged(); | 271 static void NotifyLocaleChanged(); |
278 | 272 |
279 // Closes all Widgets that aren't identified as "secondary widgets". Called | 273 // Closes all Widgets that aren't identified as "secondary widgets". Called |
280 // during application shutdown when the last non-secondary widget is closed. | 274 // during application shutdown when the last non-secondary widget is closed. |
281 static void CloseAllSecondaryWidgets(); | 275 static void CloseAllSecondaryWidgets(); |
282 | 276 |
(...skipping 610 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
893 // True when window movement via mouse interaction with the frame should be | 887 // True when window movement via mouse interaction with the frame should be |
894 // disabled. | 888 // disabled. |
895 bool movement_disabled_; | 889 bool movement_disabled_; |
896 | 890 |
897 DISALLOW_COPY_AND_ASSIGN(Widget); | 891 DISALLOW_COPY_AND_ASSIGN(Widget); |
898 }; | 892 }; |
899 | 893 |
900 } // namespace views | 894 } // namespace views |
901 | 895 |
902 #endif // UI_VIEWS_WIDGET_WIDGET_H_ | 896 #endif // UI_VIEWS_WIDGET_WIDGET_H_ |
OLD | NEW |