Changeset 68499 in webkit
- Timestamp:
- Sep 28, 2010 2:26:31 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 6 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r68498 r68499 1 2010-09-28 Huahui Wu <mediadependent@gmail.com> 2 3 Reviewed by Steve Block. 4 5 Add two multi-touch tests for Android. 6 https://bugs.webkit.org/show_bug.cgi?id=45221 7 8 The original tests (touch-target.html and basic-multi-touch-events.html) 9 requires the system being able to release one point while maintain another point. 10 Current Android system can not provide this to browser, hence these tests are 11 slightly modified for Android. Since these are limited version of the original ones, 12 other platforms should pass these tests if they can pass the original ones. 13 14 * fast/events/touch/basic-multi-touch-events-limited-expected.txt: Added. 15 * fast/events/touch/basic-multi-touch-events-limited.html: Added. 16 * fast/events/touch/script-tests/basic-multi-touch-events-limited.js: Added. 17 (touchEventCallback): 18 (verifyTouchEvent): 19 (verifyTouchPoint): 20 (verifyTouch): 21 (multiTouchSequence): 22 * fast/events/touch/script-tests/touch-target-limited.js: Added. 23 (touchStartHandler): 24 (touchMoveHandler): 25 * fast/events/touch/touch-target-limited-expected.txt: Added. 26 * fast/events/touch/touch-target-limited.html: Added. 27 1 28 2010-09-28 MORITA Hajime <morrita@google.com> 2 29 -
trunk/WebCore/ChangeLog
r68494 r68499 1 2010-09-28 Huahui Wu <mediadependent@gmail.com> 2 3 Reviewed by Steve Block. 4 5 Add multi-touch for Android. 6 https://bugs.webkit.org/show_bug.cgi?id=45221 7 8 The Android touch event used to take one point as the touch point, 9 it's now changed to a vector of points to support multi-touch. 10 11 Tests: fast/events/touch/basic-multi-touch-events-limited.html 12 fast/events/touch/touch-target-limited.html 13 14 * platform/PlatformTouchEvent.h: 15 * platform/PlatformTouchPoint.h: 16 * platform/android/PlatformTouchEventAndroid.cpp: 17 (WebCore::PlatformTouchEvent::PlatformTouchEvent): 18 * platform/android/PlatformTouchPointAndroid.cpp: 19 (WebCore::PlatformTouchPoint::PlatformTouchPoint): 20 1 21 2010-09-27 Kent Tamura <tkent@chromium.org> 2 22 -
trunk/WebCore/platform/PlatformTouchEvent.h
r68123 r68499 63 63 PlatformTouchEvent(QTouchEvent*); 64 64 #elif PLATFORM(ANDROID) 65 PlatformTouchEvent(const IntPoint& windowPos, TouchEventType, PlatformTouchPoint::State, int metaState);65 PlatformTouchEvent(const Vector<IntPoint>&, TouchEventType, PlatformTouchPoint::State, int metaState); 66 66 #elif PLATFORM(BREWMP) 67 67 PlatformTouchEvent(AEEEvent, uint16 wParam, uint32 dwParam); -
trunk/WebCore/platform/PlatformTouchPoint.h
r68123 r68499 48 48 PlatformTouchPoint() {}; 49 49 #elif PLATFORM(ANDROID) 50 PlatformTouchPoint( const IntPoint& windowPos, State);50 PlatformTouchPoint(unsigned id, const IntPoint& windowPos, State); 51 51 #elif PLATFORM(BREWMP) 52 52 PlatformTouchPoint(int id, const IntPoint& windowPos, State); -
trunk/WebCore/platform/android/PlatformTouchEventAndroid.cpp
r55843 r68499 38 38 }; 39 39 40 PlatformTouchEvent::PlatformTouchEvent(const IntPoint& windowPos, TouchEventType type, PlatformTouchPoint::State state, int metaState)40 PlatformTouchEvent::PlatformTouchEvent(const Vector<IntPoint>& windowPoints, TouchEventType type, PlatformTouchPoint::State state, int metaState) 41 41 : m_type(type) 42 42 , m_metaKey(false) 43 43 { 44 m_touchPoints.append(PlatformTouchPoint(windowPos, state)); 44 m_touchPoints.reserveCapacity(windowPoints.size()); 45 for (unsigned c = 0; c < windowPoints.size(); c++) 46 m_touchPoints.append(PlatformTouchPoint(windowPos, state)); 45 47 46 48 m_altKey = metaState & META_ALT_ON; -
trunk/WebCore/platform/android/PlatformTouchPointAndroid.cpp
r53994 r68499 31 31 namespace WebCore { 32 32 33 PlatformTouchPoint::PlatformTouchPoint( const IntPoint& windowPos, State state)34 : m_id( 0)33 PlatformTouchPoint::PlatformTouchPoint(unsigned id, const IntPoint& windowPos, State state) 34 : m_id(id) 35 35 , m_state(state) 36 36 , m_screenPos(windowPos)
Note: See TracChangeset
for help on using the changeset viewer.