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

Unified Diff: ui/events/test/mock_motion_event.h

Issue 502993004: Remove abstract Clone and Cancel methods from MotionEvent (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nasty bug fix 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
« no previous file with comments | « ui/events/gestures/motion_event_aura_unittest.cc ('k') | ui/events/test/mock_motion_event.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/test/mock_motion_event.h
diff --git a/ui/events/test/mock_motion_event.h b/ui/events/test/mock_motion_event.h
deleted file mode 100644
index d04d7154eab7f90b0ee13541d4951cc83519e666..0000000000000000000000000000000000000000
--- a/ui/events/test/mock_motion_event.h
+++ /dev/null
@@ -1,61 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include <vector>
-
-#include "base/basictypes.h"
-#include "base/time/time.h"
-#include "ui/events/gesture_detection/motion_event_generic.h"
-#include "ui/gfx/geometry/point_f.h"
-
-namespace ui {
-namespace test {
-
-struct MockMotionEvent : public MotionEventGeneric {
- enum { TOUCH_MAJOR = 10 };
-
- MockMotionEvent();
- explicit MockMotionEvent(Action action);
- MockMotionEvent(Action action, base::TimeTicks time, float x, float y);
- MockMotionEvent(Action action,
- base::TimeTicks time,
- float x0,
- float y0,
- float x1,
- float y1);
- MockMotionEvent(Action action,
- base::TimeTicks time,
- float x0,
- float y0,
- float x1,
- float y1,
- float x2,
- float y2);
- MockMotionEvent(Action action,
- base::TimeTicks time,
- const std::vector<gfx::PointF>& positions);
- MockMotionEvent(const MockMotionEvent& other);
-
- ~MockMotionEvent() override;
-
- // MotionEvent methods.
- scoped_ptr<MotionEvent> Clone() const override;
- scoped_ptr<MotionEvent> Cancel() const override;
-
- // Utility methods.
- void PressPoint(float x, float y);
- void MovePoint(size_t index, float x, float y);
- void ReleasePoint();
- void CancelPoint();
- void SetTouchMajor(float new_touch_major);
- void SetRawOffset(float raw_offset_x, float raw_offset_y);
- void SetToolType(size_t index, ToolType tool_type);
-
- private:
- void PushPointer(float x, float y);
- void ResolvePointers();
-};
-
-} // namespace test
-} // namespace ui
« no previous file with comments | « ui/events/gestures/motion_event_aura_unittest.cc ('k') | ui/events/test/mock_motion_event.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698