Commit 1e6727b4 authored by darin@chromium.org's avatar darin@chromium.org

2010-04-03 Darin Fisher <darin@chromium.org>

        Add default implementations of WebNotificationPresenter methods to
        repair the downstream Chromium build.

        * public/WebNotificationPresenter.h:
        (WebKit::WebNotificationPresenter::show):
        (WebKit::WebNotificationPresenter::cancel):
        (WebKit::WebNotificationPresenter::objectDestroyed):
        (WebKit::WebNotificationPresenter::checkPermission):
        (WebKit::WebNotificationPresenter::requestPermission):



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@57046 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent b4fefb8a
2010-04-03 Darin Fisher <darin@chromium.org>
Add default implementations of WebNotificationPresenter methods to
repair the downstream Chromium build.
* public/WebNotificationPresenter.h:
(WebKit::WebNotificationPresenter::show):
(WebKit::WebNotificationPresenter::cancel):
(WebKit::WebNotificationPresenter::objectDestroyed):
(WebKit::WebNotificationPresenter::checkPermission):
(WebKit::WebNotificationPresenter::requestPermission):
2010-04-02 Michael Nordman <michaeln@google.com>
Reviewed by Nate Chapin.
......
......@@ -51,22 +51,22 @@ public:
};
// Shows a notification.
virtual bool show(const WebNotification&) = 0;
virtual bool show(const WebNotification&) { return false; }
// Cancels a notification previously shown, and removes it if being shown.
virtual void cancel(const WebNotification&) = 0;
virtual void cancel(const WebNotification&) { }
// Indiciates that the notification object subscribed to events for a previously shown notification is
// being destroyed. Does _not_ remove the notification if being shown, but detaches it from receiving events.
virtual void objectDestroyed(const WebNotification&) = 0;
virtual void objectDestroyed(const WebNotification&) { }
// Checks the permission level for the given origin.
virtual Permission checkPermission(const WebURL&) = 0;
virtual Permission checkPermission(const WebURL&) { return PermissionNotAllowed; }
// Requests permission for a given origin. This operation is asynchronous and the callback provided
// will be invoked when the permission decision is made. Callback pointer must remain
// valid until called.
virtual void requestPermission(const WebSecurityOrigin&, WebNotificationPermissionCallback*) = 0;
virtual void requestPermission(const WebSecurityOrigin&, WebNotificationPermissionCallback*) { }
};
} // namespace WebKit
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment