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 479 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
490 | 490 |
491 // Accessors for fullscreen state. | 491 // Accessors for fullscreen state. |
492 void SetFullscreen(bool fullscreen); | 492 void SetFullscreen(bool fullscreen); |
493 bool IsFullscreen() const; | 493 bool IsFullscreen() const; |
494 | 494 |
495 // Sets the opacity of the widget. This may allow widgets behind the widget | 495 // Sets the opacity of the widget. This may allow widgets behind the widget |
496 // in the Z-order to become visible, depending on the capabilities of the | 496 // in the Z-order to become visible, depending on the capabilities of the |
497 // underlying windowing system. | 497 // underlying windowing system. |
498 void SetOpacity(unsigned char opacity); | 498 void SetOpacity(unsigned char opacity); |
499 | 499 |
| 500 // Informs the window manager whether to create a rectangular shadow around |
| 501 // the window, and keep it updated in response to activation changes. |
| 502 void SetHasActivationShadow(bool has_shadow); |
| 503 |
500 // Sets whether or not the window should show its frame as a "transient drag | 504 // Sets whether or not the window should show its frame as a "transient drag |
501 // frame" - slightly transparent and without the standard window controls. | 505 // frame" - slightly transparent and without the standard window controls. |
502 void SetUseDragFrame(bool use_drag_frame); | 506 void SetUseDragFrame(bool use_drag_frame); |
503 | 507 |
504 // Flashes the frame of the window to draw attention to it. Currently only | 508 // Flashes the frame of the window to draw attention to it. Currently only |
505 // implemented on Windows for non-Aura. | 509 // implemented on Windows for non-Aura. |
506 void FlashFrame(bool flash); | 510 void FlashFrame(bool flash); |
507 | 511 |
508 // Returns the View at the root of the View hierarchy contained by this | 512 // Returns the View at the root of the View hierarchy contained by this |
509 // Widget. | 513 // Widget. |
(...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
919 bool movement_disabled_; | 923 bool movement_disabled_; |
920 | 924 |
921 ScopedObserver<ui::NativeTheme, ui::NativeThemeObserver> observer_manager_; | 925 ScopedObserver<ui::NativeTheme, ui::NativeThemeObserver> observer_manager_; |
922 | 926 |
923 DISALLOW_COPY_AND_ASSIGN(Widget); | 927 DISALLOW_COPY_AND_ASSIGN(Widget); |
924 }; | 928 }; |
925 | 929 |
926 } // namespace views | 930 } // namespace views |
927 | 931 |
928 #endif // UI_VIEWS_WIDGET_WIDGET_H_ | 932 #endif // UI_VIEWS_WIDGET_WIDGET_H_ |
OLD | NEW |