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

Unified Diff: content/renderer/media/midi_message_filter.h

Issue 2438043003: Web MIDI: move device state adjustment code from content to Blink (Closed)
Patch Set: Created 4 years, 2 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_message_filter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/midi_message_filter.h
diff --git a/content/renderer/media/midi_message_filter.h b/content/renderer/media/midi_message_filter.h
index aabca4fb9dd36d03c1067011d8fa17fabb6e89c0..435609c79f71c6a62e7e22bd719e2396e210dbf5 100644
--- a/content/renderer/media/midi_message_filter.h
+++ b/content/renderer/media/midi_message_filter.h
@@ -54,15 +54,6 @@ class CONTENT_EXPORT MidiMessageFilter : public IPC::MessageFilter {
return io_task_runner_.get();
}
- static midi::mojom::PortState ToBlinkState(midi::mojom::PortState state) {
- // "open" status is separately managed by blink per MIDIAccess instance.
- // TODO(toyoshim): Pass through the state as is, and have a logic to convert
- // this state to JavaScript exposing state in Blink side.
- if (state == midi::mojom::PortState::OPENED)
- return midi::mojom::PortState::CONNECTED;
- return state;
- }
-
protected:
~MidiMessageFilter() override;
« no previous file with comments | « no previous file | content/renderer/media/midi_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698