| Index: Source/modules/webmidi/NavigatorWebMIDI.cpp
|
| diff --git a/Source/modules/webmidi/NavigatorWebMIDI.cpp b/Source/modules/webmidi/NavigatorWebMIDI.cpp
|
| index 6e02cdbc59400bf650ab580137d6ed75b4a31502..0775e2d671b7427134348623290b5d541b4f0c71 100644
|
| --- a/Source/modules/webmidi/NavigatorWebMIDI.cpp
|
| +++ b/Source/modules/webmidi/NavigatorWebMIDI.cpp
|
| @@ -70,12 +70,12 @@ NavigatorWebMIDI& NavigatorWebMIDI::from(Navigator& navigator)
|
| return *supplement;
|
| }
|
|
|
| -ScriptPromise NavigatorWebMIDI::requestMIDIAccess(ScriptState* scriptState, Navigator& navigator, const Dictionary& options)
|
| +ScriptPromise NavigatorWebMIDI::requestMIDIAccess(ScriptState* scriptState, Navigator& navigator, const MIDIOptions* options)
|
| {
|
| return NavigatorWebMIDI::from(navigator).requestMIDIAccess(scriptState, options);
|
| }
|
|
|
| -ScriptPromise NavigatorWebMIDI::requestMIDIAccess(ScriptState* scriptState, const Dictionary& options)
|
| +ScriptPromise NavigatorWebMIDI::requestMIDIAccess(ScriptState* scriptState, const MIDIOptions* options)
|
| {
|
| if (!frame() || frame()->document()->activeDOMObjectsAreStopped()) {
|
| RefPtr<ScriptPromiseResolver> resolver = ScriptPromiseResolver::create(scriptState);
|
| @@ -85,7 +85,7 @@ ScriptPromise NavigatorWebMIDI::requestMIDIAccess(ScriptState* scriptState, cons
|
| return promise;
|
| }
|
|
|
| - return MIDIAccessInitializer::start(scriptState, MIDIOptions(options));
|
| + return MIDIAccessInitializer::start(scriptState, options);
|
| }
|
|
|
| } // namespace blink
|
|
|