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

Unified Diff: ui/message_center/views/message_view.cc

Issue 900163002: Make ShadowBorder use ShadowValue. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fix_animations
Patch Set: Created 5 years, 10 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 | « ui/app_list/views/speech_view.cc ('k') | ui/views/shadow_border.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/message_center/views/message_view.cc
diff --git a/ui/message_center/views/message_view.cc b/ui/message_center/views/message_view.cc
index 6f43e0540505af97daaeecc71ea9018224f1c093..f88fc19c5093e60016d6cdf186b9a56088edebc3 100644
--- a/ui/message_center/views/message_view.cc
+++ b/ui/message_center/views/message_view.cc
@@ -11,6 +11,7 @@
#include "ui/compositor/scoped_layer_animation_settings.h"
#include "ui/gfx/canvas.h"
#include "ui/gfx/image/image_skia_operations.h"
+#include "ui/gfx/shadow_value.h"
#include "ui/message_center/message_center.h"
#include "ui/message_center/message_center_style.h"
#include "ui/message_center/views/padded_button.h"
@@ -126,11 +127,9 @@ gfx::Insets MessageView::GetShadowInsets() {
}
void MessageView::CreateShadowBorder() {
- SetBorder(scoped_ptr<views::Border>(
- new views::ShadowBorder(kShadowBlur,
- message_center::kShadowColor,
- kShadowOffset, // Vertical offset.
- 0))); // Horizontal offset.
+ SetBorder(scoped_ptr<views::Border>(new views::ShadowBorder(
+ gfx::ShadowValue(gfx::Point(0, kShadowOffset), kShadowBlur,
+ message_center::kShadowColor))));
}
bool MessageView::IsCloseButtonFocused() {
« no previous file with comments | « ui/app_list/views/speech_view.cc ('k') | ui/views/shadow_border.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698