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 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
248 // | 248 // |
249 // If you have any parenting or context information, or can pass that | 249 // If you have any parenting or context information, or can pass that |
250 // information, prefer the WithParent or WithContext versions of these | 250 // information, prefer the WithParent or WithContext versions of these |
251 // methods. | 251 // methods. |
252 static Widget* CreateWindow(WidgetDelegate* delegate); | 252 static Widget* CreateWindow(WidgetDelegate* delegate); |
253 static Widget* CreateWindowWithBounds(WidgetDelegate* delegate, | 253 static Widget* CreateWindowWithBounds(WidgetDelegate* delegate, |
254 const gfx::Rect& bounds); | 254 const gfx::Rect& bounds); |
255 | 255 |
256 // Creates a decorated window Widget with the specified properties. | 256 // Creates a decorated window Widget with the specified properties. |
257 static Widget* CreateWindowWithParent(WidgetDelegate* delegate, | 257 static Widget* CreateWindowWithParent(WidgetDelegate* delegate, |
258 gfx::NativeWindow parent); | 258 gfx::NativeView parent); |
259 static Widget* CreateWindowWithParentAndBounds(WidgetDelegate* delegate, | 259 static Widget* CreateWindowWithParentAndBounds(WidgetDelegate* delegate, |
260 gfx::NativeWindow parent, | 260 gfx::NativeView parent, |
261 const gfx::Rect& bounds); | 261 const gfx::Rect& bounds); |
262 | 262 |
263 // Creates a decorated window Widget in the same desktop context as |context|. | 263 // Creates a decorated window Widget in the same desktop context as |context|. |
264 static Widget* CreateWindowWithContext(WidgetDelegate* delegate, | 264 static Widget* CreateWindowWithContext(WidgetDelegate* delegate, |
265 gfx::NativeView context); | 265 gfx::NativeView context); |
266 static Widget* CreateWindowWithContextAndBounds(WidgetDelegate* delegate, | 266 static Widget* CreateWindowWithContextAndBounds(WidgetDelegate* delegate, |
267 gfx::NativeView context, | 267 gfx::NativeView context, |
268 const gfx::Rect& bounds); | 268 const gfx::Rect& bounds); |
269 | 269 |
270 // Creates an undecorated child window Widget parented to |parent|. | 270 // Creates an undecorated child window Widget parented to |parent|. |
(...skipping 623 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
894 // True when window movement via mouse interaction with the frame should be | 894 // True when window movement via mouse interaction with the frame should be |
895 // disabled. | 895 // disabled. |
896 bool movement_disabled_; | 896 bool movement_disabled_; |
897 | 897 |
898 DISALLOW_COPY_AND_ASSIGN(Widget); | 898 DISALLOW_COPY_AND_ASSIGN(Widget); |
899 }; | 899 }; |
900 | 900 |
901 } // namespace views | 901 } // namespace views |
902 | 902 |
903 #endif // UI_VIEWS_WIDGET_WIDGET_H_ | 903 #endif // UI_VIEWS_WIDGET_WIDGET_H_ |
OLD | NEW |