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 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
225 // IsTranslucentWindowOpacitySupported to determine whether they are. | 225 // IsTranslucentWindowOpacitySupported to determine whether they are. |
226 WindowOpacity opacity; | 226 WindowOpacity opacity; |
227 bool accept_events; | 227 bool accept_events; |
228 Activatable activatable; | 228 Activatable activatable; |
229 bool keep_on_top; | 229 bool keep_on_top; |
230 bool visible_on_all_workspaces; | 230 bool visible_on_all_workspaces; |
231 // See Widget class comment above. | 231 // See Widget class comment above. |
232 Ownership ownership; | 232 Ownership ownership; |
233 bool mirror_origin_in_rtl; | 233 bool mirror_origin_in_rtl; |
234 ShadowType shadow_type; | 234 ShadowType shadow_type; |
235 // A hint about the size of the shadow if the type is SHADOW_TYPE_DROP. May | |
236 // be ignored on some platforms. A value <0 indicates no preference. | |
237 int shadow_elevation; | |
Evan Stade
2016/12/21 16:57:57
Do you think the type for this param should be ui:
sky
2017/01/03 22:35:38
Yes. Additionally do we need both shadow_type and
Evan Stade
2017/01/04 00:20:45
Done.
| |
235 // Specifies that the system default caption and icon should not be | 238 // Specifies that the system default caption and icon should not be |
236 // rendered, and that the client area should be equivalent to the window | 239 // rendered, and that the client area should be equivalent to the window |
237 // area. Only used on some platforms (Windows and Linux). | 240 // area. Only used on some platforms (Windows and Linux). |
238 bool remove_standard_frame; | 241 bool remove_standard_frame; |
239 // Only used by ShellWindow on Windows. Specifies that the default icon of | 242 // Only used by ShellWindow on Windows. Specifies that the default icon of |
240 // packaged app should be the system default icon. | 243 // packaged app should be the system default icon. |
241 bool use_system_default_icon; | 244 bool use_system_default_icon; |
242 // Whether the widget should be maximized or minimized. | 245 // Whether the widget should be maximized or minimized. |
243 ui::WindowShowState show_state; | 246 ui::WindowShowState show_state; |
244 gfx::NativeView parent; | 247 gfx::NativeView parent; |
(...skipping 725 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
970 bool movement_disabled_; | 973 bool movement_disabled_; |
971 | 974 |
972 ScopedObserver<ui::NativeTheme, ui::NativeThemeObserver> observer_manager_; | 975 ScopedObserver<ui::NativeTheme, ui::NativeThemeObserver> observer_manager_; |
973 | 976 |
974 DISALLOW_COPY_AND_ASSIGN(Widget); | 977 DISALLOW_COPY_AND_ASSIGN(Widget); |
975 }; | 978 }; |
976 | 979 |
977 } // namespace views | 980 } // namespace views |
978 | 981 |
979 #endif // UI_VIEWS_WIDGET_WIDGET_H_ | 982 #endif // UI_VIEWS_WIDGET_WIDGET_H_ |
OLD | NEW |