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

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

Issue 1602703005: Web MIDI: Ask permissions of the content layer always (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: revert layout_test_message_filter.cc that should be in the next CL Created 4 years, 11 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 | « third_party/WebKit/public/web/modules/webmidi/WebMIDIClient.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « third_party/WebKit/public/web/modules/webmidi/WebMIDIClient.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698