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

Unified Diff: ui/views/window/dialog_delegate.cc

Issue 12391056: Remove Aura's extra shadowed border in the new dialog style. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove NativeWidgetAura's shadow in DialogDelegate Widget construction. Created 7 years, 9 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/window/dialog_delegate.cc
diff --git a/ui/views/window/dialog_delegate.cc b/ui/views/window/dialog_delegate.cc
index 23c0cabb3cd64f4dfd59cdca9300c7376a1e1184..6fb2816884c91076879fddb66d9e59e933530e17 100644
--- a/ui/views/window/dialog_delegate.cc
+++ b/ui/views/window/dialog_delegate.cc
@@ -16,6 +16,10 @@
#include "ui/views/widget/widget_observer.h"
#include "ui/views/window/dialog_client_view.h"
+#if defined(USE_AURA)
+#include "ui/views/corewm/shadow_types.h"
+#endif
+
namespace views {
namespace {
@@ -37,6 +41,12 @@ Widget* CreateDialogWidgetImpl(DialogDelegateView* dialog_delegate_view,
params.parent = parent;
params.top_level = true;
widget->Init(params);
+ if (DialogDelegate::UseNewStyle()) {
+#if defined(USE_AURA)
+ // TODO(msw): Add a matching shadow type and remove the bubble frame border?
+ corewm::SetShadowType(widget->GetNativeWindow(), corewm::SHADOW_TYPE_NONE);
+#endif
+ }
return widget;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698