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

Unified Diff: ash/common/system/web_notification/ash_popup_alignment_delegate.cc

Issue 2589163003: Add shadow/corner radius to notifications (toasts and in-center). (Closed)
Patch Set: sky reviews Created 3 years, 11 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 | ui/gfx/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/system/web_notification/ash_popup_alignment_delegate.cc
diff --git a/ash/common/system/web_notification/ash_popup_alignment_delegate.cc b/ash/common/system/web_notification/ash_popup_alignment_delegate.cc
index 169b72433dbd759730ba627a9776e5c017ee5fcf..b87906d697360287258b893948234df5425dfbd2 100644
--- a/ash/common/system/web_notification/ash_popup_alignment_delegate.cc
+++ b/ash/common/system/web_notification/ash_popup_alignment_delegate.cc
@@ -17,6 +17,7 @@
#include "ui/gfx/geometry/rect.h"
#include "ui/message_center/message_center_style.h"
#include "ui/message_center/views/message_popup_collection.h"
+#include "ui/wm/core/shadow_types.h"
namespace ash {
@@ -113,6 +114,8 @@ void AshPopupAlignmentDelegate::RecomputeAlignment(
void AshPopupAlignmentDelegate::ConfigureWidgetInitParamsForContainer(
views::Widget* widget,
views::Widget::InitParams* init_params) {
+ init_params->shadow_type = views::Widget::InitParams::SHADOW_TYPE_DROP;
+ init_params->shadow_elevation = ::wm::ShadowElevation::MEDIUM;
// On ash, popups go in the status container.
shelf_->GetWindow()
->GetRootWindowController()
« no previous file with comments | « no previous file | ui/gfx/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698