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

Unified Diff: content/browser/renderer_host/input/touch_handle_unittest.cc

Issue 616603004: Replacing the OVERRIDE with override and FINAL with final in content/browser/renderer_host (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased the patch Created 6 years, 2 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: content/browser/renderer_host/input/touch_handle_unittest.cc
diff --git a/content/browser/renderer_host/input/touch_handle_unittest.cc b/content/browser/renderer_host/input/touch_handle_unittest.cc
index b5dd2a290080d50431e4fa6a66541f377c6e8385..03903c3f9d9b92a173cff5fc76311f7f94ccdbd6 100644
--- a/content/browser/renderer_host/input/touch_handle_unittest.cc
+++ b/content/browser/renderer_host/input/touch_handle_unittest.cc
@@ -36,22 +36,22 @@ class MockTouchHandleDrawable : public TouchHandleDrawable {
explicit MockTouchHandleDrawable(MockDrawableData* data) : data_(data) {}
virtual ~MockTouchHandleDrawable() {}
- virtual void SetEnabled(bool enabled) OVERRIDE { data_->enabled = enabled; }
+ virtual void SetEnabled(bool enabled) override { data_->enabled = enabled; }
- virtual void SetOrientation(TouchHandleOrientation orientation) OVERRIDE {
+ virtual void SetOrientation(TouchHandleOrientation orientation) override {
data_->orientation = orientation;
}
- virtual void SetAlpha(float alpha) OVERRIDE { data_->alpha = alpha; }
+ virtual void SetAlpha(float alpha) override { data_->alpha = alpha; }
- virtual void SetFocus(const gfx::PointF& position) OVERRIDE {
+ virtual void SetFocus(const gfx::PointF& position) override {
// Anchor focus to the top left of the rect (regardless of orientation).
data_->rect.set_origin(position);
}
- virtual void SetVisible(bool visible) OVERRIDE { data_->visible = visible; }
+ virtual void SetVisible(bool visible) override { data_->visible = visible; }
- virtual bool IntersectsWith(const gfx::RectF& rect) const OVERRIDE {
+ virtual bool IntersectsWith(const gfx::RectF& rect) const override {
return data_->rect.Intersects(rect);
}
@@ -72,36 +72,36 @@ class TouchHandleTest : public testing::Test, public TouchHandleClient {
virtual ~TouchHandleTest() {}
// TouchHandleClient implementation.
- virtual void OnHandleDragBegin(const TouchHandle& handle) OVERRIDE {
+ virtual void OnHandleDragBegin(const TouchHandle& handle) override {
dragging_ = true;
}
virtual void OnHandleDragUpdate(const TouchHandle& handle,
- const gfx::PointF& new_position) OVERRIDE {
+ const gfx::PointF& new_position) override {
dragged_ = true;
drag_position_ = new_position;
}
- virtual void OnHandleDragEnd(const TouchHandle& handle) OVERRIDE {
+ virtual void OnHandleDragEnd(const TouchHandle& handle) override {
dragging_ = false;
}
- virtual void OnHandleTapped(const TouchHandle& handle) OVERRIDE {
+ virtual void OnHandleTapped(const TouchHandle& handle) override {
tapped_ = true;
}
- virtual void SetNeedsAnimate() OVERRIDE { needs_animate_ = true; }
+ virtual void SetNeedsAnimate() override { needs_animate_ = true; }
- virtual scoped_ptr<TouchHandleDrawable> CreateDrawable() OVERRIDE {
+ virtual scoped_ptr<TouchHandleDrawable> CreateDrawable() override {
return scoped_ptr<TouchHandleDrawable>(
new MockTouchHandleDrawable(&drawable_data_));
}
- virtual base::TimeDelta GetTapTimeout() const OVERRIDE {
+ virtual base::TimeDelta GetTapTimeout() const override {
return base::TimeDelta::FromMilliseconds(kDefaultTapTimeoutMs);
}
- virtual float GetTapSlop() const OVERRIDE { return kDefaultTapSlop; }
+ virtual float GetTapSlop() const override { return kDefaultTapSlop; }
void Animate(TouchHandle& handle) {
needs_animate_ = false;

Powered by Google App Engine
This is Rietveld 408576698