#include "third_party/blink/renderer/modules/webmidi/navigator_web_midi.h"
#include "third_party/blink/public/mojom/permissions_policy/permissions_policy.mojom-blink.h"
#include "third_party/blink/renderer/bindings/core/v8/script_promise.h"
#include "third_party/blink/renderer/bindings/core/v8/script_promise_resolver.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_midi_options.h"
#include "third_party/blink/renderer/core/dom/dom_exception.h"
#include "third_party/blink/renderer/core/execution_context/execution_context.h"
#include "third_party/blink/renderer/core/frame/deprecation/deprecation.h"
#include "third_party/blink/renderer/core/frame/local_dom_window.h"
#include "third_party/blink/renderer/core/frame/local_frame.h"
#include "third_party/blink/renderer/core/frame/navigator.h"
#include "third_party/blink/renderer/core/inspector/console_message.h"
#include "third_party/blink/renderer/modules/webmidi/midi_access_initializer.h"
#include "third_party/blink/renderer/platform/bindings/exception_state.h"
#include "third_party/blink/renderer/platform/heap/garbage_collected.h"
#include "third_party/blink/renderer/platform/instrumentation/use_counter.h"
namespace blink {
namespace {
const char kFeaturePolicyErrorMessage[] = …;
const char kFeaturePolicyConsoleWarning[] = …;
}
NavigatorWebMIDI::NavigatorWebMIDI(Navigator& navigator)
: … { … }
void NavigatorWebMIDI::Trace(Visitor* visitor) const { … }
const char NavigatorWebMIDI::kSupplementName[] = …;
NavigatorWebMIDI& NavigatorWebMIDI::From(Navigator& navigator) { … }
ScriptPromise<MIDIAccess> NavigatorWebMIDI::requestMIDIAccess(
ScriptState* script_state,
Navigator& navigator,
const MIDIOptions* options,
ExceptionState& exception_state) { … }
ScriptPromise<MIDIAccess> NavigatorWebMIDI::requestMIDIAccess(
ScriptState* script_state,
const MIDIOptions* options,
ExceptionState& exception_state) { … }
}