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

Unified Diff: Source/core/fileapi/FileError.h

Issue 15605003: Make Exception and Error objects ScriptWrappable. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 7 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
« no previous file with comments | « Source/core/dom/EventException.h ('k') | Source/core/fileapi/FileException.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/fileapi/FileError.h
diff --git a/Source/core/fileapi/FileError.h b/Source/core/fileapi/FileError.h
index 66befa841ebbf74487358795a0058fe953b3b783..509e71607cec1b033c7268769d0931549c97928f 100644
--- a/Source/core/fileapi/FileError.h
+++ b/Source/core/fileapi/FileError.h
@@ -31,12 +31,13 @@
#ifndef FileError_h
#define FileError_h
-#include <wtf/PassRefPtr.h>
-#include <wtf/RefCounted.h>
+#include "bindings/v8/ScriptWrappable.h"
+#include "wtf/PassRefPtr.h"
+#include "wtf/RefCounted.h"
namespace WebCore {
-class FileError : public RefCounted<FileError> {
+class FileError : public RefCounted<FileError>, public ScriptWrappable {
public:
enum ErrorCode {
OK = 0,
@@ -61,7 +62,9 @@ public:
private:
FileError(ErrorCode code)
: m_code(code)
- { }
+ {
+ ScriptWrappable::init(this);
+ }
ErrorCode m_code;
};
« no previous file with comments | « Source/core/dom/EventException.h ('k') | Source/core/fileapi/FileException.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698