Index: Source/modules/webmidi/NavigatorWebMIDI.h |
diff --git a/Source/modules/webmidi/NavigatorWebMIDI.h b/Source/modules/webmidi/NavigatorWebMIDI.h |
index 11b7f6984d40c9b520c36f6e92b58a8975d8d582..e7bfb1592fa9f4e34a2129b08498c62729764ba5 100644 |
--- a/Source/modules/webmidi/NavigatorWebMIDI.h |
+++ b/Source/modules/webmidi/NavigatorWebMIDI.h |
@@ -31,13 +31,14 @@ |
#ifndef NavigatorWebMIDI_h |
#define NavigatorWebMIDI_h |
+#include "bindings/v8/ScriptPromise.h" |
#include "core/frame/DOMWindowProperty.h" |
#include "modules/webmidi/MIDIOptions.h" |
#include "platform/Supplementable.h" |
namespace WebCore { |
-class MIDIAccessPromise; |
+class ExecutionContext; |
class Navigator; |
class NavigatorWebMIDI FINAL : public Supplement<Navigator>, public DOMWindowProperty { |
@@ -45,8 +46,8 @@ public: |
virtual ~NavigatorWebMIDI(); |
static NavigatorWebMIDI& from(Navigator&); |
- static PassRefPtrWillBeRawPtr<MIDIAccessPromise> requestMIDIAccess(Navigator&, const Dictionary&); |
- PassRefPtrWillBeRawPtr<MIDIAccessPromise> requestMIDIAccess(const Dictionary&); |
+ static ScriptPromise requestMIDIAccess(Navigator&, const Dictionary&); |
+ ScriptPromise requestMIDIAccess(const Dictionary&); |
private: |
NavigatorWebMIDI(LocalFrame*); |