summaryrefslogtreecommitdiffstats
path: root/WebCore/notifications/Notification.h
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/notifications/Notification.h')
-rw-r--r--WebCore/notifications/Notification.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/WebCore/notifications/Notification.h b/WebCore/notifications/Notification.h
index 0e66b3d..20a319b 100644
--- a/WebCore/notifications/Notification.h
+++ b/WebCore/notifications/Notification.h
@@ -44,6 +44,7 @@
#include "NotificationContents.h"
#include "RegisteredEventListener.h"
#include "SharedBuffer.h"
+#include "TextDirection.h"
#include "ThreadableLoader.h"
#include "ThreadableLoaderClient.h"
#include <wtf/OwnPtr.h>
@@ -76,6 +77,8 @@ namespace WebCore {
String replaceId() const { return m_replaceId; }
void setReplaceId(const String& replaceId) { m_replaceId = replaceId; }
+ TextDirection direction() const { return dir() == "rtl" ? RTL : LTR; }
+
DEFINE_ATTRIBUTE_EVENT_LISTENER(display);
DEFINE_ATTRIBUTE_EVENT_LISTENER(error);
DEFINE_ATTRIBUTE_EVENT_LISTENER(close);
@@ -87,6 +90,9 @@ namespace WebCore {
virtual ScriptExecutionContext* scriptExecutionContext() const { return ActiveDOMObject::scriptExecutionContext(); }
virtual Notification* toNotification() { return this; }
+ // ActiveDOMObject interface
+ virtual void contextDestroyed();
+
void stopLoading();
SharedBuffer* iconData() { return m_iconData.get(); }