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

Unified Diff: Source/core/html/MediaKeyError.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/html/MediaError.h ('k') | Source/core/svg/SVGException.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/MediaKeyError.h
diff --git a/Source/core/html/MediaKeyError.h b/Source/core/html/MediaKeyError.h
index 4db0719507e90ee92423e78e830721f8cfd3f4e4..34ded1cb01e5a4af7a987824c05f0e7b08512988 100644
--- a/Source/core/html/MediaKeyError.h
+++ b/Source/core/html/MediaKeyError.h
@@ -26,12 +26,13 @@
#ifndef MediaKeyError_h
#define MediaKeyError_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 MediaKeyError : public RefCounted<MediaKeyError> {
+class MediaKeyError : public RefCounted<MediaKeyError>, public ScriptWrappable {
public:
enum {
MEDIA_KEYERR_UNKNOWN = 1,
@@ -49,7 +50,10 @@ public:
unsigned long systemCode() { return m_systemCode; }
private:
- explicit MediaKeyError(Code code, unsigned long systemCode) : m_code(code), m_systemCode(systemCode) { }
+ explicit MediaKeyError(Code code, unsigned long systemCode) : m_code(code), m_systemCode(systemCode)
+ {
+ ScriptWrappable::init(this);
+ }
Code m_code;
unsigned long m_systemCode;
« no previous file with comments | « Source/core/html/MediaError.h ('k') | Source/core/svg/SVGException.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698