| 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 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 238 // Only used by NativeWidgetAura. Specifies the type of layer for the | 238 // Only used by NativeWidgetAura. Specifies the type of layer for the |
| 239 // aura::Window. Default is WINDOW_LAYER_TEXTURED. | 239 // aura::Window. Default is WINDOW_LAYER_TEXTURED. |
| 240 aura::WindowLayerType layer_type; | 240 aura::WindowLayerType layer_type; |
| 241 // Only used by Aura. Provides a context window whose RootWindow is | 241 // Only used by Aura. Provides a context window whose RootWindow is |
| 242 // consulted during widget creation to determine where in the Window | 242 // consulted during widget creation to determine where in the Window |
| 243 // hierarchy this widget should be placed. (This is separate from |parent|; | 243 // hierarchy this widget should be placed. (This is separate from |parent|; |
| 244 // if you pass a RootWindow to |parent|, your window will be parented to | 244 // if you pass a RootWindow to |parent|, your window will be parented to |
| 245 // |parent|. If you pass a RootWindow to |context|, we ask that RootWindow | 245 // |parent|. If you pass a RootWindow to |context|, we ask that RootWindow |
| 246 // where it wants your window placed.) NULL is not allowed if you are using | 246 // where it wants your window placed.) NULL is not allowed if you are using |
| 247 // aura. | 247 // aura. |
| 248 gfx::NativeView context; | 248 gfx::NativeWindow context; |
| 249 // If true, forces the window to be shown in the taskbar, even for window | 249 // If true, forces the window to be shown in the taskbar, even for window |
| 250 // types that do not appear in the taskbar by default (popup and bubble). | 250 // types that do not appear in the taskbar by default (popup and bubble). |
| 251 bool force_show_in_taskbar; | 251 bool force_show_in_taskbar; |
| 252 // Only used by X11, for root level windows. Specifies the res_name and | 252 // Only used by X11, for root level windows. Specifies the res_name and |
| 253 // res_class fields, respectively, of the WM_CLASS window property. Controls | 253 // res_class fields, respectively, of the WM_CLASS window property. Controls |
| 254 // window grouping and desktop file matching in Linux window managers. | 254 // window grouping and desktop file matching in Linux window managers. |
| 255 std::string wm_role_name; | 255 std::string wm_role_name; |
| 256 std::string wm_class_name; | 256 std::string wm_class_name; |
| 257 std::string wm_class_class; | 257 std::string wm_class_class; |
| 258 }; | 258 }; |
| (...skipping 14 matching lines...) Expand all Loading... |
| 273 | 273 |
| 274 // Creates a decorated window Widget with the specified properties. | 274 // Creates a decorated window Widget with the specified properties. |
| 275 static Widget* CreateWindowWithParent(WidgetDelegate* delegate, | 275 static Widget* CreateWindowWithParent(WidgetDelegate* delegate, |
| 276 gfx::NativeView parent); | 276 gfx::NativeView parent); |
| 277 static Widget* CreateWindowWithParentAndBounds(WidgetDelegate* delegate, | 277 static Widget* CreateWindowWithParentAndBounds(WidgetDelegate* delegate, |
| 278 gfx::NativeView parent, | 278 gfx::NativeView parent, |
| 279 const gfx::Rect& bounds); | 279 const gfx::Rect& bounds); |
| 280 | 280 |
| 281 // Creates a decorated window Widget in the same desktop context as |context|. | 281 // Creates a decorated window Widget in the same desktop context as |context|. |
| 282 static Widget* CreateWindowWithContext(WidgetDelegate* delegate, | 282 static Widget* CreateWindowWithContext(WidgetDelegate* delegate, |
| 283 gfx::NativeView context); | 283 gfx::NativeWindow context); |
| 284 static Widget* CreateWindowWithContextAndBounds(WidgetDelegate* delegate, | 284 static Widget* CreateWindowWithContextAndBounds(WidgetDelegate* delegate, |
| 285 gfx::NativeView context, | 285 gfx::NativeWindow context, |
| 286 const gfx::Rect& bounds); | 286 const gfx::Rect& bounds); |
| 287 | 287 |
| 288 // Closes all Widgets that aren't identified as "secondary widgets". Called | 288 // Closes all Widgets that aren't identified as "secondary widgets". Called |
| 289 // during application shutdown when the last non-secondary widget is closed. | 289 // during application shutdown when the last non-secondary widget is closed. |
| 290 static void CloseAllSecondaryWidgets(); | 290 static void CloseAllSecondaryWidgets(); |
| 291 | 291 |
| 292 // Converts a rectangle from one Widget's coordinate system to another's. | 292 // Converts a rectangle from one Widget's coordinate system to another's. |
| 293 // Returns false if the conversion couldn't be made, because either these two | 293 // Returns false if the conversion couldn't be made, because either these two |
| 294 // Widgets do not have a common ancestor or they are not on the screen yet. | 294 // Widgets do not have a common ancestor or they are not on the screen yet. |
| 295 // The value of |*rect| won't be changed when false is returned. | 295 // The value of |*rect| won't be changed when false is returned. |
| (...skipping 632 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 928 bool movement_disabled_; | 928 bool movement_disabled_; |
| 929 | 929 |
| 930 ScopedObserver<ui::NativeTheme, ui::NativeThemeObserver> observer_manager_; | 930 ScopedObserver<ui::NativeTheme, ui::NativeThemeObserver> observer_manager_; |
| 931 | 931 |
| 932 DISALLOW_COPY_AND_ASSIGN(Widget); | 932 DISALLOW_COPY_AND_ASSIGN(Widget); |
| 933 }; | 933 }; |
| 934 | 934 |
| 935 } // namespace views | 935 } // namespace views |
| 936 | 936 |
| 937 #endif // UI_VIEWS_WIDGET_WIDGET_H_ | 937 #endif // UI_VIEWS_WIDGET_WIDGET_H_ |
| OLD | NEW |