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

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

Issue 502993004: Remove abstract Clone and Cancel methods from MotionEvent (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Owner for BUILD.gn 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: ui/events/test/mock_motion_event.cc
diff --git a/ui/events/test/mock_motion_event.cc b/ui/events/test/mock_motion_event.cc
index f3de1ddceee8408c8d96a0a43824e0537316f7f0..058efdb40dc803fdc0ee8f0c5ff10fbb5020fdfa 100644
--- a/ui/events/test/mock_motion_event.cc
+++ b/ui/events/test/mock_motion_event.cc
@@ -19,8 +19,7 @@ PointerProperties CreatePointer() {
}
PointerProperties CreatePointer(float x, float y, int id) {
- PointerProperties pointer(x, y);
- pointer.touch_major = MockMotionEvent::TOUCH_MAJOR;
+ PointerProperties pointer(x, y, MockMotionEvent::TOUCH_MAJOR);
pointer.id = id;
return pointer;
}
@@ -87,16 +86,6 @@ MockMotionEvent::MockMotionEvent(const MockMotionEvent& other)
MockMotionEvent::~MockMotionEvent() {}
-scoped_ptr<MotionEvent> MockMotionEvent::Clone() const {
- return scoped_ptr<MotionEvent>(new MockMotionEvent(*this));
-}
-
-scoped_ptr<MotionEvent> MockMotionEvent::Cancel() const {
- scoped_ptr<MockMotionEvent> event(new MockMotionEvent(*this));
- event->set_action(MotionEvent::ACTION_CANCEL);
- return event.Pass();
-}
-
void MockMotionEvent::PressPoint(float x, float y) {
ResolvePointers();
PushPointer(x, y);

Powered by Google App Engine
This is Rietveld 408576698