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

Unified Diff: ui/views/widget/widget_hwnd_utils.cc

Issue 11154007: Fixed: on windows, fixed-size app windows would lose their shadows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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/views/extensions/shell_window_views.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/widget/widget_hwnd_utils.cc
diff --git a/ui/views/widget/widget_hwnd_utils.cc b/ui/views/widget/widget_hwnd_utils.cc
index 3df2281b26684ad33555531fd51814b5f5d32f35..2f22febbf0fe0656259c0d8fc9ee95d50505cb21 100644
--- a/ui/views/widget/widget_hwnd_utils.cc
+++ b/ui/views/widget/widget_hwnd_utils.cc
@@ -60,7 +60,7 @@ void CalculateWindowStylesFromInitParams(
bool can_maximize = widget_delegate->CanMaximize();
if (can_maximize) {
*style |= WS_OVERLAPPEDWINDOW;
- } else if (can_resize) {
+ } else if (can_resize || params.remove_standard_frame) {
*style |= WS_OVERLAPPED | WS_THICKFRAME;
}
if (native_widget_delegate->IsDialogBox()) {
« no previous file with comments | « chrome/browser/ui/views/extensions/shell_window_views.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698