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

Unified Diff: third_party/WebKit/public/web/modules/webmidi/WebMIDIOptions.h

Issue 2129913005: Revert of Web MIDI: use mojom::blink::PermissionService directly to ask permission (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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: third_party/WebKit/public/web/modules/webmidi/WebMIDIOptions.h
diff --git a/third_party/WebKit/public/web/modules/webmidi/WebMIDIOptions.h b/third_party/WebKit/public/web/modules/webmidi/WebMIDIOptions.h
new file mode 100644
index 0000000000000000000000000000000000000000..6fce9256a167db632da6f952d8bea454ed09d743
--- /dev/null
+++ b/third_party/WebKit/public/web/modules/webmidi/WebMIDIOptions.h
@@ -0,0 +1,24 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef WebMIDIOptions_h
+#define WebMIDIOptions_h
+
+namespace blink {
+
+struct WebMIDIOptions {
+ enum class SysexPermission { WithSysex, WithoutSysex };
+
+ explicit WebMIDIOptions(SysexPermission sysex)
+ : sysex(sysex)
+ {
+ }
+
+ const SysexPermission sysex;
+ // TODO(crbug.com/502127): Add bool software to follow the latest spec.
+};
+
+} // namespace blink
+
+#endif // WebMIDIOptions_h

Powered by Google App Engine
This is Rietveld 408576698