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

Unified Diff: views/widget/widget.h

Issue 8477019: Adds Window::MoveChildToFront, with surrounding changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Cleanup Created 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « views/widget/native_widget_win.cc ('k') | views/widget/widget.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/widget/widget.h
diff --git a/views/widget/widget.h b/views/widget/widget.h
index abc8fbaa9a4c22bdee93a1c1dd21e42374fd241f..3772a499f7644ee323814c1239d3171d81858bb7 100644
--- a/views/widget/widget.h
+++ b/views/widget/widget.h
@@ -297,12 +297,10 @@ class VIEWS_EXPORT Widget : public internal::NativeWidgetDelegate,
void SetBounds(const gfx::Rect& bounds);
void SetSize(const gfx::Size& size);
- // Like SetBounds(), but ensures the Widget is fully visible within the bounds
- // of its parent. If the Widget has no parent, it is centered within the
- // bounds of its screen if it is visible, or |other_widget|'s screen if it is
- // not.
- void SetBoundsConstrained(const gfx::Rect& bounds,
- Widget* other_widget);
+ // Like SetBounds(), but ensures the Widget is fully visible on screen,
+ // resizing and/or repositioning as necessary. This is only useful for
+ // non-child widgets.
+ void SetBoundsConstrained(const gfx::Rect& bounds);
// Places the widget in front of the specified widget in z-order.
void MoveAboveWidget(Widget* widget);
« no previous file with comments | « views/widget/native_widget_win.cc ('k') | views/widget/widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698