| 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 522 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 533 virtual bool IsMaximized() const; | 533 virtual bool IsMaximized() const; |
| 534 bool IsMinimized() const; | 534 bool IsMinimized() const; |
| 535 | 535 |
| 536 // Accessors for fullscreen state. | 536 // Accessors for fullscreen state. |
| 537 void SetFullscreen(bool fullscreen); | 537 void SetFullscreen(bool fullscreen); |
| 538 bool IsFullscreen() const; | 538 bool IsFullscreen() const; |
| 539 | 539 |
| 540 // Sets the opacity of the widget. This may allow widgets behind the widget | 540 // Sets the opacity of the widget. This may allow widgets behind the widget |
| 541 // in the Z-order to become visible, depending on the capabilities of the | 541 // in the Z-order to become visible, depending on the capabilities of the |
| 542 // underlying windowing system. | 542 // underlying windowing system. |
| 543 void SetOpacity(unsigned char opacity); | 543 void SetOpacity(float opacity); |
| 544 | 544 |
| 545 // Flashes the frame of the window to draw attention to it. Currently only | 545 // Flashes the frame of the window to draw attention to it. Currently only |
| 546 // implemented on Windows for non-Aura. | 546 // implemented on Windows for non-Aura. |
| 547 void FlashFrame(bool flash); | 547 void FlashFrame(bool flash); |
| 548 | 548 |
| 549 // Returns the View at the root of the View hierarchy contained by this | 549 // Returns the View at the root of the View hierarchy contained by this |
| 550 // Widget. | 550 // Widget. |
| 551 View* GetRootView(); | 551 View* GetRootView(); |
| 552 const View* GetRootView() const; | 552 const View* GetRootView() const; |
| 553 | 553 |
| (...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 973 bool movement_disabled_; | 973 bool movement_disabled_; |
| 974 | 974 |
| 975 ScopedObserver<ui::NativeTheme, ui::NativeThemeObserver> observer_manager_; | 975 ScopedObserver<ui::NativeTheme, ui::NativeThemeObserver> observer_manager_; |
| 976 | 976 |
| 977 DISALLOW_COPY_AND_ASSIGN(Widget); | 977 DISALLOW_COPY_AND_ASSIGN(Widget); |
| 978 }; | 978 }; |
| 979 | 979 |
| 980 } // namespace views | 980 } // namespace views |
| 981 | 981 |
| 982 #endif // UI_VIEWS_WIDGET_WIDGET_H_ | 982 #endif // UI_VIEWS_WIDGET_WIDGET_H_ |
| OLD | NEW |