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

Unified Diff: media/midi/midi_message_util.h

Issue 2431393002: Web MIDI: move MIDI message validating logic into message_util.{cc|h} (Closed)
Patch Set: build fix 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 | « media/midi/midi_message_queue.cc ('k') | media/midi/midi_message_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/midi/midi_message_util.h
diff --git a/media/midi/midi_message_util.h b/media/midi/midi_message_util.h
deleted file mode 100644
index 768a2b7c9065a79efe3c093542eda88ca0a5d125..0000000000000000000000000000000000000000
--- a/media/midi/midi_message_util.h
+++ /dev/null
@@ -1,36 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef MEDIA_MIDI_MIDI_MESSAGE_UTIL_H_
-#define MEDIA_MIDI_MIDI_MESSAGE_UTIL_H_
-
-#include <stddef.h>
-#include <stdint.h>
-
-#include <deque>
-#include <vector>
-
-#include "media/midi/midi_export.h"
-
-namespace midi {
-
-// Returns the length of a MIDI message in bytes. Never returns 4 or greater.
-// Returns 0 if |status_byte| is:
-// - not a valid status byte, namely data byte.
-// - MIDI System Exclusive message.
-// - End of System Exclusive message.
-// - Reserved System Common Message (0xf4, 0xf5)
-MIDI_EXPORT size_t GetMidiMessageLength(uint8_t status_byte);
-
-const uint8_t kSysExByte = 0xf0;
-const uint8_t kEndOfSysExByte = 0xf7;
-
-const uint8_t kSysMessageBitMask = 0xf0;
-const uint8_t kSysMessageBitPattern = 0xf0;
-const uint8_t kSysRTMessageBitMask = 0xf8;
-const uint8_t kSysRTMessageBitPattern = 0xf8;
-
-} // namespace midi
-
-#endif // MEDIA_MIDI_MIDI_MESSAGE_UTIL_H_
« no previous file with comments | « media/midi/midi_message_queue.cc ('k') | media/midi/midi_message_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698