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

Unified Diff: third_party/WebKit/public/web/modules/webmidi/WebMIDIClient.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
Index: third_party/WebKit/public/web/modules/webmidi/WebMIDIClient.h
diff --git a/third_party/WebKit/public/web/modules/webmidi/WebMIDIClient.h b/third_party/WebKit/public/web/modules/webmidi/WebMIDIClient.h
index 7ae72aefe368b22714410fbb11103f928f601030..2412860ae37159c4cc0144724ddc79fc641c5cd1 100644
--- a/third_party/WebKit/public/web/modules/webmidi/WebMIDIClient.h
+++ b/third_party/WebKit/public/web/modules/webmidi/WebMIDIClient.h
@@ -33,23 +33,24 @@
namespace blink {
+struct WebMIDIOptions;
class WebMIDIPermissionRequest;
class WebMIDIClient {
public:
virtual ~WebMIDIClient() { }
- // Request a permission to use system exclusive messages. Called when
- // MIDIOptions.sysex is true.
+ // Request a permission to use MIDI system. Called when requestMIDIAccess()
+ // is called with any option.
// Once the request is done, any WebMIDIPermissionRequest instances equal to
// |request| must not be accessed after that.
- virtual void requestSysexPermission(const WebMIDIPermissionRequest& /* request */) = 0;
+ virtual void requestPermission(const WebMIDIPermissionRequest& /* request */, const WebMIDIOptions& /* options */) = 0;
// Cancel the request since the requesting frame may be moving to
// a new page.
// Once canceled, any WebMIDIPermissionRequest instances equal to
// |request| must not be accessed after that.
- virtual void cancelSysexPermissionRequest(const WebMIDIPermissionRequest& /* request */) = 0;
+ virtual void cancelPermissionRequest(const WebMIDIPermissionRequest& /* request */) = 0;
};
} // namespace blink
« no previous file with comments | « third_party/WebKit/public/blink_headers.gypi ('k') | third_party/WebKit/public/web/modules/webmidi/WebMIDIOptions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698