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

Unified Diff: Source/web/WebNotification.cpp

Issue 184733002: Remove support for legacy WebKit Notifications (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove tests which no longer apply 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
Index: Source/web/WebNotification.cpp
diff --git a/Source/web/WebNotification.cpp b/Source/web/WebNotification.cpp
index 1e70be919487e7f78a4b3be44bc563e8165646e7..caec7f36a37bed63ff9dc92507d3c3955ce531d1 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/NotificationBase.h"
+#include "modules/notifications/Notification.h"
#include "platform/UserGestureIndicator.h"
#include "public/platform/WebString.h"
#include "public/platform/WebURL.h"
@@ -44,7 +44,7 @@ using namespace WebCore;
namespace blink {
-class WebNotificationPrivate : public NotificationBase {
+class WebNotificationPrivate : public Notification {
};
abarth-chromium 2014/03/01 06:23:49 You can almost certainly delete WebNotificationPri
void WebNotification::reset()
@@ -124,20 +124,20 @@ void WebNotification::dispatchClickEvent()
m_private->dispatchClickEvent();
}
-WebNotification::WebNotification(const WTF::PassRefPtr<NotificationBase>& notification)
+WebNotification::WebNotification(const WTF::PassRefPtr<Notification>& notification)
: m_private(static_cast<WebNotificationPrivate*>(notification.leakRef()))
{
}
-WebNotification& WebNotification::operator=(const WTF::PassRefPtr<NotificationBase>& notification)
+WebNotification& WebNotification::operator=(const WTF::PassRefPtr<Notification>& notification)
{
assign(static_cast<WebNotificationPrivate*>(notification.leakRef()));
return *this;
}
-WebNotification::operator WTF::PassRefPtr<NotificationBase>() const
+WebNotification::operator WTF::PassRefPtr<Notification>() const
{
- return WTF::PassRefPtr<NotificationBase>(const_cast<WebNotificationPrivate*>(m_private));
+ return WTF::PassRefPtr<Notification>(const_cast<WebNotificationPrivate*>(m_private));
}
void WebNotification::assign(WebNotificationPrivate* p)

Powered by Google App Engine
This is Rietveld 408576698