Changeset 60981 in webkit


Ignore:
Timestamp:
Jun 10, 2010 4:05:26 PM (14 years ago)
Author:
yael.aharon@nokia.com
Message:

[Qt] Support for loading notification icons
https://bugs.webkit.org/show_bug.cgi?id=40004

Reviewed by Kenneth Rohde Christiansen.

Take into use the icon that was loaded for the notification.

  • WebCoreSupport/NotificationPresenterClientQt.cpp:

(WebCore::NotificationPresenterClientQt::show):

Location:
trunk/WebKit/qt
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKit/qt/ChangeLog

    r60963 r60981  
     12010-06-10  Yael Aharon  <yael.aharon@nokia.com>
     2
     3        Reviewed by Kenneth Rohde Christiansen.
     4
     5        [Qt] Support for loading notification icons
     6        https://bugs.webkit.org/show_bug.cgi?id=40004
     7
     8        Take into use the icon that was loaded for the notification.
     9
     10        * WebCoreSupport/NotificationPresenterClientQt.cpp:
     11        (WebCore::NotificationPresenterClientQt::show):
     12
    1132010-06-10  Mahesh Kulkarni  <mahesh.kulkarni@nokia.com>
    214
  • trunk/WebKit/qt/WebCoreSupport/NotificationPresenterClientQt.cpp

    r60806 r60981  
    102102    if (dumpNotification)
    103103        dumpShowText(notification);
    104     displayNotification(notification, QByteArray());
     104    QByteArray iconData;
     105    if (notification->iconData())
     106        iconData = QByteArray::fromRawData(notification->iconData()->data(), notification->iconData()->size());
     107    displayNotification(notification, iconData);
     108    notification->releaseIconData();
    105109    return true;
    106110}
Note: See TracChangeset for help on using the changeset viewer.