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..08ae452a83ca708317a30e207c3c88932cbf9865 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::ShowShadow(bool show) { |
+#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, |
+ show ? overlap_style : popup_style, |
+ show ? popup_style : overlap_style, |
+ true); |
+#endif |
+} |
+ |
void PanelView::AttachWebContents(content::WebContents* contents) { |
web_view_->SetWebContents(contents); |
} |