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