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

Unified Diff: third_party/WebKit/Source/modules/webmidi/MIDIController.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/Source/modules/webmidi/MIDIController.h
diff --git a/third_party/WebKit/Source/modules/webmidi/MIDIController.h b/third_party/WebKit/Source/modules/webmidi/MIDIController.h
index 1157eb5eb7729466814b3411d77c5576a623fcc9..14ba3a072e7dcecac39687f726bbf8e5f9ae78be 100644
--- a/third_party/WebKit/Source/modules/webmidi/MIDIController.h
+++ b/third_party/WebKit/Source/modules/webmidi/MIDIController.h
@@ -38,6 +38,7 @@ namespace blink {
class MIDIAccessInitializer;
class MIDIClient;
+class MIDIOptions;
class MIDIController final : public NoBaseWillBeGarbageCollectedFinalized<MIDIController>, public WillBeHeapSupplement<LocalFrame> {
WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(MIDIController);
@@ -45,8 +46,8 @@ class MIDIController final : public NoBaseWillBeGarbageCollectedFinalized<MIDICo
public:
virtual ~MIDIController();
- void requestSysexPermission(MIDIAccessInitializer*);
- void cancelSysexPermissionRequest(MIDIAccessInitializer*);
+ void requestPermission(MIDIAccessInitializer*, const MIDIOptions&);
+ void cancelPermissionRequest(MIDIAccessInitializer*);
static PassOwnPtrWillBeRawPtr<MIDIController> create(PassOwnPtr<MIDIClient>);
static const char* supplementName();
« no previous file with comments | « third_party/WebKit/Source/modules/webmidi/MIDIClient.h ('k') | third_party/WebKit/Source/modules/webmidi/MIDIController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698