Home | History | Annotate | Download | only in notifications

Lines Matching defs:Notification

32 #include "modules/notifications/Notification.h"
44 Notification* Notification::create(ExecutionContext* context, const String& title, const Dictionary& options)
47 Notification* notification = adoptRefCountedGarbageCollectedWillBeNoop(new Notification(title, context, &client));
51 notification->setBody(argument);
53 notification->setTag(argument);
55 notification->setLang(argument);
57 notification->setDir(argument);
61 notification->setIconUrl(iconUrl);
64 notification->suspendIfNeeded();
65 return notification;
68 Notification::Notification(const String& title, ExecutionContext* context, NotificationClient* client)
74 , m_asyncRunner(adoptPtr(new AsyncMethodRunner<Notification>(this, &Notification::show)))
82 Notification::~Notification()
86 void Notification::show()
101 void Notification::close()
114 void Notification::dispatchShowEvent()
119 void Notification::dispatchClickEvent()
126 void Notification::dispatchErrorEvent()
131 void Notification::dispatchCloseEvent()
137 TextDirection Notification::direction() const
143 const String& Notification::permissionString(NotificationClient::Permission permission)
162 const String& Notification::permission(ExecutionContext* context)
170 void Notification::requestPermission(ExecutionContext* context, PassOwnPtr<NotificationPermissionCallback> callback)
176 bool Notification::dispatchEvent(PassRefPtrWillBeRawPtr<Event> event)
183 const AtomicString& Notification::interfaceName() const
185 return EventTargetNames::Notification;
188 void Notification::stop()
200 bool Notification::hasPendingActivity() const