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

Unified Diff: chrome/browser/ui/views/frame/browser_frame.cc

Issue 8114006: Reland the patch to fix the problem that sometimes panel on Windows is not set to top-most. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: 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 | « chrome/browser/ui/panels/panel_browser_view_browsertest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/frame/browser_frame.cc
===================================================================
--- chrome/browser/ui/views/frame/browser_frame.cc (revision 103728)
+++ chrome/browser/ui/views/frame/browser_frame.cc (working copy)
@@ -50,6 +50,13 @@
params.bounds = browser_view_->browser()->GetSavedWindowBounds();
params.show_state = browser_view_->browser()->GetSavedWindowShowState();
}
+ if (browser_view_->browser()->is_type_panel()) {
+ // We need to set the top-most bit when the panel window is created.
+ // There is a Windows bug/feature that would very likely prevent the window
+ // from being changed to top-most after the window is created without
+ // activation.
+ params.keep_on_top = true;
+ }
Init(params);
#if defined(OS_CHROMEOS)
// On ChromeOS we always want top-level windows to appear active.
« no previous file with comments | « chrome/browser/ui/panels/panel_browser_view_browsertest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698