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 <set> | 8 #include <set> |
| 9 #include <stack> | 9 #include <stack> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 471 void Restore(); | 471 void Restore(); |
| 472 | 472 |
| 473 // Whether or not the window is maximized or minimized. | 473 // Whether or not the window is maximized or minimized. |
| 474 virtual bool IsMaximized() const; | 474 virtual bool IsMaximized() const; |
| 475 bool IsMinimized() const; | 475 bool IsMinimized() const; |
| 476 | 476 |
| 477 // Accessors for fullscreen state. | 477 // Accessors for fullscreen state. |
| 478 void SetFullscreen(bool fullscreen); | 478 void SetFullscreen(bool fullscreen); |
| 479 bool IsFullscreen() const; | 479 bool IsFullscreen() const; |
| 480 | 480 |
| 481 // Whether the window is docked (only possible on Ash). | |
| 482 bool IsDocked() const; | |
|
sky
2013/10/29 16:36:06
Ben is trying to keep ash specific state out of vi
varkha
2013/10/29 17:06:18
Not sure I follow. How can I not introduce somethi
varkha
2013/10/29 18:28:03
Done.
| |
| 483 | |
| 481 // Sets the opacity of the widget. This may allow widgets behind the widget | 484 // Sets the opacity of the widget. This may allow widgets behind the widget |
| 482 // in the Z-order to become visible, depending on the capabilities of the | 485 // in the Z-order to become visible, depending on the capabilities of the |
| 483 // underlying windowing system. | 486 // underlying windowing system. |
| 484 void SetOpacity(unsigned char opacity); | 487 void SetOpacity(unsigned char opacity); |
| 485 | 488 |
| 486 // Sets whether or not the window should show its frame as a "transient drag | 489 // Sets whether or not the window should show its frame as a "transient drag |
| 487 // frame" - slightly transparent and without the standard window controls. | 490 // frame" - slightly transparent and without the standard window controls. |
| 488 void SetUseDragFrame(bool use_drag_frame); | 491 void SetUseDragFrame(bool use_drag_frame); |
| 489 | 492 |
| 490 // Flashes the frame of the window to draw attention to it. Currently only | 493 // Flashes the frame of the window to draw attention to it. Currently only |
| (...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 892 // True when window movement via mouse interaction with the frame should be | 895 // True when window movement via mouse interaction with the frame should be |
| 893 // disabled. | 896 // disabled. |
| 894 bool movement_disabled_; | 897 bool movement_disabled_; |
| 895 | 898 |
| 896 DISALLOW_COPY_AND_ASSIGN(Widget); | 899 DISALLOW_COPY_AND_ASSIGN(Widget); |
| 897 }; | 900 }; |
| 898 | 901 |
| 899 } // namespace views | 902 } // namespace views |
| 900 | 903 |
| 901 #endif // UI_VIEWS_WIDGET_WIDGET_H_ | 904 #endif // UI_VIEWS_WIDGET_WIDGET_H_ |
| OLD | NEW |