Chromium Code Reviews| Index: Source/modules/notifications/Notification.h |
| diff --git a/Source/modules/notifications/Notification.h b/Source/modules/notifications/Notification.h |
| index 4074afbeba9fe6eeb0739c61ab33505b0d1f502c..100c819b3e23e26db389248a6f0a5a4d9d5486b3 100644 |
| --- a/Source/modules/notifications/Notification.h |
| +++ b/Source/modules/notifications/Notification.h |
| @@ -31,6 +31,7 @@ |
| #ifndef Notification_h |
| #define Notification_h |
| +#include "bindings/core/v8/SerializedScriptValue.h" |
| #include "core/dom/ActiveDOMObject.h" |
| #include "modules/EventTargetModules.h" |
| #include "platform/AsyncMethodRunner.h" |
| @@ -76,6 +77,7 @@ public: |
| void dispatchErrorEvent() override; |
| void dispatchCloseEvent() override; |
| + SerializedScriptValue* data() const { return m_data.get(); } |
| String title() const { return m_title; } |
| String dir() const { return m_dir; } |
| String lang() const { return m_lang; } |
| @@ -115,6 +117,7 @@ private: |
| // instance until the operation completes. |
| void show(); |
| + void setData(PassRefPtr<SerializedScriptValue> data) { m_data = data; } |
|
Peter Beverloo
2015/03/12 01:16:26
nit: please place this under setSilent(). Generall
Sanghyun Park
2015/03/12 02:58:47
I see. I'll move this under setSlient().
|
| void setDir(const String& dir) { m_dir = dir; } |
| void setLang(const String& lang) { m_lang = lang; } |
| void setBody(const String& body) { m_body = body; } |
| @@ -125,6 +128,7 @@ private: |
| void setPersistentId(const String& persistentId) { m_persistentId = persistentId; } |
| private: |
| + RefPtr<SerializedScriptValue> m_data; |
| String m_title; |
| String m_dir; |
| String m_lang; |