2009-12-14 Simon Hausmann <hausmann@webkit.org>
Reviewed by Holger Freyther.
[Qt] Extend basic touch event test with a simple keyboard modifier test.
https://bugs.webkit.org/show_bug.cgi?id=32482
* fast/events/basic-touch-events-expected.txt:
* fast/events/script-tests/basic-touch-events.js:
(singleTouchSequence):
2009-12-14 Simon Hausmann <hausmann@webkit.org>
Reviewed by Holger Freyther.
[Qt] Add support for keyboard modifiers to TouchEvent
https://bugs.webkit.org/show_bug.cgi?id=32482
Similar to other ui events with keyboard state, get the alt, shift,
meta and ctrl modifiers straight from the platform event.
* dom/TouchEvent.cpp:
(WebCore::TouchEvent::TouchEvent):
(WebCore::TouchEvent::initTouchEvent):
* dom/TouchEvent.h:
(WebCore::TouchEvent::create):
* dom/TouchEvent.idl:
* page/EventHandler.cpp:
(WebCore::EventHandler::handleTouchEvent):
* platform/PlatformTouchEvent.h:
(WebCore::PlatformTouchEvent::PlatformTouchEvent):
(WebCore::PlatformTouchEvent::shiftKey):
(WebCore::PlatformTouchEvent::ctrlKey):
(WebCore::PlatformTouchEvent::altKey):
(WebCore::PlatformTouchEvent::metaKey):
* platform/qt/PlatformTouchEventQt.cpp:
(WebCore::PlatformTouchEvent::PlatformTouchEvent):
2009-12-14 Simon Hausmann <hausmann@webkit.org>
Reviewed by Holger Freyther.
[Qt] Add support for keyboard modifiers to Qt DRT's EventSender for touch events
https://bugs.webkit.org/show_bug.cgi?id=32482
* DumpRenderTree/qt/EventSenderQt.cpp:
(EventSender::setTouchModifier):
(EventSender::clearTouchPoints):
(EventSender::sendTouchEvent):
* DumpRenderTree/qt/EventSenderQt.h:
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@52113 268f45cc-cd09-0410-ab3c-d52691b4dbfc
13 files changed: