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

Unified Diff: Source/core/html/MediaError.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/fileapi/FileException.h ('k') | Source/core/html/MediaKeyError.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/MediaError.h
diff --git a/Source/core/html/MediaError.h b/Source/core/html/MediaError.h
index 31789bad31de72eaa5d8e83eb76bb7c925e35dca..8449b5ae90bb48650999bebfa75c77525d312a97 100644
--- a/Source/core/html/MediaError.h
+++ b/Source/core/html/MediaError.h
@@ -26,12 +26,13 @@
#ifndef MediaError_h
#define MediaError_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 MediaError : public RefCounted<MediaError> {
+class MediaError : public RefCounted<MediaError>, public ScriptWrappable {
public:
enum Code {
MEDIA_ERR_ABORTED = 1,
@@ -46,7 +47,10 @@ public:
Code code() const { return m_code; }
private:
- MediaError(Code code) : m_code(code) { }
+ MediaError(Code code) : m_code(code)
+ {
+ ScriptWrappable::init(this);
+ }
Code m_code;
};
« no previous file with comments | « Source/core/fileapi/FileException.h ('k') | Source/core/html/MediaKeyError.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698