Chromium Code Reviews| 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 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 193 // fully opaque. Defaults to TRANSLUCENT_WINDOW if | 193 // fully opaque. Defaults to TRANSLUCENT_WINDOW if |
| 194 // ViewsDelegate::UseTransparentWindows(). Defaults to OPAQUE_WINDOW for | 194 // ViewsDelegate::UseTransparentWindows(). Defaults to OPAQUE_WINDOW for |
| 195 // non-window widgets. | 195 // non-window widgets. |
| 196 WindowOpacity opacity; | 196 WindowOpacity opacity; |
| 197 bool accept_events; | 197 bool accept_events; |
| 198 Activatable activatable; | 198 Activatable activatable; |
| 199 bool keep_on_top; | 199 bool keep_on_top; |
| 200 bool visible_on_all_workspaces; | 200 bool visible_on_all_workspaces; |
| 201 Ownership ownership; | 201 Ownership ownership; |
| 202 bool mirror_origin_in_rtl; | 202 bool mirror_origin_in_rtl; |
| 203 bool has_dropshadow; | 203 bool has_dropshadow; |
|
sky
2014/05/15 22:37:19
I believe menus are the only one using this, and i
Andre
2014/05/15 22:49:37
It is true that menus are the only one using this.
sky
2014/05/15 22:55:10
They are all shadows though. Create an enum if you
| |
| 204 // Specifies that the system default caption and icon should not be | 204 // Specifies that the system default caption and icon should not be |
| 205 // rendered, and that the client area should be equivalent to the window | 205 // rendered, and that the client area should be equivalent to the window |
| 206 // area. Only used on some platforms (Windows and Linux). | 206 // area. Only used on some platforms (Windows and Linux). |
| 207 bool remove_standard_frame; | 207 bool remove_standard_frame; |
| 208 // Only used by ShellWindow on Windows. Specifies that the default icon of | 208 // Only used by ShellWindow on Windows. Specifies that the default icon of |
| 209 // packaged app should be the system default icon. | 209 // packaged app should be the system default icon. |
| 210 bool use_system_default_icon; | 210 bool use_system_default_icon; |
| 211 // Whether the widget should be maximized or minimized. | 211 // Whether the widget should be maximized or minimized. |
| 212 ui::WindowShowState show_state; | 212 ui::WindowShowState show_state; |
| 213 // Should the widget be double buffered? Default is false. | 213 // Should the widget be double buffered? Default is false. |
| (...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 498 | 498 |
| 499 // Accessors for fullscreen state. | 499 // Accessors for fullscreen state. |
| 500 void SetFullscreen(bool fullscreen); | 500 void SetFullscreen(bool fullscreen); |
| 501 bool IsFullscreen() const; | 501 bool IsFullscreen() const; |
| 502 | 502 |
| 503 // Sets the opacity of the widget. This may allow widgets behind the widget | 503 // Sets the opacity of the widget. This may allow widgets behind the widget |
| 504 // in the Z-order to become visible, depending on the capabilities of the | 504 // in the Z-order to become visible, depending on the capabilities of the |
| 505 // underlying windowing system. | 505 // underlying windowing system. |
| 506 void SetOpacity(unsigned char opacity); | 506 void SetOpacity(unsigned char opacity); |
| 507 | 507 |
| 508 // Informs the window manager whether to create a rectangular shadow around | |
| 509 // the window, and keep it updated in response to activation changes. | |
| 510 void SetHasActivationShadow(bool has_shadow); | |
| 511 | |
| 508 // Sets whether or not the window should show its frame as a "transient drag | 512 // Sets whether or not the window should show its frame as a "transient drag |
| 509 // frame" - slightly transparent and without the standard window controls. | 513 // frame" - slightly transparent and without the standard window controls. |
| 510 void SetUseDragFrame(bool use_drag_frame); | 514 void SetUseDragFrame(bool use_drag_frame); |
| 511 | 515 |
| 512 // Flashes the frame of the window to draw attention to it. Currently only | 516 // Flashes the frame of the window to draw attention to it. Currently only |
| 513 // implemented on Windows for non-Aura. | 517 // implemented on Windows for non-Aura. |
| 514 void FlashFrame(bool flash); | 518 void FlashFrame(bool flash); |
| 515 | 519 |
| 516 // Returns the View at the root of the View hierarchy contained by this | 520 // Returns the View at the root of the View hierarchy contained by this |
| 517 // Widget. | 521 // Widget. |
| (...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 930 bool movement_disabled_; | 934 bool movement_disabled_; |
| 931 | 935 |
| 932 ScopedObserver<ui::NativeTheme, ui::NativeThemeObserver> observer_manager_; | 936 ScopedObserver<ui::NativeTheme, ui::NativeThemeObserver> observer_manager_; |
| 933 | 937 |
| 934 DISALLOW_COPY_AND_ASSIGN(Widget); | 938 DISALLOW_COPY_AND_ASSIGN(Widget); |
| 935 }; | 939 }; |
| 936 | 940 |
| 937 } // namespace views | 941 } // namespace views |
| 938 | 942 |
| 939 #endif // UI_VIEWS_WIDGET_WIDGET_H_ | 943 #endif // UI_VIEWS_WIDGET_WIDGET_H_ |
| OLD | NEW |