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

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

Issue 8052019: Create constrained windows in a hidden state. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 9 years, 2 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 | chrome/browser/ui/views/constrained_window_views_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/constrained_window_views.cc
diff --git a/chrome/browser/ui/views/constrained_window_views.cc b/chrome/browser/ui/views/constrained_window_views.cc
index d48427cd9172c6474c186ad7b5fd8de98674e1ab..0287738126e8847735f15651d218b5f93895c666 100644
--- a/chrome/browser/ui/views/constrained_window_views.cc
+++ b/chrome/browser/ui/views/constrained_window_views.cc
@@ -604,7 +604,10 @@ ConstrainedWindowViews::ConstrainedWindowViews(
}
Init(params);
-
+ // Views default to visible. Since we are creating a window that is not
+ // visible, mark our View as hidden. This lets us manage accelerator
+ // registration and focus in a manner consistent with visibility.
Ben Goodger (Google) 2011/10/26 18:04:58 Seems like the NCV should just defer registration
asanka 2011/10/26 18:46:25 Yeah. I think that would be better. Views::Registe
+ non_client_view()->SetVisible(false);
wrapper_->constrained_window_tab_helper()->AddConstrainedDialog(this);
}
« no previous file with comments | « no previous file | chrome/browser/ui/views/constrained_window_views_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698