}
#if ENABLE(TIZEN_WEBKIT2_HIT_TEST)
+#if ENABLE(TOUCH_ADJUSTMENT)
+WebHitTestResult::Data WebPageProxy::hitTestResultAtPoint(const IntPoint& point, int hitTestMode, const IntSize& area)
+#else
WebHitTestResult::Data WebPageProxy::hitTestResultAtPoint(const IntPoint& point, int hitTestMode)
+#endif
{
WebHitTestResult::Data hitTestResultData;
if (!isValid())
return hitTestResultData;
+#if ENABLE(TOUCH_ADJUSTMENT)
+ process()->sendSync(Messages::WebPage::HitTestResultAtPoint(point, hitTestMode, area),
+ Messages::WebPage::HitTestResultAtPoint::Reply(hitTestResultData), m_pageID);
+#else
process()->sendSync(Messages::WebPage::HitTestResultAtPoint(point, hitTestMode),
Messages::WebPage::HitTestResultAtPoint::Reply(hitTestResultData), m_pageID);
+#endif
return hitTestResultData;
}
return result;
}
-bool WebPageProxy::setLeftSelection(const IntPoint& point)
+int WebPageProxy::setLeftSelection(const IntPoint& point, const int direction)
{
if (!isValid())
- return false;
+ return 0;
- bool result = false;
- process()->sendSync(Messages::WebPage::SetLeftSelection(point), Messages::WebPage::SetLeftSelection::Reply(result), m_pageID);
+ int result = 0;
+ process()->sendSync(Messages::WebPage::SetLeftSelection(point, direction), Messages::WebPage::SetLeftSelection::Reply(result), m_pageID);
return result;
}
-bool WebPageProxy::setRightSelection(const IntPoint& point)
+int WebPageProxy::setRightSelection(const IntPoint& point, const int direction)
{
if (!isValid())
- return false;
+ return 0;
- bool result;
- process()->sendSync(Messages::WebPage::SetRightSelection(point), Messages::WebPage::SetRightSelection::Reply(result), m_pageID);
+ int result = 0;
+ process()->sendSync(Messages::WebPage::SetRightSelection(point, direction), Messages::WebPage::SetRightSelection::Reply(result), m_pageID);
return result;
}