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 408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
882 // See description in GetRootLayers(). | 886 // See description in GetRootLayers(). |
883 std::vector<ui::Layer*> root_layers_; | 887 std::vector<ui::Layer*> root_layers_; |
884 | 888 |
885 // Is |root_layers_| out of date? | 889 // Is |root_layers_| out of date? |
886 bool root_layers_dirty_; | 890 bool root_layers_dirty_; |
887 | 891 |
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 |
896 // Cached value of isAlwaysOnTop(). If true, the widget stays on top of | |
897 // widgets that do not have this flag enabled. | |
898 bool is_always_on_top_; | |
sky
2013/10/10 02:45:57
This can be nuked now, right?
tmdiep
2013/10/10 04:02:01
Yes. Done.
| |
899 | |
892 DISALLOW_COPY_AND_ASSIGN(Widget); | 900 DISALLOW_COPY_AND_ASSIGN(Widget); |
893 }; | 901 }; |
894 | 902 |
895 } // namespace views | 903 } // namespace views |
896 | 904 |
897 #endif // UI_VIEWS_WIDGET_WIDGET_H_ | 905 #endif // UI_VIEWS_WIDGET_WIDGET_H_ |
OLD | NEW |