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

Unified Diff: views/window/non_client_view.cc

Issue 6452011: Rework tree APIs to reflect Google style and more const-correctness.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 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/window/client_view.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/window/non_client_view.cc
===================================================================
--- views/window/non_client_view.cc (revision 74231)
+++ views/window/non_client_view.cc (working copy)
@@ -44,8 +44,8 @@
if (frame_view_.get())
RemoveChildView(frame_view_.get());
frame_view_.reset(frame_view);
- if (GetParent())
- AddChildView(kFrameViewIndex, frame_view_.get());
+ if (parent())
+ AddChildViewAt(frame_view_.get(), kFrameViewIndex);
}
bool NonClientView::CanClose() {
@@ -153,8 +153,8 @@
// are subsequently resized all the parent-child relationships are
// established.
if (is_add && GetWidget() && child == this) {
- AddChildView(kFrameViewIndex, frame_view_.get());
- AddChildView(kClientViewIndex, client_view_);
+ AddChildViewAt(frame_view_.get(), kFrameViewIndex);
+ AddChildViewAt(client_view_, kClientViewIndex);
}
}
« no previous file with comments | « views/window/client_view.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698