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 <map> | 8 #include <map> |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <set> | 10 #include <set> |
| (...skipping 529 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 540 void Restore(); | 540 void Restore(); |
| 541 | 541 |
| 542 // Whether or not the window is maximized or minimized. | 542 // Whether or not the window is maximized or minimized. |
| 543 virtual bool IsMaximized() const; | 543 virtual bool IsMaximized() const; |
| 544 bool IsMinimized() const; | 544 bool IsMinimized() const; |
| 545 | 545 |
| 546 // Accessors for fullscreen state. | 546 // Accessors for fullscreen state. |
| 547 void SetFullscreen(bool fullscreen); | 547 void SetFullscreen(bool fullscreen); |
| 548 bool IsFullscreen() const; | 548 bool IsFullscreen() const; |
| 549 | 549 |
| 550 void Pin(bool trusted); | |
|
sky
2017/03/30 20:12:21
Pinning is specific to ChromeOS, so you shouldn't
Peng
2017/03/30 21:10:11
Done.
| |
| 551 bool IsPinned() const; | |
| 552 | |
| 550 // Sets the opacity of the widget. This may allow widgets behind the widget | 553 // Sets the opacity of the widget. This may allow widgets behind the widget |
| 551 // in the Z-order to become visible, depending on the capabilities of the | 554 // in the Z-order to become visible, depending on the capabilities of the |
| 552 // underlying windowing system. | 555 // underlying windowing system. |
| 553 void SetOpacity(float opacity); | 556 void SetOpacity(float opacity); |
| 554 | 557 |
| 555 // Flashes the frame of the window to draw attention to it. Currently only | 558 // Flashes the frame of the window to draw attention to it. Currently only |
| 556 // implemented on Windows for non-Aura. | 559 // implemented on Windows for non-Aura. |
| 557 void FlashFrame(bool flash); | 560 void FlashFrame(bool flash); |
| 558 | 561 |
| 559 // Returns the View at the root of the View hierarchy contained by this | 562 // Returns the View at the root of the View hierarchy contained by this |
| (...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 988 bool movement_disabled_; | 991 bool movement_disabled_; |
| 989 | 992 |
| 990 ScopedObserver<ui::NativeTheme, ui::NativeThemeObserver> observer_manager_; | 993 ScopedObserver<ui::NativeTheme, ui::NativeThemeObserver> observer_manager_; |
| 991 | 994 |
| 992 DISALLOW_COPY_AND_ASSIGN(Widget); | 995 DISALLOW_COPY_AND_ASSIGN(Widget); |
| 993 }; | 996 }; |
| 994 | 997 |
| 995 } // namespace views | 998 } // namespace views |
| 996 | 999 |
| 997 #endif // UI_VIEWS_WIDGET_WIDGET_H_ | 1000 #endif // UI_VIEWS_WIDGET_WIDGET_H_ |
| OLD | NEW |