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

Unified Diff: third_party/WebKit/Source/modules/webmidi/MIDIMessageEvent.cpp

Issue 2489033005: Web MIDI: deprecate MIDIMessageEvent.receivedTime (Closed)
Patch Set: [rebase] Created 4 years, 1 month 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/MIDIMessageEvent.cpp
diff --git a/third_party/WebKit/Source/modules/webmidi/MIDIMessageEvent.cpp b/third_party/WebKit/Source/modules/webmidi/MIDIMessageEvent.cpp
index 96708617c71d9bd603493e9ea95a83454aab0048..85173a45bc1a4f20728645bc03c49d56467a145a 100644
--- a/third_party/WebKit/Source/modules/webmidi/MIDIMessageEvent.cpp
+++ b/third_party/WebKit/Source/modules/webmidi/MIDIMessageEvent.cpp
@@ -5,7 +5,6 @@
#include "modules/webmidi/MIDIMessageEvent.h"
#include "core/dom/ExecutionContext.h"
-#include "core/frame/Deprecation.h"
#include "modules/webmidi/MIDIMessageEventInit.h"
namespace blink {
@@ -13,12 +12,7 @@ namespace blink {
MIDIMessageEvent::MIDIMessageEvent(ExecutionContext* context,
const AtomicString& type,
const MIDIMessageEventInit& initializer)
- : Event(type, initializer), m_receivedTime(0.0) {
- if (initializer.hasReceivedTime()) {
- Deprecation::countDeprecation(context,
- UseCounter::MIDIMessageEventReceivedTime);
- m_receivedTime = initializer.receivedTime();
- }
+ : Event(type, initializer) {
if (initializer.hasData())
m_data = initializer.data();
}

Powered by Google App Engine
This is Rietveld 408576698