Changeset 122469 in webkit


Ignore:
Timestamp:
Jul 12, 2012 9:35:57 AM (12 years ago)
Author:
commit-queue@webkit.org
Message:

[BlackBerry] WebPage::touchEvent() should use Platform::TouchEvent's toString() for debugging.
https://bugs.webkit.org/show_bug.cgi?id=91002

Patch by Pawel Chomicki <pchomicki@rim.com> on 2012-07-12
Reviewed by Antonio Gomes.
Reviewed internally by Genevieve Mak.

Updated DEBUG_TOUCH_EVENTS section of touchEvent method to utilize
Platform::TouchEvent's toString method.

  • Api/WebPage.cpp:

(BlackBerry::WebKit::WebPage::touchEvent):

Location:
trunk/Source/WebKit/blackberry
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/blackberry/Api/WebPage.cpp

    r122444 r122469  
    41304130{
    41314131#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());
    41634133#endif
    41644134
  • trunk/Source/WebKit/blackberry/ChangeLog

    r122444 r122469  
     12012-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
    1152012-07-12  Jonathan Dong  <jonathan.dong@torchmobile.com.cn>
    216
Note: See TracChangeset for help on using the changeset viewer.