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

Side by Side Diff: ui/views/window/non_client_view.cc

Issue 10910238: ash: Fix blank window when maximizing an app (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/views/window/non_client_view.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "ui/views/window/non_client_view.h" 5 #include "ui/views/window/non_client_view.h"
6 6
7 #include "ui/base/accessibility/accessible_view_state.h" 7 #include "ui/base/accessibility/accessible_view_state.h"
8 #include "ui/base/hit_test.h" 8 #include "ui/base/hit_test.h"
9 #include "ui/views/widget/root_view.h" 9 #include "ui/views/widget/root_view.h"
10 #include "ui/views/widget/widget.h" 10 #include "ui/views/widget/widget.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 } 52 }
53 53
54 bool NonClientView::CanClose() { 54 bool NonClientView::CanClose() {
55 return client_view_->CanClose(); 55 return client_view_->CanClose();
56 } 56 }
57 57
58 void NonClientView::WindowClosing() { 58 void NonClientView::WindowClosing() {
59 client_view_->WidgetClosing(); 59 client_view_->WidgetClosing();
60 } 60 }
61 61
62 void NonClientView::UpdateFrame() { 62 void NonClientView::UpdateFrame(bool layout) {
63 Widget* widget = GetWidget(); 63 Widget* widget = GetWidget();
64 SetFrameView(widget->CreateNonClientFrameView()); 64 SetFrameView(widget->CreateNonClientFrameView());
65 widget->ThemeChanged(); 65 widget->ThemeChanged();
66 Layout(); 66 if (layout) {
67 SchedulePaint(); 67 Layout();
68 SchedulePaint();
69 }
68 } 70 }
69 71
70 void NonClientView::SetInactiveRenderingDisabled(bool disable) { 72 void NonClientView::SetInactiveRenderingDisabled(bool disable) {
71 frame_view_->SetInactiveRenderingDisabled(disable); 73 frame_view_->SetInactiveRenderingDisabled(disable);
72 } 74 }
73 75
74 gfx::Rect NonClientView::GetWindowBoundsForClientBounds( 76 gfx::Rect NonClientView::GetWindowBoundsForClientBounds(
75 const gfx::Rect client_bounds) const { 77 const gfx::Rect client_bounds) const {
76 return frame_view_->GetWindowBoundsForClientBounds(client_bounds); 78 return frame_view_->GetWindowBoundsForClientBounds(client_bounds);
77 } 79 }
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 std::string NonClientFrameView::GetClassName() const { 273 std::string NonClientFrameView::GetClassName() const {
272 return kViewClassName; 274 return kViewClassName;
273 } 275 }
274 276
275 void NonClientFrameView::OnBoundsChanged(const gfx::Rect& previous_bounds) { 277 void NonClientFrameView::OnBoundsChanged(const gfx::Rect& previous_bounds) {
276 // Overridden to do nothing. The NonClientView manually calls Layout on the 278 // Overridden to do nothing. The NonClientView manually calls Layout on the
277 // FrameView when it is itself laid out, see comment in NonClientView::Layout. 279 // FrameView when it is itself laid out, see comment in NonClientView::Layout.
278 } 280 }
279 281
280 } // namespace views 282 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/window/non_client_view.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698