| 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 <map> | 8 #include <map> |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <set> | 10 #include <set> |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 | 50 |
| 51 namespace ui { | 51 namespace ui { |
| 52 class Accelerator; | 52 class Accelerator; |
| 53 class Compositor; | 53 class Compositor; |
| 54 class DefaultThemeProvider; | 54 class DefaultThemeProvider; |
| 55 class InputMethod; | 55 class InputMethod; |
| 56 class Layer; | 56 class Layer; |
| 57 class NativeTheme; | 57 class NativeTheme; |
| 58 class OSExchangeData; | 58 class OSExchangeData; |
| 59 class ThemeProvider; | 59 class ThemeProvider; |
| 60 class Window; | |
| 61 } // namespace ui | 60 } // namespace ui |
| 62 | 61 |
| 63 namespace wm { | 62 namespace wm { |
| 64 enum class ShadowElevation; | 63 enum class ShadowElevation; |
| 65 } | 64 } |
| 66 | 65 |
| 67 namespace views { | 66 namespace views { |
| 68 | 67 |
| 69 class DesktopWindowTreeHost; | 68 class DesktopWindowTreeHost; |
| 70 class NativeWidget; | 69 class NativeWidget; |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 247 // Specifies that the system default caption and icon should not be | 246 // Specifies that the system default caption and icon should not be |
| 248 // rendered, and that the client area should be equivalent to the window | 247 // rendered, and that the client area should be equivalent to the window |
| 249 // area. Only used on some platforms (Windows and Linux). | 248 // area. Only used on some platforms (Windows and Linux). |
| 250 bool remove_standard_frame; | 249 bool remove_standard_frame; |
| 251 // Only used by ShellWindow on Windows. Specifies that the default icon of | 250 // Only used by ShellWindow on Windows. Specifies that the default icon of |
| 252 // packaged app should be the system default icon. | 251 // packaged app should be the system default icon. |
| 253 bool use_system_default_icon; | 252 bool use_system_default_icon; |
| 254 // Whether the widget should be maximized or minimized. | 253 // Whether the widget should be maximized or minimized. |
| 255 ui::WindowShowState show_state; | 254 ui::WindowShowState show_state; |
| 256 gfx::NativeView parent; | 255 gfx::NativeView parent; |
| 257 // Used only by mus and is necessitated by mus not being a NativeView. | |
| 258 ui::Window* parent_mus = nullptr; | |
| 259 // Specifies the initial bounds of the Widget. Default is empty, which means | 256 // Specifies the initial bounds of the Widget. Default is empty, which means |
| 260 // the NativeWidget may specify a default size. If the parent is specified, | 257 // the NativeWidget may specify a default size. If the parent is specified, |
| 261 // |bounds| is in the parent's coordinate system. If the parent is not | 258 // |bounds| is in the parent's coordinate system. If the parent is not |
| 262 // specified, it's in screen's global coordinate system. | 259 // specified, it's in screen's global coordinate system. |
| 263 gfx::Rect bounds; | 260 gfx::Rect bounds; |
| 264 // The initial workspace of the Widget. Default is "", which means the | 261 // The initial workspace of the Widget. Default is "", which means the |
| 265 // current workspace. | 262 // current workspace. |
| 266 std::string workspace; | 263 std::string workspace; |
| 267 // When set, this value is used as the Widget's NativeWidget implementation. | 264 // When set, this value is used as the Widget's NativeWidget implementation. |
| 268 // The Widget will not construct a default one. Default is NULL. | 265 // The Widget will not construct a default one. Default is NULL. |
| (...skipping 725 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 994 | 991 |
| 995 // Guard to avoid reentrancy while processing a theme changed message. | 992 // Guard to avoid reentrancy while processing a theme changed message. |
| 996 bool processing_theme_changed_; | 993 bool processing_theme_changed_; |
| 997 | 994 |
| 998 DISALLOW_COPY_AND_ASSIGN(Widget); | 995 DISALLOW_COPY_AND_ASSIGN(Widget); |
| 999 }; | 996 }; |
| 1000 | 997 |
| 1001 } // namespace views | 998 } // namespace views |
| 1002 | 999 |
| 1003 #endif // UI_VIEWS_WIDGET_WIDGET_H_ | 1000 #endif // UI_VIEWS_WIDGET_WIDGET_H_ |
| OLD | NEW |