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

Unified Diff: Source/modules/webmidi/NavigatorWebMIDI.h

Issue 77773003: Make WebMIDI use blink Promise. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 9 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
Index: Source/modules/webmidi/NavigatorWebMIDI.h
diff --git a/Source/modules/webmidi/NavigatorWebMIDI.h b/Source/modules/webmidi/NavigatorWebMIDI.h
index 11b7f6984d40c9b520c36f6e92b58a8975d8d582..cc11f1c1f3ce371f17c7c4eb18c3494b08e2cf68 100644
--- a/Source/modules/webmidi/NavigatorWebMIDI.h
+++ b/Source/modules/webmidi/NavigatorWebMIDI.h
@@ -31,13 +31,13 @@
#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 Navigator;
class NavigatorWebMIDI FINAL : public Supplement<Navigator>, public DOMWindowProperty {
@@ -45,8 +45,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*);

Powered by Google App Engine
This is Rietveld 408576698