Chromium Code Reviews| Index: Source/core/dom/ErrorEvent.h |
| diff --git a/Source/core/dom/ErrorEvent.h b/Source/core/dom/ErrorEvent.h |
| index a28dcbef2a1e81300849935046f502bf0a8e94db..124b502f197196aac9aa74ca13facd954dcc52c5 100644 |
| --- a/Source/core/dom/ErrorEvent.h |
| +++ b/Source/core/dom/ErrorEvent.h |
| @@ -31,7 +31,10 @@ |
| #ifndef ErrorEvent_h |
| #define ErrorEvent_h |
| +#include "bindings/v8/ScriptValue.h" |
| +#include "bindings/v8/SerializedScriptValue.h" |
| #include "core/dom/Event.h" |
| +#include "wtf/RefPtr.h" |
| #include "wtf/text/WTFString.h" |
| namespace WebCore { |
| @@ -43,6 +46,7 @@ struct ErrorEventInit : public EventInit { |
| String filename; |
| unsigned lineno; |
| unsigned colno; |
| + ScriptValue error; |
|
adamk
2013/07/30 17:55:41
Is this doing anything other than satisfying the c
|
| }; |
| class ErrorEvent : public Event { |
| @@ -59,6 +63,10 @@ public: |
| { |
| return adoptRef(new ErrorEvent(type, initializer)); |
| } |
| + static PassRefPtr<ErrorEvent> createSanitizedError() |
| + { |
| + return adoptRef(new ErrorEvent("Script error.", String(), 0, 0)); |
| + } |
| virtual ~ErrorEvent(); |
| const String& message() const { return m_message; } |
| @@ -66,6 +74,8 @@ public: |
| unsigned lineno() const { return m_lineNumber; } |
| unsigned colno() const { return m_columnNumber; } |
| + void setSerializedError(PassRefPtr<SerializedScriptValue>) { } |
| + |
| virtual const AtomicString& interfaceName() const; |
| private: |
| @@ -73,6 +83,7 @@ private: |
| ErrorEvent(const String& message, const String& fileName, unsigned lineNumber, unsigned columnNumber); |
| ErrorEvent(const AtomicString&, const ErrorEventInit&); |
| + |
| String m_message; |
| String m_fileName; |
| unsigned m_lineNumber; |