summaryrefslogtreecommitdiffstats
path: root/ash/touch/touch_hud_debug.cc
diff options
context:
space:
mode:
authormgiuca <mgiuca@chromium.org>2015-02-25 22:49:16 -0800
committerCommit bot <commit-bot@chromium.org>2015-02-26 06:49:44 +0000
commite8dffb6da90edde7f6aaaeb97f707b785aba8f3d (patch)
tree9dd4ddb163ce305f80dcea4353fabba5115dfdc3 /ash/touch/touch_hud_debug.cc
parentb509e763ee11364194152e80a4143b2a0693729c (diff)
downloadchromium_src-e8dffb6da90edde7f6aaaeb97f707b785aba8f3d.zip
chromium_src-e8dffb6da90edde7f6aaaeb97f707b785aba8f3d.tar.gz
chromium_src-e8dffb6da90edde7f6aaaeb97f707b785aba8f3d.tar.bz2
gfx::ShadowValue: offset is a Vector2d, not Point.
This was semantically incorrect; a Point represents a point in 2D space whereas a Vector2d represents an offset. Therefore, 'offset' should be a Vector2d. BUG=None TBR=sky@chromium.org Review URL: https://codereview.chromium.org/884653003 Cr-Commit-Position: refs/heads/master@{#318202}
Diffstat (limited to 'ash/touch/touch_hud_debug.cc')
-rw-r--r--ash/touch/touch_hud_debug.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/ash/touch/touch_hud_debug.cc b/ash/touch/touch_hud_debug.cc
index 367c68e..eb6c04d 100644
--- a/ash/touch/touch_hud_debug.cc
+++ b/ash/touch/touch_hud_debug.cc
@@ -18,6 +18,7 @@
#include "ui/gfx/canvas.h"
#include "ui/gfx/display.h"
#include "ui/gfx/geometry/size.h"
+#include "ui/gfx/geometry/vector2d.h"
#include "ui/gfx/transform.h"
#include "ui/views/controls/label.h"
#include "ui/views/layout/box_layout.h"
@@ -343,7 +344,7 @@ TouchHudDebug::TouchHudDebug(aura::Window* initial_root)
touch_labels_[i] = new views::Label;
touch_labels_[i]->SetBackgroundColor(SkColorSetARGB(0, 255, 255, 255));
touch_labels_[i]->SetShadows(gfx::ShadowValues(
- 1, gfx::ShadowValue(gfx::Point(1, 1), 0, SK_ColorWHITE)));
+ 1, gfx::ShadowValue(gfx::Vector2d(1, 1), 0, SK_ColorWHITE)));
label_container_->AddChildView(touch_labels_[i]);
}
label_container_->SetX(0);