Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1005)

Unified Diff: Source/web/WebNotification.cpp

Issue 187323005: Revert of Remove support for legacy WebKit Notifications (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/web/NotificationPresenterImpl.cpp ('k') | public/web/WebNotification.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebNotification.cpp
diff --git a/Source/web/WebNotification.cpp b/Source/web/WebNotification.cpp
index caec7f36a37bed63ff9dc92507d3c3955ce531d1..1e70be919487e7f78a4b3be44bc563e8165646e7 100644
--- a/Source/web/WebNotification.cpp
+++ b/Source/web/WebNotification.cpp
@@ -34,7 +34,7 @@
#include "WebTextDirection.h"
#include "core/events/Event.h"
#include "core/page/WindowFocusAllowedIndicator.h"
-#include "modules/notifications/Notification.h"
+#include "modules/notifications/NotificationBase.h"
#include "platform/UserGestureIndicator.h"
#include "public/platform/WebString.h"
#include "public/platform/WebURL.h"
@@ -44,7 +44,7 @@
namespace blink {
-class WebNotificationPrivate : public Notification {
+class WebNotificationPrivate : public NotificationBase {
};
void WebNotification::reset()
@@ -124,20 +124,20 @@
m_private->dispatchClickEvent();
}
-WebNotification::WebNotification(const WTF::PassRefPtr<Notification>& notification)
+WebNotification::WebNotification(const WTF::PassRefPtr<NotificationBase>& notification)
: m_private(static_cast<WebNotificationPrivate*>(notification.leakRef()))
{
}
-WebNotification& WebNotification::operator=(const WTF::PassRefPtr<Notification>& notification)
+WebNotification& WebNotification::operator=(const WTF::PassRefPtr<NotificationBase>& notification)
{
assign(static_cast<WebNotificationPrivate*>(notification.leakRef()));
return *this;
}
-WebNotification::operator WTF::PassRefPtr<Notification>() const
+WebNotification::operator WTF::PassRefPtr<NotificationBase>() const
{
- return WTF::PassRefPtr<Notification>(const_cast<WebNotificationPrivate*>(m_private));
+ return WTF::PassRefPtr<NotificationBase>(const_cast<WebNotificationPrivate*>(m_private));
}
void WebNotification::assign(WebNotificationPrivate* p)
« no previous file with comments | « Source/web/NotificationPresenterImpl.cpp ('k') | public/web/WebNotification.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698