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 478 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
489 | 489 |
490 // Accessors for fullscreen state. | 490 // Accessors for fullscreen state. |
491 void SetFullscreen(bool fullscreen); | 491 void SetFullscreen(bool fullscreen); |
492 bool IsFullscreen() const; | 492 bool IsFullscreen() const; |
493 | 493 |
494 // Sets the opacity of the widget. This may allow widgets behind the widget | 494 // Sets the opacity of the widget. This may allow widgets behind the widget |
495 // in the Z-order to become visible, depending on the capabilities of the | 495 // in the Z-order to become visible, depending on the capabilities of the |
496 // underlying windowing system. | 496 // underlying windowing system. |
497 void SetOpacity(unsigned char opacity); | 497 void SetOpacity(unsigned char opacity); |
498 | 498 |
499 // Sets whether a shadow should be drawn around the window. | |
500 void SetHasShadow(bool has_shadow); | |
tapted
2014/05/06 00:02:46
Maybe call this `SetHasActivationShadow`? And bor
Andre
2014/05/07 23:12:39
Done.
| |
501 | |
499 // Sets whether or not the window should show its frame as a "transient drag | 502 // Sets whether or not the window should show its frame as a "transient drag |
500 // frame" - slightly transparent and without the standard window controls. | 503 // frame" - slightly transparent and without the standard window controls. |
501 void SetUseDragFrame(bool use_drag_frame); | 504 void SetUseDragFrame(bool use_drag_frame); |
502 | 505 |
503 // Flashes the frame of the window to draw attention to it. Currently only | 506 // Flashes the frame of the window to draw attention to it. Currently only |
504 // implemented on Windows for non-Aura. | 507 // implemented on Windows for non-Aura. |
505 void FlashFrame(bool flash); | 508 void FlashFrame(bool flash); |
506 | 509 |
507 // Returns the View at the root of the View hierarchy contained by this | 510 // Returns the View at the root of the View hierarchy contained by this |
508 // Widget. | 511 // Widget. |
(...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
913 bool movement_disabled_; | 916 bool movement_disabled_; |
914 | 917 |
915 ScopedObserver<ui::NativeTheme, ui::NativeThemeObserver> observer_manager_; | 918 ScopedObserver<ui::NativeTheme, ui::NativeThemeObserver> observer_manager_; |
916 | 919 |
917 DISALLOW_COPY_AND_ASSIGN(Widget); | 920 DISALLOW_COPY_AND_ASSIGN(Widget); |
918 }; | 921 }; |
919 | 922 |
920 } // namespace views | 923 } // namespace views |
921 | 924 |
922 #endif // UI_VIEWS_WIDGET_WIDGET_H_ | 925 #endif // UI_VIEWS_WIDGET_WIDGET_H_ |
OLD | NEW |