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

Side by Side Diff: Source/modules/webmidi/MIDIConnectionEvent.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/MIDIAccess.h ('k') | Source/modules/webmidi/MIDIInput.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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 return adoptRef(new MIDIConnectionEvent(type, port)); 57 return adoptRef(new MIDIConnectionEvent(type, port));
58 } 58 }
59 59
60 static PassRefPtr<MIDIConnectionEvent> create(const AtomicString& type, cons t MIDIConnectionEventInit& initializer) 60 static PassRefPtr<MIDIConnectionEvent> create(const AtomicString& type, cons t MIDIConnectionEventInit& initializer)
61 { 61 {
62 return adoptRef(new MIDIConnectionEvent(type, initializer)); 62 return adoptRef(new MIDIConnectionEvent(type, initializer));
63 } 63 }
64 64
65 RefPtr<MIDIPort> port() { return m_port; } 65 RefPtr<MIDIPort> port() { return m_port; }
66 66
67 virtual const AtomicString& interfaceName() const OVERRIDE { return eventNam es().interfaceForMIDIConnectionEvent; } 67 virtual const AtomicString& interfaceName() const OVERRIDE { return EventNam es::MIDIConnectionEvent; }
68 68
69 private: 69 private:
70 MIDIConnectionEvent() 70 MIDIConnectionEvent()
71 { 71 {
72 ScriptWrappable::init(this); 72 ScriptWrappable::init(this);
73 } 73 }
74 74
75 MIDIConnectionEvent(const AtomicString& type, PassRefPtr<MIDIPort> port) 75 MIDIConnectionEvent(const AtomicString& type, PassRefPtr<MIDIPort> port)
76 : Event(type, false, false) 76 : Event(type, false, false)
77 , m_port(port) 77 , m_port(port)
78 { 78 {
79 ScriptWrappable::init(this); 79 ScriptWrappable::init(this);
80 } 80 }
81 81
82 MIDIConnectionEvent(const AtomicString& type, const MIDIConnectionEventInit& initializer) 82 MIDIConnectionEvent(const AtomicString& type, const MIDIConnectionEventInit& initializer)
83 : Event(type, initializer) 83 : Event(type, initializer)
84 , m_port(initializer.port) 84 , m_port(initializer.port)
85 { 85 {
86 ScriptWrappable::init(this); 86 ScriptWrappable::init(this);
87 } 87 }
88 88
89 RefPtr<MIDIPort> m_port; 89 RefPtr<MIDIPort> m_port;
90 }; 90 };
91 91
92 } // namespace WebCore 92 } // namespace WebCore
93 93
94 #endif // MIDIConnectionEvent_h 94 #endif // MIDIConnectionEvent_h
OLDNEW
« no previous file with comments | « Source/modules/webmidi/MIDIAccess.h ('k') | Source/modules/webmidi/MIDIInput.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698