| 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 470 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 481 // Sets the widget to be on top of all other widgets in the windowing system. | 481 // Sets the widget to be on top of all other widgets in the windowing system. |
| 482 void SetAlwaysOnTop(bool on_top); | 482 void SetAlwaysOnTop(bool on_top); |
| 483 | 483 |
| 484 // Returns whether the widget has been set to be on top of most other widgets | 484 // Returns whether the widget has been set to be on top of most other widgets |
| 485 // in the windowing system. | 485 // in the windowing system. |
| 486 bool IsAlwaysOnTop() const; | 486 bool IsAlwaysOnTop() const; |
| 487 | 487 |
| 488 // Sets the widget to be visible on all work spaces. | 488 // Sets the widget to be visible on all work spaces. |
| 489 void SetVisibleOnAllWorkspaces(bool always_visible); | 489 void SetVisibleOnAllWorkspaces(bool always_visible); |
| 490 | 490 |
| 491 // Sets whether all the keyboard events should be intercepted. |
| 492 void SetInterceptAllKeys(bool want_all_keys); |
| 493 |
| 491 // Maximizes/minimizes/restores the window. | 494 // Maximizes/minimizes/restores the window. |
| 492 void Maximize(); | 495 void Maximize(); |
| 493 void Minimize(); | 496 void Minimize(); |
| 494 void Restore(); | 497 void Restore(); |
| 495 | 498 |
| 496 // Whether or not the window is maximized or minimized. | 499 // Whether or not the window is maximized or minimized. |
| 497 virtual bool IsMaximized() const; | 500 virtual bool IsMaximized() const; |
| 498 bool IsMinimized() const; | 501 bool IsMinimized() const; |
| 499 | 502 |
| 500 // Accessors for fullscreen state. | 503 // Accessors for fullscreen state. |
| (...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 928 bool movement_disabled_; | 931 bool movement_disabled_; |
| 929 | 932 |
| 930 ScopedObserver<ui::NativeTheme, ui::NativeThemeObserver> observer_manager_; | 933 ScopedObserver<ui::NativeTheme, ui::NativeThemeObserver> observer_manager_; |
| 931 | 934 |
| 932 DISALLOW_COPY_AND_ASSIGN(Widget); | 935 DISALLOW_COPY_AND_ASSIGN(Widget); |
| 933 }; | 936 }; |
| 934 | 937 |
| 935 } // namespace views | 938 } // namespace views |
| 936 | 939 |
| 937 #endif // UI_VIEWS_WIDGET_WIDGET_H_ | 940 #endif // UI_VIEWS_WIDGET_WIDGET_H_ |
| OLD | NEW |