| 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 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 313 // non-child widgets. | 313 // non-child widgets. |
| 314 void SetBoundsConstrained(const gfx::Rect& bounds); | 314 void SetBoundsConstrained(const gfx::Rect& bounds); |
| 315 | 315 |
| 316 // Sets whether animations that occur when visibility is changed are enabled. | 316 // Sets whether animations that occur when visibility is changed are enabled. |
| 317 // Default is true. | 317 // Default is true. |
| 318 void SetVisibilityChangedAnimationsEnabled(bool value); | 318 void SetVisibilityChangedAnimationsEnabled(bool value); |
| 319 | 319 |
| 320 // Starts a nested message loop that moves the window. This can be used to | 320 // Starts a nested message loop that moves the window. This can be used to |
| 321 // start a window move operation from a mouse moved event. This returns when | 321 // start a window move operation from a mouse moved event. This returns when |
| 322 // the move completes. | 322 // the move completes. |
| 323 MoveLoopResult RunMoveLoop(); | 323 MoveLoopResult RunMoveLoop(const gfx::Point& drag_offset); |
| 324 | 324 |
| 325 // Stops a previously started move loop. This is not immediate. | 325 // Stops a previously started move loop. This is not immediate. |
| 326 void EndMoveLoop(); | 326 void EndMoveLoop(); |
| 327 | 327 |
| 328 // Places the widget in front of the specified widget in z-order. | 328 // Places the widget in front of the specified widget in z-order. |
| 329 void StackAboveWidget(Widget* widget); | 329 void StackAboveWidget(Widget* widget); |
| 330 void StackAbove(gfx::NativeView native_view); | 330 void StackAbove(gfx::NativeView native_view); |
| 331 void StackAtTop(); | 331 void StackAtTop(); |
| 332 | 332 |
| 333 // Places the widget below the specified NativeView. | 333 // Places the widget below the specified NativeView. |
| (...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 794 | 794 |
| 795 // Is |root_layers_| out of date? | 795 // Is |root_layers_| out of date? |
| 796 bool root_layers_dirty_; | 796 bool root_layers_dirty_; |
| 797 | 797 |
| 798 DISALLOW_COPY_AND_ASSIGN(Widget); | 798 DISALLOW_COPY_AND_ASSIGN(Widget); |
| 799 }; | 799 }; |
| 800 | 800 |
| 801 } // namespace views | 801 } // namespace views |
| 802 | 802 |
| 803 #endif // UI_VIEWS_WIDGET_WIDGET_H_ | 803 #endif // UI_VIEWS_WIDGET_WIDGET_H_ |
| OLD | NEW |