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

Unified Diff: chrome/views/client_view.cc

Issue 42062: Merge r11424... (Closed) Base URL: svn://chrome-svn.corp.google.com/chrome/branches/169/src/
Patch Set: Created 11 years, 9 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 | « chrome/views/client_view.h ('k') | chrome/views/non_client_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/views/client_view.cc
===================================================================
--- chrome/views/client_view.cc (revision 11412)
+++ chrome/views/client_view.cc (working copy)
@@ -36,6 +36,13 @@
return gfx::Size();
}
+void ClientView::Layout() {
+ // |contents_view_| is allowed to be NULL up until the point where this view
+ // is attached to a Container.
+ if (contents_view_)
+ contents_view_->SetBounds(0, 0, width(), height());
+}
+
void ClientView::ViewHierarchyChanged(bool is_add, View* parent, View* child) {
if (is_add && child == this) {
DCHECK(GetWidget());
@@ -44,11 +51,11 @@
}
}
-void ClientView::Layout() {
- // |contents_view_| is allowed to be NULL up until the point where this view
- // is attached to a Container.
- if (contents_view_)
- contents_view_->SetBounds(0, 0, width(), height());
+void ClientView::DidChangeBounds(const gfx::Rect& previous,
+ const gfx::Rect& current) {
+ // Overridden to do nothing. The NonClientView manually calls Layout on the
+ // ClientView when it is itself laid out, see comment in
+ // NonClientView::Layout.
}
} // namespace views
« no previous file with comments | « chrome/views/client_view.h ('k') | chrome/views/non_client_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698