| 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 466 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 477 // can_activate flag in the InitParams structure is set to true. | 477 // can_activate flag in the InitParams structure is set to true. |
| 478 virtual void Show(); | 478 virtual void Show(); |
| 479 // Hides the widget. | 479 // Hides the widget. |
| 480 void Hide(); | 480 void Hide(); |
| 481 | 481 |
| 482 // Like Show(), but does not activate the window. | 482 // Like Show(), but does not activate the window. |
| 483 void ShowInactive(); | 483 void ShowInactive(); |
| 484 | 484 |
| 485 // Activates the widget, assuming it already exists and is visible. | 485 // Activates the widget, assuming it already exists and is visible. |
| 486 void Activate(); | 486 void Activate(); |
| 487 // Like Activate(), but some window managers will give this higher priority. |
| 488 void ActivateForUserGesture(); |
| 487 | 489 |
| 488 // Deactivates the widget, making the next window in the Z order the active | 490 // Deactivates the widget, making the next window in the Z order the active |
| 489 // window. | 491 // window. |
| 490 void Deactivate(); | 492 void Deactivate(); |
| 491 | 493 |
| 492 // Returns whether the Widget is the currently active window. | 494 // Returns whether the Widget is the currently active window. |
| 493 virtual bool IsActive() const; | 495 virtual bool IsActive() const; |
| 494 | 496 |
| 495 // Prevents the window from being rendered as deactivated. This state is | 497 // Prevents the window from being rendered as deactivated. This state is |
| 496 // reset automatically as soon as the window becomes activated again. There is | 498 // reset automatically as soon as the window becomes activated again. There is |
| (...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 978 bool movement_disabled_; | 980 bool movement_disabled_; |
| 979 | 981 |
| 980 ScopedObserver<ui::NativeTheme, ui::NativeThemeObserver> observer_manager_; | 982 ScopedObserver<ui::NativeTheme, ui::NativeThemeObserver> observer_manager_; |
| 981 | 983 |
| 982 DISALLOW_COPY_AND_ASSIGN(Widget); | 984 DISALLOW_COPY_AND_ASSIGN(Widget); |
| 983 }; | 985 }; |
| 984 | 986 |
| 985 } // namespace views | 987 } // namespace views |
| 986 | 988 |
| 987 #endif // UI_VIEWS_WIDGET_WIDGET_H_ | 989 #endif // UI_VIEWS_WIDGET_WIDGET_H_ |
| OLD | NEW |