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 443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
454 | 454 |
455 // Prevents the window from being rendered as deactivated. This state is | 455 // Prevents the window from being rendered as deactivated. This state is |
456 // reset automatically as soon as the window becomes activated again. There is | 456 // reset automatically as soon as the window becomes activated again. There is |
457 // no ability to control the state through this API as this leads to sync | 457 // no ability to control the state through this API as this leads to sync |
458 // problems. | 458 // problems. |
459 void DisableInactiveRendering(); | 459 void DisableInactiveRendering(); |
460 | 460 |
461 // Sets the widget to be on top of all other widgets in the windowing system. | 461 // Sets the widget to be on top of all other widgets in the windowing system. |
462 void SetAlwaysOnTop(bool on_top); | 462 void SetAlwaysOnTop(bool on_top); |
463 | 463 |
| 464 // Returns whether the widget has been set to be on top of most other widgets |
| 465 // in the windowing system. |
| 466 bool IsAlwaysOnTop() const; |
| 467 |
464 // Maximizes/minimizes/restores the window. | 468 // Maximizes/minimizes/restores the window. |
465 void Maximize(); | 469 void Maximize(); |
466 void Minimize(); | 470 void Minimize(); |
467 void Restore(); | 471 void Restore(); |
468 | 472 |
469 // Whether or not the window is maximized or minimized. | 473 // Whether or not the window is maximized or minimized. |
470 virtual bool IsMaximized() const; | 474 virtual bool IsMaximized() const; |
471 bool IsMinimized() const; | 475 bool IsMinimized() const; |
472 | 476 |
473 // Accessors for fullscreen state. | 477 // Accessors for fullscreen state. |
(...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
888 // True when window movement via mouse interaction with the frame should be | 892 // True when window movement via mouse interaction with the frame should be |
889 // disabled. | 893 // disabled. |
890 bool movement_disabled_; | 894 bool movement_disabled_; |
891 | 895 |
892 DISALLOW_COPY_AND_ASSIGN(Widget); | 896 DISALLOW_COPY_AND_ASSIGN(Widget); |
893 }; | 897 }; |
894 | 898 |
895 } // namespace views | 899 } // namespace views |
896 | 900 |
897 #endif // UI_VIEWS_WIDGET_WIDGET_H_ | 901 #endif // UI_VIEWS_WIDGET_WIDGET_H_ |
OLD | NEW |