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

Unified Diff: ui/app_list/views/speech_view.cc

Issue 900163002: Make ShadowBorder use ShadowValue. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fix_animations
Patch Set: address comments 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
Index: ui/app_list/views/speech_view.cc
diff --git a/ui/app_list/views/speech_view.cc b/ui/app_list/views/speech_view.cc
index 8337ffc29b472e2e1a56d24dfa9284a07f4f41aa..f125319f16a0e1ac9ef2714fbc7afc8abd51a4d8 100644
--- a/ui/app_list/views/speech_view.cc
+++ b/ui/app_list/views/speech_view.cc
@@ -14,6 +14,7 @@
#include "ui/base/resource/resource_bundle.h"
#include "ui/gfx/canvas.h"
#include "ui/gfx/path.h"
+#include "ui/gfx/shadow_value.h"
#include "ui/resources/grit/ui_resources.h"
#include "ui/strings/grit/ui_strings.h"
#include "ui/views/animation/bounds_animator.h"
@@ -108,10 +109,8 @@ bool MicButton::GetHitTestMask(gfx::Path* mask) const {
SpeechView::SpeechView(AppListViewDelegate* delegate)
: delegate_(delegate),
logo_(NULL) {
- SetBorder(scoped_ptr<views::Border>(
- new views::ShadowBorder(kCardShadowBlur, kCardShadowColor,
- kCardShadowYOffset, // Vertical offset.
- 0)));
+ SetBorder(scoped_ptr<views::Border>(new views::ShadowBorder(gfx::ShadowValue(
+ gfx::Point(0, kCardShadowYOffset), kCardShadowBlur, kCardShadowColor))));
// To keep the painting order of the border and the background, this class
// actually has a single child of 'container' which has white background and

Powered by Google App Engine
This is Rietveld 408576698