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

Side by Side Diff: Source/modules/webmidi/MIDIOutput.cpp

Issue 1043863002: Web MIDI: final IDL updates to conform the latest WD for shipping (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: TODO: ActiveDOMObject Created 5 years, 8 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.cpp ('k') | Source/modules/webmidi/MIDIOutput.idl » ('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 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 176
177 } // namespace 177 } // namespace
178 178
179 MIDIOutput* MIDIOutput::create(MIDIAccess* access, unsigned portIndex, const Str ing& id, const String& manufacturer, const String& name, const String& version, PortState state) 179 MIDIOutput* MIDIOutput::create(MIDIAccess* access, unsigned portIndex, const Str ing& id, const String& manufacturer, const String& name, const String& version, PortState state)
180 { 180 {
181 ASSERT(access); 181 ASSERT(access);
182 return new MIDIOutput(access, portIndex, id, manufacturer, name, version, st ate); 182 return new MIDIOutput(access, portIndex, id, manufacturer, name, version, st ate);
183 } 183 }
184 184
185 MIDIOutput::MIDIOutput(MIDIAccess* access, unsigned portIndex, const String& id, const String& manufacturer, const String& name, const String& version, PortStat e state) 185 MIDIOutput::MIDIOutput(MIDIAccess* access, unsigned portIndex, const String& id, const String& manufacturer, const String& name, const String& version, PortStat e state)
186 : MIDIPort(access, id, manufacturer, name, MIDIPortTypeOutput, version, stat e) 186 : MIDIPort(access, id, manufacturer, name, TypeOutput, version, state)
187 , m_portIndex(portIndex) 187 , m_portIndex(portIndex)
188 { 188 {
189 } 189 }
190 190
191 MIDIOutput::~MIDIOutput() 191 MIDIOutput::~MIDIOutput()
192 { 192 {
193 } 193 }
194 194
195 void MIDIOutput::send(DOMUint8Array* array, double timestamp, ExceptionState& ex ceptionState) 195 void MIDIOutput::send(DOMUint8Array* array, double timestamp, ExceptionState& ex ceptionState)
196 { 196 {
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 { 234 {
235 send(unsignedData, 0.0, exceptionState); 235 send(unsignedData, 0.0, exceptionState);
236 } 236 }
237 237
238 DEFINE_TRACE(MIDIOutput) 238 DEFINE_TRACE(MIDIOutput)
239 { 239 {
240 MIDIPort::trace(visitor); 240 MIDIPort::trace(visitor);
241 } 241 }
242 242
243 } // namespace blink 243 } // namespace blink
OLDNEW
« no previous file with comments | « Source/modules/webmidi/MIDIInput.cpp ('k') | Source/modules/webmidi/MIDIOutput.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698