PlatformTouchPointIOS.h [plain text]
#ifndef PlatformTouchPointIOS_h
#define PlatformTouchPointIOS_h
#include "IntPoint.h"
#if ENABLE(TOUCH_EVENTS)
namespace WebCore {
class PlatformTouchPoint
{
public:
enum TouchPhaseType {
TouchPhaseBegan,
TouchPhaseMoved,
TouchPhaseStationary,
TouchPhaseEnded,
TouchPhaseCancelled
};
unsigned identifier() const { return m_identifier; }
IntPoint location() const { return m_location; }
TouchPhaseType phase() const { return m_phase; }
protected:
PlatformTouchPoint(unsigned identifier, const IntPoint& location, TouchPhaseType phase)
: m_identifier(identifier)
, m_location(location)
, m_phase(phase)
{
}
private:
unsigned m_identifier;
IntPoint m_location;
TouchPhaseType m_phase;
};
}
#endif // ENABLE(TOUCH_EVENTS)
#endif // PlatformTouchPointIOS_h