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

Side by Side Diff: Source/modules/webmidi/MIDIMessageEvent.h

Issue 1227783004: Fix virtual/override/final usage in Source/modules/. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 5 years, 5 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/modules/webmidi/MIDIInput.h ('k') | Source/modules/webmidi/MIDIPort.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 } 52 }
53 53
54 static PassRefPtrWillBeRawPtr<MIDIMessageEvent> create(const AtomicString& t ype, const MIDIMessageEventInit& initializer) 54 static PassRefPtrWillBeRawPtr<MIDIMessageEvent> create(const AtomicString& t ype, const MIDIMessageEventInit& initializer)
55 { 55 {
56 return adoptRefWillBeNoop(new MIDIMessageEvent(type, initializer)); 56 return adoptRefWillBeNoop(new MIDIMessageEvent(type, initializer));
57 } 57 }
58 58
59 double receivedTime() { return m_receivedTime; } 59 double receivedTime() { return m_receivedTime; }
60 PassRefPtr<DOMUint8Array> data() { return m_data; } 60 PassRefPtr<DOMUint8Array> data() { return m_data; }
61 61
62 virtual const AtomicString& interfaceName() const override { return EventNam es::MIDIMessageEvent; } 62 const AtomicString& interfaceName() const override { return EventNames::MIDI MessageEvent; }
63 63
64 DEFINE_INLINE_VIRTUAL_TRACE() { Event::trace(visitor); } 64 DEFINE_INLINE_VIRTUAL_TRACE() { Event::trace(visitor); }
65 65
66 private: 66 private:
67 MIDIMessageEvent() 67 MIDIMessageEvent()
68 : m_receivedTime(0) { } 68 : m_receivedTime(0) { }
69 69
70 MIDIMessageEvent(double receivedTime, PassRefPtr<DOMUint8Array> data) 70 MIDIMessageEvent(double receivedTime, PassRefPtr<DOMUint8Array> data)
71 : Event(EventTypeNames::midimessage, true, false) 71 : Event(EventTypeNames::midimessage, true, false)
72 , m_receivedTime(receivedTime) 72 , m_receivedTime(receivedTime)
73 , m_data(data) { } 73 , m_data(data) { }
74 74
75 MIDIMessageEvent(const AtomicString& type, const MIDIMessageEventInit& initi alizer); 75 MIDIMessageEvent(const AtomicString& type, const MIDIMessageEventInit& initi alizer);
76 76
77 double m_receivedTime; 77 double m_receivedTime;
78 RefPtr<DOMUint8Array> m_data; 78 RefPtr<DOMUint8Array> m_data;
79 }; 79 };
80 80
81 } // namespace blink 81 } // namespace blink
82 82
83 #endif // MIDIMessageEvent_h 83 #endif // MIDIMessageEvent_h
OLDNEW
« no previous file with comments | « Source/modules/webmidi/MIDIInput.h ('k') | Source/modules/webmidi/MIDIPort.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698