| 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 473 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 484 // Sets the widget to be on top of all other widgets in the windowing system. | 484 // Sets the widget to be on top of all other widgets in the windowing system. |
| 485 void SetAlwaysOnTop(bool on_top); | 485 void SetAlwaysOnTop(bool on_top); |
| 486 | 486 |
| 487 // Returns whether the widget has been set to be on top of most other widgets | 487 // Returns whether the widget has been set to be on top of most other widgets |
| 488 // in the windowing system. | 488 // in the windowing system. |
| 489 bool IsAlwaysOnTop() const; | 489 bool IsAlwaysOnTop() const; |
| 490 | 490 |
| 491 // Sets the widget to be visible on all work spaces. | 491 // Sets the widget to be visible on all work spaces. |
| 492 void SetVisibleOnAllWorkspaces(bool always_visible); | 492 void SetVisibleOnAllWorkspaces(bool always_visible); |
| 493 | 493 |
| 494 // Sets whether all the keyboard events should be intercepted. |
| 495 void SetInterceptAllKeys(bool want_all_keys); |
| 496 |
| 494 // Maximizes/minimizes/restores the window. | 497 // Maximizes/minimizes/restores the window. |
| 495 void Maximize(); | 498 void Maximize(); |
| 496 void Minimize(); | 499 void Minimize(); |
| 497 void Restore(); | 500 void Restore(); |
| 498 | 501 |
| 499 // Whether or not the window is maximized or minimized. | 502 // Whether or not the window is maximized or minimized. |
| 500 virtual bool IsMaximized() const; | 503 virtual bool IsMaximized() const; |
| 501 bool IsMinimized() const; | 504 bool IsMinimized() const; |
| 502 | 505 |
| 503 // Accessors for fullscreen state. | 506 // Accessors for fullscreen state. |
| (...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 940 bool movement_disabled_; | 943 bool movement_disabled_; |
| 941 | 944 |
| 942 ScopedObserver<ui::NativeTheme, ui::NativeThemeObserver> observer_manager_; | 945 ScopedObserver<ui::NativeTheme, ui::NativeThemeObserver> observer_manager_; |
| 943 | 946 |
| 944 DISALLOW_COPY_AND_ASSIGN(Widget); | 947 DISALLOW_COPY_AND_ASSIGN(Widget); |
| 945 }; | 948 }; |
| 946 | 949 |
| 947 } // namespace views | 950 } // namespace views |
| 948 | 951 |
| 949 #endif // UI_VIEWS_WIDGET_WIDGET_H_ | 952 #endif // UI_VIEWS_WIDGET_WIDGET_H_ |
| OLD | NEW |