TouchEventHandler.h [plain text]
#ifndef TouchEventHandler_h
#define TouchEventHandler_h
#include "ChromeClient.h"
#include "FatFingers.h"
#include "IntPoint.h"
#include <BlackBerryPlatformTouchEvent.h>
namespace BlackBerry {
namespace WebKit {
class WebPagePrivate;
class TouchEventHandler {
public:
TouchEventHandler(WebPagePrivate* webpage);
~TouchEventHandler();
bool handleTouchPoint(Platform::TouchPoint&);
void touchEventCancel();
void touchEventCancelAndClearFocusedNode();
void touchHoldEvent();
bool shouldSuppressMouseDownOnTouchDown() const;
const FatFingersResult& lastFatFingersResult() const { return m_lastFatFingersResult; }
void resetLastFatFingersResult() { m_lastFatFingersResult.reset(); }
private:
unsigned spellCheck(Platform::TouchPoint&);
void handleFatFingerPressed();
void drawTapHighlight();
private:
WebPagePrivate* m_webPage;
bool m_didCancelTouch;
bool m_convertTouchToMouse;
WebCore::TouchEventMode m_existingTouchMode;
WebCore::IntPoint m_lastScreenPoint;
FatFingersResult m_lastFatFingersResult;
};
}
}
#endif // TouchEventHandler_h