Index: chrome/browser/ui/views/panels/panel_view.cc |
diff --git a/chrome/browser/ui/views/panels/panel_view.cc b/chrome/browser/ui/views/panels/panel_view.cc |
index 8091c9ff283e5c6174dfb42294adbc9bab63fc62..b73731dec4f3c0d66b20f19e4afde047ba4de69a 100644 |
--- a/chrome/browser/ui/views/panels/panel_view.cc |
+++ b/chrome/browser/ui/views/panels/panel_view.cc |
@@ -644,6 +644,19 @@ bool PanelView::IsPanelMinimizedBySystem() const { |
return window_->IsMinimized(); |
} |
+void PanelView::SetPanelHasShadow(bool has_shadow) { |
+#if defined(OS_WIN) |
+ // The overlapped window has the shadow while the popup window does not have |
+ // the shadow. |
+ int overlap_style = WS_OVERLAPPED | WS_THICKFRAME | WS_SYSMENU; |
+ int popup_style = WS_POPUP; |
+ UpdateWindowAttribute(GWL_STYLE, |
+ has_shadow ? overlap_style : popup_style, |
+ has_shadow ? popup_style : overlap_style, |
+ true); |
+#endif |
+} |
+ |
void PanelView::AttachWebContents(content::WebContents* contents) { |
web_view_->SetWebContents(contents); |
} |