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 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
388 // TODO(beng): Move off public API. | 388 // TODO(beng): Move off public API. |
389 // Closes the widget immediately. Compare to |Close|. This will destroy the | 389 // Closes the widget immediately. Compare to |Close|. This will destroy the |
390 // window handle associated with this Widget, so should not be called from | 390 // window handle associated with this Widget, so should not be called from |
391 // any code that expects it to be valid beyond this call. | 391 // any code that expects it to be valid beyond this call. |
392 void CloseNow(); | 392 void CloseNow(); |
393 | 393 |
394 // Shows or hides the widget, without changing activation state. | 394 // Shows or hides the widget, without changing activation state. |
395 virtual void Show(); | 395 virtual void Show(); |
396 void Hide(); | 396 void Hide(); |
397 | 397 |
| 398 // Hides the widget, and on completion of the hide animation (if any), |
| 399 // Close()s. |
| 400 void HideAndClose(); |
| 401 |
398 // Like Show(), but does not activate the window. | 402 // Like Show(), but does not activate the window. |
399 void ShowInactive(); | 403 void ShowInactive(); |
400 | 404 |
401 // Activates the widget, assuming it already exists and is visible. | 405 // Activates the widget, assuming it already exists and is visible. |
402 void Activate(); | 406 void Activate(); |
403 | 407 |
404 // Deactivates the widget, making the next window in the Z order the active | 408 // Deactivates the widget, making the next window in the Z order the active |
405 // window. | 409 // window. |
406 void Deactivate(); | 410 void Deactivate(); |
407 | 411 |
(...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
847 // True when window movement via mouse interaction with the frame should be | 851 // True when window movement via mouse interaction with the frame should be |
848 // disabled. | 852 // disabled. |
849 bool movement_disabled_; | 853 bool movement_disabled_; |
850 | 854 |
851 DISALLOW_COPY_AND_ASSIGN(Widget); | 855 DISALLOW_COPY_AND_ASSIGN(Widget); |
852 }; | 856 }; |
853 | 857 |
854 } // namespace views | 858 } // namespace views |
855 | 859 |
856 #endif // UI_VIEWS_WIDGET_WIDGET_H_ | 860 #endif // UI_VIEWS_WIDGET_WIDGET_H_ |
OLD | NEW |