| 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 401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 412 void EndMoveLoop(); | 412 void EndMoveLoop(); |
| 413 | 413 |
| 414 // Places the widget in front of the specified widget in z-order. | 414 // Places the widget in front of the specified widget in z-order. |
| 415 void StackAboveWidget(Widget* widget); | 415 void StackAboveWidget(Widget* widget); |
| 416 void StackAbove(gfx::NativeView native_view); | 416 void StackAbove(gfx::NativeView native_view); |
| 417 void StackAtTop(); | 417 void StackAtTop(); |
| 418 | 418 |
| 419 // Places the widget below the specified NativeView. | 419 // Places the widget below the specified NativeView. |
| 420 void StackBelow(gfx::NativeView native_view); | 420 void StackBelow(gfx::NativeView native_view); |
| 421 | 421 |
| 422 // Sets a shape on the widget. This takes ownership of shape. | 422 // Sets a shape on the widget. Passing a NULL |shape| reverts the widget to |
| 423 // be rectangular. Takes ownership of |shape|. |
| 423 void SetShape(gfx::NativeRegion shape); | 424 void SetShape(gfx::NativeRegion shape); |
| 424 | 425 |
| 425 // Hides the widget then closes it after a return to the message loop. | 426 // Hides the widget then closes it after a return to the message loop. |
| 426 virtual void Close(); | 427 virtual void Close(); |
| 427 | 428 |
| 428 // TODO(beng): Move off public API. | 429 // TODO(beng): Move off public API. |
| 429 // Closes the widget immediately. Compare to |Close|. This will destroy the | 430 // Closes the widget immediately. Compare to |Close|. This will destroy the |
| 430 // window handle associated with this Widget, so should not be called from | 431 // window handle associated with this Widget, so should not be called from |
| 431 // any code that expects it to be valid beyond this call. | 432 // any code that expects it to be valid beyond this call. |
| 432 void CloseNow(); | 433 void CloseNow(); |
| (...skipping 459 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 892 // True when window movement via mouse interaction with the frame should be | 893 // True when window movement via mouse interaction with the frame should be |
| 893 // disabled. | 894 // disabled. |
| 894 bool movement_disabled_; | 895 bool movement_disabled_; |
| 895 | 896 |
| 896 DISALLOW_COPY_AND_ASSIGN(Widget); | 897 DISALLOW_COPY_AND_ASSIGN(Widget); |
| 897 }; | 898 }; |
| 898 | 899 |
| 899 } // namespace views | 900 } // namespace views |
| 900 | 901 |
| 901 #endif // UI_VIEWS_WIDGET_WIDGET_H_ | 902 #endif // UI_VIEWS_WIDGET_WIDGET_H_ |
| OLD | NEW |