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

Unified Diff: content/renderer/media/midi_dispatcher.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: review #10 and #11, rebase PS will follow 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 | « no previous file | content/renderer/media/midi_dispatcher.cc » ('j') | content/renderer/media/midi_dispatcher.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/midi_dispatcher.h
diff --git a/content/renderer/media/midi_dispatcher.h b/content/renderer/media/midi_dispatcher.h
index ab85d77086662c1264fcd15ad8594374a4173182..206317dcb29801928311f945394abcbb12e03577 100644
--- a/content/renderer/media/midi_dispatcher.h
+++ b/content/renderer/media/midi_dispatcher.h
@@ -29,13 +29,13 @@ class MidiDispatcher : public RenderFrameObserver,
private:
// blink::WebMIDIClient implementation.
- void requestSysexPermission(
- const blink::WebMIDIPermissionRequest& request) override;
- void cancelSysexPermissionRequest(
+ void requestPermission(const blink::WebMIDIPermissionRequest& request,
+ const blink::WebMIDIOptions& options) override;
+ void cancelPermissionRequest(
const blink::WebMIDIPermissionRequest& request) override;
- // Permission for using system exclusive messages has been set.
- void OnSysExPermissionSet(int request_id, PermissionStatus status);
+ // Permission for using MIDI system has been set.
+ void OnPermissionSet(int request_id, PermissionStatus status);
// Each WebMIDIPermissionRequest object is valid until
// cancelSysexPermissionRequest() is called with the object, or used to call
« no previous file with comments | « no previous file | content/renderer/media/midi_dispatcher.cc » ('j') | content/renderer/media/midi_dispatcher.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698