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

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

Issue 26890003: Remove ThreadLocalEventNames (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix build Created 7 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 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 } 59 }
60 60
61 static PassRefPtr<MIDIMessageEvent> create(const AtomicString& type, const M IDIMessageEventInit& initializer) 61 static PassRefPtr<MIDIMessageEvent> create(const AtomicString& type, const M IDIMessageEventInit& initializer)
62 { 62 {
63 return adoptRef(new MIDIMessageEvent(type, initializer)); 63 return adoptRef(new MIDIMessageEvent(type, initializer));
64 } 64 }
65 65
66 double receivedTime() { return m_receivedTime; } 66 double receivedTime() { return m_receivedTime; }
67 PassRefPtr<Uint8Array> data() { return m_data; } 67 PassRefPtr<Uint8Array> data() { return m_data; }
68 68
69 virtual const AtomicString& interfaceName() const OVERRIDE { return eventNam es().interfaceForMIDIMessageEvent; } 69 virtual const AtomicString& interfaceName() const OVERRIDE { return EventNam es::MIDIMessageEvent; }
70 70
71 private: 71 private:
72 MIDIMessageEvent() 72 MIDIMessageEvent()
73 : m_receivedTime(0) 73 : m_receivedTime(0)
74 { 74 {
75 ScriptWrappable::init(this); 75 ScriptWrappable::init(this);
76 } 76 }
77 77
78 MIDIMessageEvent(double receivedTime, PassRefPtr<Uint8Array> data) 78 MIDIMessageEvent(double receivedTime, PassRefPtr<Uint8Array> data)
79 : Event(EventTypeNames::midimessage, true, false) 79 : Event(EventTypeNames::midimessage, true, false)
(...skipping 11 matching lines...) Expand all
91 ScriptWrappable::init(this); 91 ScriptWrappable::init(this);
92 } 92 }
93 93
94 double m_receivedTime; 94 double m_receivedTime;
95 RefPtr<Uint8Array> m_data; 95 RefPtr<Uint8Array> m_data;
96 }; 96 };
97 97
98 } // namespace WebCore 98 } // namespace WebCore
99 99
100 #endif // MIDIMessageEvent_h 100 #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