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

Unified Diff: views/view.h

Issue 7185005: Add View::ReorderChildView and Widget::MoveToTop. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « views/desktop/desktop_window.cc ('k') | views/view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/view.h
diff --git a/views/view.h b/views/view.h
index 1c412aba59ffa53968abcf24f88d01881a811346..3a37e750b5bf318a254602705d645660acd53b1f 100644
--- a/views/view.h
+++ b/views/view.h
@@ -177,6 +177,10 @@ class View : public AcceleratorTarget {
void AddChildView(View* view);
void AddChildViewAt(View* view, int index);
+ // Moves |view| to the specified |index|. A negative value for |index| moves
+ // the view at the end.
+ void ReorderChildView(View* view, int index);
+
// Removes |view| from this view. The view's parent will change to NULL.
void RemoveChildView(View* view);
« no previous file with comments | « views/desktop/desktop_window.cc ('k') | views/view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698