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

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

Issue 11269022: Add Vector2d classes that represent offsets, instead of using Point. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: RenderText fixup Created 8 years, 1 month 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
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 313 matching lines...) Expand 10 before | Expand all | Expand 10 after
324 324
325 // Sets whether animations that occur when visibility is changed are enabled. 325 // Sets whether animations that occur when visibility is changed are enabled.
326 // Default is true. 326 // Default is true.
327 void SetVisibilityChangedAnimationsEnabled(bool value); 327 void SetVisibilityChangedAnimationsEnabled(bool value);
328 328
329 // Starts a nested message loop that moves the window. This can be used to 329 // Starts a nested message loop that moves the window. This can be used to
330 // start a window move operation from a mouse moved event. This returns when 330 // start a window move operation from a mouse moved event. This returns when
331 // the move completes. |drag_offset| is the offset from the top left corner 331 // the move completes. |drag_offset| is the offset from the top left corner
332 // of the window to the point where the cursor is dragging, and is used to 332 // of the window to the point where the cursor is dragging, and is used to
333 // offset the bounds of the window from the cursor. 333 // offset the bounds of the window from the cursor.
334 MoveLoopResult RunMoveLoop(const gfx::Point& drag_offset); 334 MoveLoopResult RunMoveLoop(const gfx::Vector2d& drag_offset);
335 335
336 // Stops a previously started move loop. This is not immediate. 336 // Stops a previously started move loop. This is not immediate.
337 void EndMoveLoop(); 337 void EndMoveLoop();
338 338
339 // Places the widget in front of the specified widget in z-order. 339 // Places the widget in front of the specified widget in z-order.
340 void StackAboveWidget(Widget* widget); 340 void StackAboveWidget(Widget* widget);
341 void StackAbove(gfx::NativeView native_view); 341 void StackAbove(gfx::NativeView native_view);
342 void StackAtTop(); 342 void StackAtTop();
343 343
344 // Places the widget below the specified NativeView. 344 // Places the widget below the specified NativeView.
(...skipping 455 matching lines...) Expand 10 before | Expand all | Expand 10 after
800 800
801 // Is |root_layers_| out of date? 801 // Is |root_layers_| out of date?
802 bool root_layers_dirty_; 802 bool root_layers_dirty_;
803 803
804 DISALLOW_COPY_AND_ASSIGN(Widget); 804 DISALLOW_COPY_AND_ASSIGN(Widget);
805 }; 805 };
806 806
807 } // namespace views 807 } // namespace views
808 808
809 #endif // UI_VIEWS_WIDGET_WIDGET_H_ 809 #endif // UI_VIEWS_WIDGET_WIDGET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698