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

Unified Diff: ui/views/widget/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: Removing ifdefs, work in progress Created 6 years, 8 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
« ui/views/controls/menu/menu_message_loop_mac.cc ('K') | « ui/views/views.gyp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/widget/native_widget_aura.cc
diff --git a/ui/views/widget/native_widget_aura.cc b/ui/views/widget/native_widget_aura.cc
index f428259e841da0f65f44462004cb82b306ce2bb2..57b04f06e46db41f551963cedacaaf7278d87382 100644
--- a/ui/views/widget/native_widget_aura.cc
+++ b/ui/views/widget/native_widget_aura.cc
@@ -34,6 +34,7 @@
#include "ui/views/widget/widget_aura_utils.h"
#include "ui/views/widget/widget_delegate.h"
#include "ui/views/widget/window_reorderer.h"
+#include "ui/wm/core/shadow_types.h"
#include "ui/wm/core/window_util.h"
#include "ui/wm/public/activation_client.h"
#include "ui/wm/public/drag_drop_client.h"
@@ -176,6 +177,9 @@ void NativeWidgetAura::InitNativeWidget(const Widget::InitParams& params) {
window_reorderer_.reset(new WindowReorderer(window_,
GetWidget()->GetRootView()));
+
+ if (!params.has_dropshadow)
tapted 2014/05/04 23:43:39 This might be a different kind of shadow. I think
Andre 2014/05/05 22:41:29 OK, I added Widget::SetHasShadow to replace this.
+ SetShadowType(window_, wm::SHADOW_TYPE_NONE);
}
NonClientFrameView* NativeWidgetAura::CreateNonClientFrameView() {
« ui/views/controls/menu/menu_message_loop_mac.cc ('K') | « ui/views/views.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698