Changeset 122469 in webkit
- Timestamp:
- Jul 12, 2012 9:35:57 AM (12 years ago)
- Location:
- trunk/Source/WebKit/blackberry
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/blackberry/Api/WebPage.cpp
r122444 r122469 4130 4130 { 4131 4131 #if DEBUG_TOUCH_EVENTS 4132 switch (event.m_type) { 4133 case Platform::TouchEvent::TouchEnd: 4134 Platform::log(Platform::LogLevelCritical, "WebPage::touchEvent Touch End"); 4135 break; 4136 case Platform::TouchEvent::TouchStart: 4137 Platform::log(Platform::LogLevelCritical, "WebPage::touchEvent Touch Start"); 4138 break; 4139 case Platform::TouchEvent::TouchMove: 4140 Platform::log(Platform::LogLevelCritical, "WebPage::touchEvent Touch Move"); 4141 break; 4142 case Platform::TouchEvent::TouchCancel: 4143 Platform::log(Platform::LogLevelCritical, "WebPage::touchCancel Touch Cancel"); 4144 break; 4145 } 4146 4147 for (unsigned i = 0; i < event.m_points.size(); i++) { 4148 switch (event.m_points[i].m_state) { 4149 case Platform::TouchPoint::TouchPressed: 4150 Platform::log(Platform::LogLevelCritical, "WebPage::touchEvent %d Touch Pressed (%d, %d)", event.m_points[i].m_id, event.m_points[i].m_pos.x(), event.m_points[i].m_pos.y()); 4151 break; 4152 case Platform::TouchPoint::TouchReleased: 4153 Platform::log(Platform::LogLevelCritical, "WebPage::touchEvent %d Touch Released (%d, %d)", event.m_points[i].m_id, event.m_points[i].m_pos.x(), event.m_points[i].m_pos.y()); 4154 break; 4155 case Platform::TouchPoint::TouchMoved: 4156 Platform::log(Platform::LogLevelCritical, "WebPage::touchEvent %d Touch Moved (%d, %d)", event.m_points[i].m_id, event.m_points[i].m_pos.x(), event.m_points[i].m_pos.y()); 4157 break; 4158 case Platform::TouchPoint::TouchStationary: 4159 Platform::log(Platform::LogLevelCritical, "WebPage::touchEvent %d Touch Stationary (%d, %d)", event.m_points[i].m_id, event.m_points[i].m_pos.x(), event.m_points[i].m_pos.y()); 4160 break; 4161 } 4162 } 4132 BBLOG(LogLevelCritical, "%s", event.toString().c_str()); 4163 4133 #endif 4164 4134 -
trunk/Source/WebKit/blackberry/ChangeLog
r122444 r122469 1 2012-07-12 Pawel Chomicki <pchomicki@rim.com> 2 3 [BlackBerry] WebPage::touchEvent() should use Platform::TouchEvent's toString() for debugging. 4 https://bugs.webkit.org/show_bug.cgi?id=91002 5 6 Reviewed by Antonio Gomes. 7 Reviewed internally by Genevieve Mak. 8 9 Updated DEBUG_TOUCH_EVENTS section of touchEvent method to utilize 10 Platform::TouchEvent's toString method. 11 12 * Api/WebPage.cpp: 13 (BlackBerry::WebKit::WebPage::touchEvent): 14 1 15 2012-07-12 Jonathan Dong <jonathan.dong@torchmobile.com.cn> 2 16
Note: See TracChangeset
for help on using the changeset viewer.