2010-08-27 John Gregg <johnnyg@google.com>
authorjohnnyg@google.com <johnnyg@google.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 31 Aug 2010 08:58:28 +0000 (08:58 +0000)
committerjohnnyg@google.com <johnnyg@google.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 31 Aug 2010 08:58:28 +0000 (08:58 +0000)
commita01e435998522d98111f9b7449eab8292af72cc8
tree85e3cbe3ae7a2414fca77f912fa167dc30ebf193
parent49e91a43087261ac9525fe609a501c16a459df7f
2010-08-27  John Gregg  <johnnyg@google.com>

        Reviewed by David Levin.

        Notifications should support a click event
        https://bugs.webkit.org/show_bug.cgi?id=44800

        * public/WebNotification.h:
        * src/WebNotification.cpp:
        (WebKit::WebNotification::dispatchClickEvent):
2010-08-27  John Gregg  <johnnyg@google.com>

        Reviewed by David Levin.

        Notifications should support a click event
        https://bugs.webkit.org/show_bug.cgi?id=44800

        Test: fast/notifications/notifications-click-event.html

        * notifications/Notification.h:
        * notifications/Notification.idl:
2010-08-27  John Gregg  <johnnyg@google.com>

        Reviewed by David Levin.

        Notifications should support a click event
        https://bugs.webkit.org/show_bug.cgi?id=44800

        * fast/notifications/notifications-click-event-expected.txt: Added.
        * fast/notifications/notifications-click-event.html: Added.
        * platform/qt/Skipped:
2010-08-27  John Gregg  <johnnyg@google.com>

        Reviewed by David Levin.

        Notifications should support a click event.
        Adds necessary hooks to chromium's DRT so that clicks on desktop notifications
        can be simulated during a layout test.  Requires storing a list of active
        notifications so that they can be referred to later for clicking.
        https://bugs.webkit.org/show_bug.cgi?id=44800

        * DumpRenderTree/chromium/LayoutTestController.cpp:
        (LayoutTestController::LayoutTestController):
        (LayoutTestController::simulateDesktopNotificationClick):
        * DumpRenderTree/chromium/LayoutTestController.h:
        * DumpRenderTree/chromium/NotificationPresenter.cpp:
        (NotificationPresenter::simulateClick):
        (NotificationPresenter::show):
        (NotificationPresenter::cancel):
        (NotificationPresenter::objectDestroyed):
        * DumpRenderTree/chromium/NotificationPresenter.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@66470 268f45cc-cd09-0410-ab3c-d52691b4dbfc
15 files changed:
LayoutTests/ChangeLog
LayoutTests/fast/notifications/notifications-click-event-expected.txt [new file with mode: 0644]
LayoutTests/fast/notifications/notifications-click-event.html [new file with mode: 0644]
LayoutTests/platform/qt/Skipped
WebCore/ChangeLog
WebCore/notifications/Notification.h
WebCore/notifications/Notification.idl
WebKit/chromium/ChangeLog
WebKit/chromium/public/WebNotification.h
WebKit/chromium/src/WebNotification.cpp
WebKitTools/ChangeLog
WebKitTools/DumpRenderTree/chromium/LayoutTestController.cpp
WebKitTools/DumpRenderTree/chromium/LayoutTestController.h
WebKitTools/DumpRenderTree/chromium/NotificationPresenter.cpp
WebKitTools/DumpRenderTree/chromium/NotificationPresenter.h