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

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

Issue 207583005: Revert of 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
« no previous file with comments | « Source/modules/webmidi/MIDIAccessPromise.idl ('k') | Source/modules/webmidi/NavigatorWebMIDI.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/webmidi/NavigatorWebMIDI.h
diff --git a/Source/modules/webmidi/NavigatorWebMIDI.h b/Source/modules/webmidi/NavigatorWebMIDI.h
index cea3e06448032de3a23c8862381fa49b67106698..3d7f9221f1a8f3869758911ddf56ea9f4f2ccd0b 100644
--- a/Source/modules/webmidi/NavigatorWebMIDI.h
+++ b/Source/modules/webmidi/NavigatorWebMIDI.h
@@ -31,7 +31,6 @@
#ifndef NavigatorWebMIDI_h
#define NavigatorWebMIDI_h
-#include "bindings/v8/ScriptPromise.h"
#include "core/frame/DOMWindowProperty.h"
#include "heap/Handle.h"
#include "modules/webmidi/MIDIOptions.h"
@@ -39,6 +38,7 @@
namespace WebCore {
+class MIDIAccessPromise;
class Navigator;
class NavigatorWebMIDI FINAL : public NoBaseWillBeGarbageCollectedFinalized<NavigatorWebMIDI>, public WillBeHeapSupplement<Navigator>, public DOMWindowProperty {
@@ -47,8 +47,8 @@
virtual ~NavigatorWebMIDI();
static NavigatorWebMIDI& from(Navigator&);
- static ScriptPromise requestMIDIAccess(Navigator&, const Dictionary&);
- ScriptPromise requestMIDIAccess(const Dictionary&);
+ static PassRefPtrWillBeRawPtr<MIDIAccessPromise> requestMIDIAccess(Navigator&, const Dictionary&);
+ PassRefPtrWillBeRawPtr<MIDIAccessPromise> requestMIDIAccess(const Dictionary&);
void trace(Visitor*) { }
« no previous file with comments | « Source/modules/webmidi/MIDIAccessPromise.idl ('k') | Source/modules/webmidi/NavigatorWebMIDI.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698