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

Unified Diff: chrome/browser/ui/views/constrained_window_win.cc

Issue 6261015: Keep visibility state in sync between the native window and view (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 11 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/constrained_window_win.cc
diff --git a/chrome/browser/ui/views/constrained_window_win.cc b/chrome/browser/ui/views/constrained_window_win.cc
index ac1d0d2c779497987bb9e48d8dcfbf07902058c4..ce65a623bee4680b248b70838cce5cada2169bb0 100644
--- a/chrome/browser/ui/views/constrained_window_win.cc
+++ b/chrome/browser/ui/views/constrained_window_win.cc
@@ -571,6 +571,7 @@ void ConstrainedWindowWin::FocusConstrainedWindow() {
}
void ConstrainedWindowWin::ShowConstrainedWindow() {
+ GetNonClientView()->SetVisible(true);
sky 2011/01/19 21:36:51 Add a comment as to why this is necessary.
asanka (google) 2011/01/20 14:49:18 Done.
if (owner_->delegate())
owner_->delegate()->WillShowConstrainedWindow(owner_);
ActivateConstrainedWindow();
@@ -614,6 +615,7 @@ ConstrainedWindowWin::ConstrainedWindowWin(
set_window_style(WS_CHILD | WS_CLIPSIBLINGS | WS_CLIPCHILDREN | WS_CAPTION |
WS_THICKFRAME | WS_SYSMENU);
set_focus_on_creation(false);
+ GetNonClientView()->SetVisible(false);
sky 2011/01/19 21:36:51 Add a comment as to why this is necessary.
asanka (google) 2011/01/20 14:49:18 Done.
WindowWin::Init(owner_->GetNativeView(), gfx::Rect());
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698