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

Side by Side Diff: Source/modules/webaudio/ScriptProcessorNode.cpp

Issue 14028011: Made AudioNode an EventTarget (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Made AudioNode an EventTarget Created 7 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010, Google Inc. All rights reserved. 2 * Copyright (C) 2010, 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 { 256 {
257 m_bufferReadWriteIndex = 0; 257 m_bufferReadWriteIndex = 0;
258 m_doubleBufferIndex = 0; 258 m_doubleBufferIndex = 0;
259 259
260 for (unsigned i = 0; i < 2; ++i) { 260 for (unsigned i = 0; i < 2; ++i) {
261 m_inputBuffers[i]->zero(); 261 m_inputBuffers[i]->zero();
262 m_outputBuffers[i]->zero(); 262 m_outputBuffers[i]->zero();
263 } 263 }
264 } 264 }
265 265
266 const AtomicString& ScriptProcessorNode::interfaceName() const
267 {
268 return eventNames().interfaceForScriptProcessorNode;
269 }
270
271 ScriptExecutionContext* ScriptProcessorNode::scriptExecutionContext() const
272 {
273 return const_cast<ScriptProcessorNode*>(this)->context()->scriptExecutionCon text();
274 }
275
276 double ScriptProcessorNode::tailTime() const 266 double ScriptProcessorNode::tailTime() const
277 { 267 {
278 return std::numeric_limits<double>::infinity(); 268 return std::numeric_limits<double>::infinity();
279 } 269 }
280 270
281 double ScriptProcessorNode::latencyTime() const 271 double ScriptProcessorNode::latencyTime() const
282 { 272 {
283 return std::numeric_limits<double>::infinity(); 273 return std::numeric_limits<double>::infinity();
284 } 274 }
285 275
286 } // namespace WebCore 276 } // namespace WebCore
287 277
288 #endif // ENABLE(WEB_AUDIO) 278 #endif // ENABLE(WEB_AUDIO)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698