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

Unified Diff: public/web/WebMIDIClient.h

Issue 208243014: Add sysexEnabled readonly attribute to MIDIAccess (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: kouhei review Created 6 years, 9 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 | « Source/web/WebMIDIPermissionRequest.cpp ('k') | public/web/WebMIDIClientMock.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/web/WebMIDIClient.h
diff --git a/public/web/WebMIDIClient.h b/public/web/WebMIDIClient.h
index 9435b938b2d04a428854e592da1fd7c353085b34..47b4e00e4350ff0baf52abc06d63b2a346b165d5 100644
--- a/public/web/WebMIDIClient.h
+++ b/public/web/WebMIDIClient.h
@@ -39,9 +39,14 @@ public:
virtual ~WebMIDIClient() { }
// Request a permission to use system exclusive messages. Called when MIDIOptions.sysex is true.
- virtual void requestSysExPermission(const WebMIDIPermissionRequest&) = 0;
+ // FIXME: Make following new functions pure virtual once Chromium implements them.
+ virtual void requestSysexPermission(const WebMIDIPermissionRequest&) { };
// Cancel the request since the requesting frame may be moving to a new page.
- virtual void cancelSysExPermissionRequest(const WebMIDIPermissionRequest&) = 0;
+ virtual void cancelSysexPermissionRequest(const WebMIDIPermissionRequest&) { };
+
+ // FIXME: Remove following old functions once Chromium usess new functions.
+ virtual void requestSysExPermission(const WebMIDIPermissionRequest&) { };
+ virtual void cancelSysExPermissionRequest(const WebMIDIPermissionRequest&) { };
};
} // namespace blink
« no previous file with comments | « Source/web/WebMIDIPermissionRequest.cpp ('k') | public/web/WebMIDIClientMock.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698