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

Unified Diff: ui/views/widget/desktop_aura/desktop_native_widget_aura.cc

Issue 267593005: Refactor menu controller to isolate aura dependency. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Cleanup Created 6 years, 7 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
Index: ui/views/widget/desktop_aura/desktop_native_widget_aura.cc
diff --git a/ui/views/widget/desktop_aura/desktop_native_widget_aura.cc b/ui/views/widget/desktop_aura/desktop_native_widget_aura.cc
index 914c1d24a83c462a87c35a24314b3c2cb8a4f00d..fee3f32853669e492817f11f3245cc8f32684b86 100644
--- a/ui/views/widget/desktop_aura/desktop_native_widget_aura.cc
+++ b/ui/views/widget/desktop_aura/desktop_native_widget_aura.cc
@@ -836,6 +836,12 @@ void DesktopNativeWidgetAura::SetOpacity(unsigned char opacity) {
desktop_window_tree_host_->SetOpacity(opacity);
}
+void DesktopNativeWidgetAura::SetHasShadow(bool has_shadow) {
+ if (content_window_)
+ SetShadowType(content_window_, has_shadow ? wm::SHADOW_TYPE_RECTANGULAR
+ : wm::SHADOW_TYPE_NONE);
+}
+
void DesktopNativeWidgetAura::SetUseDragFrame(bool use_drag_frame) {
}

Powered by Google App Engine
This is Rietveld 408576698