Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: ui/views/widget/widget.h

Issue 10828133: Desktop Aura: Allow tab drags out of window. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Cleanup Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/views/widget/native_widget_win.cc ('k') | ui/views/widget/widget.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « ui/views/widget/native_widget_win.cc ('k') | ui/views/widget/widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698