| 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 503 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 514 // Sets the widget to be on top of all other widgets in the windowing system. | 514 // Sets the widget to be on top of all other widgets in the windowing system. |
| 515 void SetAlwaysOnTop(bool on_top); | 515 void SetAlwaysOnTop(bool on_top); |
| 516 | 516 |
| 517 // Returns whether the widget has been set to be on top of most other widgets | 517 // Returns whether the widget has been set to be on top of most other widgets |
| 518 // in the windowing system. | 518 // in the windowing system. |
| 519 bool IsAlwaysOnTop() const; | 519 bool IsAlwaysOnTop() const; |
| 520 | 520 |
| 521 // Sets the widget to be visible on all work spaces. | 521 // Sets the widget to be visible on all work spaces. |
| 522 void SetVisibleOnAllWorkspaces(bool always_visible); | 522 void SetVisibleOnAllWorkspaces(bool always_visible); |
| 523 | 523 |
| 524 // Is this widget currently visible on all workspaces? |
| 525 // A call to SetVisibleOnAllWorkspaces(true) won't necessarily mean |
| 526 // IsVisbleOnAllWorkspaces() == true (for example, when the platform doesn't |
| 527 // support workspaces). |
| 528 bool IsVisibleOnAllWorkspaces() const; |
| 529 |
| 524 // Maximizes/minimizes/restores the window. | 530 // Maximizes/minimizes/restores the window. |
| 525 void Maximize(); | 531 void Maximize(); |
| 526 void Minimize(); | 532 void Minimize(); |
| 527 void Restore(); | 533 void Restore(); |
| 528 | 534 |
| 529 // Whether or not the window is maximized or minimized. | 535 // Whether or not the window is maximized or minimized. |
| 530 virtual bool IsMaximized() const; | 536 virtual bool IsMaximized() const; |
| 531 bool IsMinimized() const; | 537 bool IsMinimized() const; |
| 532 | 538 |
| 533 // Accessors for fullscreen state. | 539 // Accessors for fullscreen state. |
| (...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 970 bool movement_disabled_; | 976 bool movement_disabled_; |
| 971 | 977 |
| 972 ScopedObserver<ui::NativeTheme, ui::NativeThemeObserver> observer_manager_; | 978 ScopedObserver<ui::NativeTheme, ui::NativeThemeObserver> observer_manager_; |
| 973 | 979 |
| 974 DISALLOW_COPY_AND_ASSIGN(Widget); | 980 DISALLOW_COPY_AND_ASSIGN(Widget); |
| 975 }; | 981 }; |
| 976 | 982 |
| 977 } // namespace views | 983 } // namespace views |
| 978 | 984 |
| 979 #endif // UI_VIEWS_WIDGET_WIDGET_H_ | 985 #endif // UI_VIEWS_WIDGET_WIDGET_H_ |
| OLD | NEW |