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

Unified Diff: ui/gfx/shadow_value.h

Issue 884653003: gfx::ShadowValue: offset is a Vector2d, not Point. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compile. 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/contents_animator.cc ('k') | ui/gfx/shadow_value.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/shadow_value.h
diff --git a/ui/gfx/shadow_value.h b/ui/gfx/shadow_value.h
index a361068ab01dd8207c6842650fd1c7f70b6e6f2e..c0623f3d1e2a9b1c8fb34b3b9b3aef636fbc4cc3 100644
--- a/ui/gfx/shadow_value.h
+++ b/ui/gfx/shadow_value.h
@@ -9,7 +9,7 @@
#include <vector>
#include "third_party/skia/include/core/SkColor.h"
-#include "ui/gfx/geometry/point.h"
+#include "ui/gfx/geometry/vector2d.h"
#include "ui/gfx/gfx_export.h"
namespace gfx {
@@ -24,12 +24,12 @@ typedef std::vector<ShadowValue> ShadowValues;
class GFX_EXPORT ShadowValue {
public:
ShadowValue();
- ShadowValue(const gfx::Point& offset, double blur, SkColor color);
+ ShadowValue(const gfx::Vector2d& offset, double blur, SkColor color);
~ShadowValue();
int x() const { return offset_.x(); }
int y() const { return offset_.y(); }
- const gfx::Point& offset() const { return offset_; }
+ const gfx::Vector2d& offset() const { return offset_; }
double blur() const { return blur_; }
SkColor color() const { return color_; }
@@ -42,7 +42,7 @@ class GFX_EXPORT ShadowValue {
static Insets GetMargin(const ShadowValues& shadows);
private:
- gfx::Point offset_;
+ gfx::Vector2d offset_;
// Blur amount of the shadow in pixels. If underlying implementation supports
// (e.g. Skia), it can have fraction part such as 0.5 pixel. The value
« no previous file with comments | « ui/app_list/views/contents_animator.cc ('k') | ui/gfx/shadow_value.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698