#include "ui/events/test/motion_event_test_utils.h"
#include <sstream>
#include "base/check_op.h"
#include "ui/events/base_event_utils.h"
#include "ui/events/velocity_tracker/bitset_32.h"
#include "ui/events/velocity_tracker/motion_event.h"
TimeTicks;
namespace ui {
namespace test {
namespace {
PointerProperties CreatePointer() { … }
PointerProperties CreatePointer(float x, float y, int id) { … }
}
MockMotionEvent::MockMotionEvent()
: … { … }
MockMotionEvent::MockMotionEvent(Action action)
: … { … }
MockMotionEvent::MockMotionEvent(Action action,
TimeTicks time,
float x0,
float y0)
: … { … }
MockMotionEvent::MockMotionEvent(Action action,
TimeTicks time,
float x0,
float y0,
float x1,
float y1)
: … { … }
MockMotionEvent::MockMotionEvent(Action action,
TimeTicks time,
float x0,
float y0,
float x1,
float y1,
float x2,
float y2)
: … { … }
MockMotionEvent::MockMotionEvent(Action action,
base::TimeTicks time,
const std::vector<gfx::PointF>& positions) { … }
MockMotionEvent::MockMotionEvent(const MockMotionEvent& other)
: … { … }
MockMotionEvent::~MockMotionEvent() { … }
MockMotionEvent& MockMotionEvent::PressPoint(float x, float y) { … }
MockMotionEvent& MockMotionEvent::MovePoint(size_t index, float x, float y) { … }
MockMotionEvent& MockMotionEvent::ReleasePoint() { … }
MockMotionEvent& MockMotionEvent::ReleasePointAtIndex(size_t index) { … }
MockMotionEvent& MockMotionEvent::CancelPoint() { … }
MockMotionEvent& MockMotionEvent::SetTouchMajor(float new_touch_major) { … }
MockMotionEvent& MockMotionEvent::SetRawOffset(float raw_offset_x,
float raw_offset_y) { … }
MockMotionEvent& MockMotionEvent::SetToolType(size_t pointer_index,
ToolType tool_type) { … }
void MockMotionEvent::PushPointer(float x, float y) { … }
void MockMotionEvent::UpdatePointersAndID() { … }
MockMotionEvent& MockMotionEvent::SetPrimaryPointerId(int id) { … }
MotionEvent::Classification MockMotionEvent::GetClassification() const { … }
std::string ToString(const MotionEvent& event) { … }
}
}