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

Unified Diff: ash/touch/touch_hud_projection.cc

Issue 2095193002: clang-format all of //ash (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 | « ash/touch/touch_hud_debug.cc ('k') | ash/touch/touch_observer_hud.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/touch/touch_hud_projection.cc
diff --git a/ash/touch/touch_hud_projection.cc b/ash/touch/touch_hud_projection.cc
index 4692de8683380790286a465cb324c966ae20280d..02f604ef8d72543e6bb78242274de5c29a37161a 100644
--- a/ash/touch/touch_hud_projection.cc
+++ b/ash/touch/touch_hud_projection.cc
@@ -32,8 +32,7 @@ class TouchPointView : public views::View,
public:
explicit TouchPointView(views::Widget* parent_widget)
: circle_center_(kPointRadius + 1, kPointRadius + 1),
- gradient_center_(SkPoint::Make(kPointRadius + 1,
- kPointRadius + 1)) {
+ gradient_center_(SkPoint::Make(kPointRadius + 1, kPointRadius + 1)) {
SetPaintToLayer(true);
layer()->SetFillsBoundsOpaquely(false);
@@ -57,19 +56,16 @@ class TouchPointView : public views::View,
if (touch.type() == ui::ET_TOUCH_RELEASED ||
touch.type() == ui::ET_TOUCH_CANCELLED) {
fadeout_.reset(new gfx::LinearAnimation(kFadeoutDurationInMs,
- kFadeoutFrameRate,
- this));
+ kFadeoutFrameRate, this));
fadeout_->Start();
} else {
SetX(parent()->GetMirroredXInView(touch.root_location().x()) -
- kPointRadius - 1);
+ kPointRadius - 1);
SetY(touch.root_location().y() - kPointRadius - 1);
}
}
- void Remove() {
- delete this;
- }
+ void Remove() { delete this; }
private:
~TouchPointView() override {
@@ -131,15 +127,13 @@ class TouchPointView : public views::View,
};
TouchHudProjection::TouchHudProjection(aura::Window* initial_root)
- : TouchObserverHUD(initial_root) {
-}
+ : TouchObserverHUD(initial_root) {}
-TouchHudProjection::~TouchHudProjection() {
-}
+TouchHudProjection::~TouchHudProjection() {}
void TouchHudProjection::Clear() {
for (std::map<int, TouchPointView*>::iterator iter = points_.begin();
- iter != points_.end(); iter++)
+ iter != points_.end(); iter++)
iter->second->Remove();
points_.clear();
}
« no previous file with comments | « ash/touch/touch_hud_debug.cc ('k') | ash/touch/touch_observer_hud.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698