| 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 301 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 312   // resizing and/or repositioning as necessary. This is only useful for | 312   // resizing and/or repositioning as necessary. This is only useful for | 
| 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. |drag_offset| is the offset from the top left corner | 
| 323   MoveLoopResult RunMoveLoop(); | 323   // of the window to the point where the cursor is dragging, and is used to | 
|  | 324   // offset the bounds of the window from the cursor. | 
|  | 325   MoveLoopResult RunMoveLoop(const gfx::Point& drag_offset); | 
| 324 | 326 | 
| 325   // Stops a previously started move loop. This is not immediate. | 327   // Stops a previously started move loop. This is not immediate. | 
| 326   void EndMoveLoop(); | 328   void EndMoveLoop(); | 
| 327 | 329 | 
| 328   // Places the widget in front of the specified widget in z-order. | 330   // Places the widget in front of the specified widget in z-order. | 
| 329   void StackAboveWidget(Widget* widget); | 331   void StackAboveWidget(Widget* widget); | 
| 330   void StackAbove(gfx::NativeView native_view); | 332   void StackAbove(gfx::NativeView native_view); | 
| 331   void StackAtTop(); | 333   void StackAtTop(); | 
| 332 | 334 | 
| 333   // Places the widget below the specified NativeView. | 335   // Places the widget below the specified NativeView. | 
| (...skipping 461 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 795 | 797 | 
| 796   // Is |root_layers_| out of date? | 798   // Is |root_layers_| out of date? | 
| 797   bool root_layers_dirty_; | 799   bool root_layers_dirty_; | 
| 798 | 800 | 
| 799   DISALLOW_COPY_AND_ASSIGN(Widget); | 801   DISALLOW_COPY_AND_ASSIGN(Widget); | 
| 800 }; | 802 }; | 
| 801 | 803 | 
| 802 }  // namespace views | 804 }  // namespace views | 
| 803 | 805 | 
| 804 #endif  // UI_VIEWS_WIDGET_WIDGET_H_ | 806 #endif  // UI_VIEWS_WIDGET_WIDGET_H_ | 
| OLD | NEW | 
|---|