Index: Source/modules/webmidi/MIDIErrorCallback.h |
diff --git a/Source/core/dom/StringCallback.h b/Source/modules/webmidi/MIDIErrorCallback.h |
similarity index 79% |
copy from Source/core/dom/StringCallback.h |
copy to Source/modules/webmidi/MIDIErrorCallback.h |
index 92e83e2196093b00a42ae9fde89b2612821d2d45..3a0e41edbee99b7c447866ce544afa475c131c10 100644 |
--- a/Source/core/dom/StringCallback.h |
+++ b/Source/modules/webmidi/MIDIErrorCallback.h |
@@ -1,5 +1,5 @@ |
/* |
- * Copyright (C) 2010 Google Inc. All rights reserved. |
+ * Copyright (C) 2013 Google Inc. All rights reserved. |
* |
* Redistribution and use in source and binary forms, with or without |
* modification, are permitted provided that the following conditions are |
@@ -28,25 +28,26 @@ |
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
-#ifndef StringCallback_h |
-#define StringCallback_h |
+#ifndef MIDIErrorCallback_h |
+#define MIDIErrorCallback_h |
-#include <wtf/Forward.h> |
-#include <wtf/RefCounted.h> |
+#include "wtf/PassRefPtr.h" |
+#include "wtf/RefCounted.h" |
namespace WebCore { |
+class DOMError; |
class ScriptExecutionContext; |
-class StringCallback : public RefCounted<StringCallback> { |
+class MIDIErrorCallback : public RefCounted<MIDIErrorCallback> { |
public: |
- virtual ~StringCallback() { } |
- virtual bool handleEvent(const String& data) = 0; |
+ virtual ~MIDIErrorCallback() { } |
+ virtual bool handleEvent(DOMError*) = 0; |
// Helper to post callback task. |
- void scheduleCallback(ScriptExecutionContext*, const String& data); |
+ void scheduleCallback(ScriptExecutionContext*, PassRefPtr<DOMError>); |
}; |
} // namespace WebCore |
-#endif // StringCallback_h |
+#endif // MIDIErrorCallback_h |