Changeset 166698 in webkit
- Timestamp:
- Apr 2, 2014 11:15:51 PM (10 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/efl/ChangeLog
r166661 r166698 1 2014-04-02 Ryuan Choi <ryuan.choi@samsung.com> 2 3 [EFL][WK1] Use Evas_Touch_Point_State instead of Ewk_Touch_Point_Type 4 https://bugs.webkit.org/show_bug.cgi?id=131151 5 6 Reviewed by Gyuyoung Kim. 7 8 Like ewebkit2, we'd beter to use EFL type instead of WebKit specific type 9 In addition, changed type of id as int to match with ewebkit2. 10 11 * ewk/ewk_frame.h: Replace Ewk_Touch_Point_Type to Evas_Touch_Point_State. 12 * ewk/ewk_touch_event.cpp: 13 (toPlatformTouchPointState): 14 1 15 2014-04-02 Martin Hock <mhock@apple.com> 2 16 -
trunk/Source/WebKit/efl/ewk/ewk_frame.h
r141439 r166698 234 234 } Ewk_Touch_Event_Type; 235 235 236 /// Represents states of touch events.237 typedef enum {238 EWK_TOUCH_POINT_RELEASED,239 EWK_TOUCH_POINT_PRESSED,240 EWK_TOUCH_POINT_MOVED,241 EWK_TOUCH_POINT_STATIONARY,242 EWK_TOUCH_POINT_CANCELLED,243 EWK_TOUCH_POINT_END244 } Ewk_Touch_Point_Type;245 246 236 /// Creates a type name for _Ewk_Touch_Point. 247 237 typedef struct _Ewk_Touch_Point Ewk_Touch_Point; 248 238 /// Represents a touch point. 249 239 struct _Ewk_Touch_Point { 250 unsignedint id; /**< identifier of the touch event */240 int id; /**< identifier of the touch event */ 251 241 int x; /**< the horizontal position of the touch event */ 252 242 int y; /**< the horizontal position of the touch event */ 253 E wk_Touch_Point_Type state; /**< state of the touch event */243 Evas_Touch_Point_State state; /**< state of the touch event */ 254 244 }; 255 245 -
trunk/Source/WebKit/efl/ewk/ewk_touch_event.cpp
r163033 r166698 44 44 }; 45 45 46 inline static WebCore::PlatformTouchPoint::State toPlatformTouchPointState(E wk_Touch_Point_Type type)46 inline static WebCore::PlatformTouchPoint::State toPlatformTouchPointState(Evas_Touch_Point_State type) 47 47 { 48 48 switch (type) { 49 case E WK_TOUCH_POINT_RELEASED:49 case EVAS_TOUCH_POINT_UP: 50 50 return WebCore::PlatformTouchPoint::TouchReleased; 51 case E WK_TOUCH_POINT_PRESSED:51 case EVAS_TOUCH_POINT_DOWN: 52 52 return WebCore::PlatformTouchPoint::TouchPressed; 53 case E WK_TOUCH_POINT_MOVED:53 case EVAS_TOUCH_POINT_MOVE: 54 54 return WebCore::PlatformTouchPoint::TouchMoved; 55 case E WK_TOUCH_POINT_STATIONARY:55 case EVAS_TOUCH_POINT_STILL: 56 56 return WebCore::PlatformTouchPoint::TouchStationary; 57 case E WK_TOUCH_POINT_CANCELLED:57 case EVAS_TOUCH_POINT_CANCEL: 58 58 return WebCore::PlatformTouchPoint::TouchCancelled; 59 case EWK_TOUCH_POINT_END:60 return WebCore::PlatformTouchPoint::TouchStateEnd;61 59 } 62 60 -
trunk/Tools/ChangeLog
r166674 r166698 1 2014-04-02 Ryuan Choi <ryuan.choi@samsung.com> 2 3 [EFL][WK1] Use Evas_Touch_Point_State instead of Ewk_Touch_Point_Type 4 https://bugs.webkit.org/show_bug.cgi?id=131151 5 6 Reviewed by Gyuyoung Kim. 7 8 * DumpRenderTree/efl/EventSender.cpp: Replace Ewk_Touch_Point_Type to Evas_Touch_Point_State. 9 (TouchEventInfo::TouchEventInfo): 10 (sendTouchEvent): 11 (addTouchPointCallback): 12 (updateTouchPointCallback): 13 (cancelTouchPointCallback): 14 (releaseTouchPointCallback): 15 1 16 2014-04-02 David Kilzer <ddkilzer@apple.com> 2 17 -
trunk/Tools/DumpRenderTree/efl/EventSender.cpp
r165676 r166698 154 154 155 155 struct TouchEventInfo { 156 TouchEventInfo( unsigned id, Ewk_Touch_Point_Type state, const WebCore::IntPoint& point)156 TouchEventInfo(int id, Evas_Touch_Point_State state, const WebCore::IntPoint& point) 157 157 : state(state) 158 158 , point(point) … … 161 161 } 162 162 163 unsignedid;164 E wk_Touch_Point_Type state;163 int id; 164 Evas_Touch_Point_State state; 165 165 WebCore::IntPoint point; 166 166 }; … … 765 765 766 766 for (unsigned i = 0; i < touchPointList().size(); ) { 767 if (touchPointList().at(i).state == E WK_TOUCH_POINT_RELEASED)767 if (touchPointList().at(i).state == EVAS_TOUCH_POINT_UP) 768 768 touchPointList().remove(i); 769 769 else { 770 touchPointList().at(i).state = E WK_TOUCH_POINT_STATIONARY;770 touchPointList().at(i).state = EVAS_TOUCH_POINT_STILL; 771 771 ++i; 772 772 } … … 786 786 const WebCore::IntPoint point(x, y); 787 787 const unsigned id = touchPointList().isEmpty() ? 0 : touchPointList().last().id + 1; 788 TouchEventInfo eventInfo(id, E WK_TOUCH_POINT_PRESSED, point);788 TouchEventInfo eventInfo(id, EVAS_TOUCH_POINT_DOWN, point); 789 789 touchPointList().append(eventInfo); 790 790 … … 816 816 point.setX(x); 817 817 point.setY(y); 818 touchPointList().at(index).state = E WK_TOUCH_POINT_MOVED;818 touchPointList().at(index).state = EVAS_TOUCH_POINT_MOVE; 819 819 820 820 return JSValueMakeUndefined(context); … … 837 837 return JSValueMakeUndefined(context); 838 838 839 touchPointList().at(index).state = E WK_TOUCH_POINT_CANCELLED;839 touchPointList().at(index).state = EVAS_TOUCH_POINT_CANCEL; 840 840 return JSValueMakeUndefined(context); 841 841 } … … 857 857 return JSValueMakeUndefined(context); 858 858 859 touchPointList().at(index).state = E WK_TOUCH_POINT_RELEASED;859 touchPointList().at(index).state = EVAS_TOUCH_POINT_UP; 860 860 return JSValueMakeUndefined(context); 861 861 }
Note: See TracChangeset
for help on using the changeset viewer.