Changeset 79534 in webkit
- Timestamp:
- Feb 24, 2011 2:57:28 AM (13 years ago)
- Location:
- trunk/Source
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r79530 r79534 1 2011-02-24 Robert Kroeger <rjkroege@chromium.org> 2 3 Reviewed by Darin Fisher. 4 5 Added timestamps to PlatformTouchEvent etc. 6 7 PlatformTouchEvent doesn't have a timestamp and so 8 eventSender.leapForward cannot be used for touchevent based tests. 9 This change adds a timestamp to PlatformTouchEvent and initializes 10 it in a reasonable manner on Android and Qt platforms. 11 12 [chromium] [WebCore] [android] Touch events are missing time stamps 13 https://bugs.webkit.org/show_bug.cgi?id=53510 14 15 * platform/PlatformTouchEvent.h: 16 (WebCore::PlatformTouchEvent::PlatformTouchEvent): 17 (WebCore::PlatformTouchEvent::timestamp): 18 * platform/android/PlatformTouchEventAndroid.cpp: 19 (WebCore::PlatformTouchEvent::PlatformTouchEvent): 20 * platform/qt/PlatformTouchEventQt.cpp: 21 (WebCore::PlatformTouchEvent::PlatformTouchEvent): 22 1 23 2011-02-24 Renata Hodovan <reni@webkit.org> 2 24 -
trunk/Source/WebCore/platform/PlatformTouchEvent.h
r74626 r79534 63 63 , m_shiftKey(false) 64 64 , m_metaKey(false) 65 , m_timestamp(0) 65 66 {} 66 67 #if PLATFORM(QT) … … 82 83 bool metaKey() const { return m_metaKey; } 83 84 85 // Time in seconds. 86 double timestamp() const { return m_timestamp; } 87 84 88 protected: 85 89 TouchEventType m_type; … … 89 93 bool m_shiftKey; 90 94 bool m_metaKey; 95 double m_timestamp; 91 96 }; 92 97 -
trunk/Source/WebCore/platform/android/PlatformTouchEventAndroid.cpp
r69034 r79534 26 26 #include "config.h" 27 27 #include "PlatformTouchEvent.h" 28 #include <wtf/CurrentTime.h> 28 29 29 30 #if ENABLE(TOUCH_EVENTS) … … 41 42 : m_type(type) 42 43 , m_metaKey(false) 44 , m_timestamp(WTF::currentTime()) 43 45 { 44 46 m_touchPoints.reserveCapacity(windowPoints.size()); -
trunk/Source/WebCore/platform/qt/PlatformTouchEventQt.cpp
r52113 r79534 23 23 #include "config.h" 24 24 #include "PlatformTouchEvent.h" 25 #include <wtf/CurrentTime.h> 25 26 26 27 #if ENABLE(TOUCH_EVENTS) … … 43 44 m_shiftKey = (event->modifiers() & Qt::ShiftModifier); 44 45 m_metaKey = (event->modifiers() & Qt::MetaModifier); 46 m_timestamp = WTF::currentTime(); 45 47 } 46 48 -
trunk/Source/WebKit/chromium/ChangeLog
r79503 r79534 1 2011-02-24 Robert Kroeger <rjkroege@chromium.org> 2 3 Reviewed by Darin Fisher. 4 5 Added timestamps to PlatformTouchEvent etc. 6 7 PlatformTouchEvent doesn't have a timestamp and so 8 eventSender.leapForward cannot be used for touchevent based tests. 9 This change constructs PlatformTouchEvents with timestamps 10 provided from a WebTouchEvent on chromium. It also adds an enum 11 to make code referring to specific WebTouchPoints easier to read. 12 13 [chromium] [WebCore] [android] Touch events are missing time stamps 14 https://bugs.webkit.org/show_bug.cgi?id=53510 15 16 * public/WebTouchPoint.h: 17 (WebKit::WebTouchPoint::WebTouchPoint): 18 * src/WebInputEventConversion.cpp: 19 (WebKit::PlatformTouchEventBuilder::PlatformTouchEventBuilder): 20 1 21 2011-02-23 Adam Barth <abarth@webkit.org> 2 22 -
trunk/Source/WebKit/chromium/public/WebTouchPoint.h
r55507 r79534 39 39 class WebTouchPoint { 40 40 public: 41 enum Finger { 42 FingerFirst, 43 FingerSecond, 44 FingerThird 45 }; 46 41 47 WebTouchPoint() 42 : id( 0)48 : id(FingerFirst) 43 49 , state(StateUndefined) { } 44 50 -
trunk/Source/WebKit/chromium/src/WebInputEventConversion.cpp
r65747 r79534 222 222 m_shiftKey = event.modifiers & WebInputEvent::ShiftKey; 223 223 m_metaKey = event.modifiers & WebInputEvent::MetaKey; 224 m_timestamp = event.timeStampSeconds; 224 225 225 226 for (int i = 0; i < event.touchPointsLength; ++i)
Note: See TracChangeset
for help on using the changeset viewer.