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

Side by Side Diff: Source/modules/webaudio/AudioScheduledSourceNode.h

Issue 149803005: Remove isolated world parameters from event listener attributes (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 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 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 // Scheduling. 70 // Scheduling.
71 void start(ExceptionState& exceptionState) { start(0.0, exceptionState); } 71 void start(ExceptionState& exceptionState) { start(0.0, exceptionState); }
72 void start(double when, ExceptionState&); 72 void start(double when, ExceptionState&);
73 void stop(ExceptionState& exceptionState) { stop(0.0, exceptionState); } 73 void stop(ExceptionState& exceptionState) { stop(0.0, exceptionState); }
74 void stop(double when, ExceptionState&); 74 void stop(double when, ExceptionState&);
75 75
76 unsigned short playbackState() const { return static_cast<unsigned short>(m_ playbackState); } 76 unsigned short playbackState() const { return static_cast<unsigned short>(m_ playbackState); }
77 bool isPlayingOrScheduled() const { return m_playbackState == PLAYING_STATE || m_playbackState == SCHEDULED_STATE; } 77 bool isPlayingOrScheduled() const { return m_playbackState == PLAYING_STATE || m_playbackState == SCHEDULED_STATE; }
78 bool hasFinished() const { return m_playbackState == FINISHED_STATE; } 78 bool hasFinished() const { return m_playbackState == FINISHED_STATE; }
79 79
80 EventListener* onended(DOMWrapperWorld* isolatedWorld) { return getAttribute EventListener(EventTypeNames::ended, isolatedWorld); } 80 EventListener* onended() { return getAttributeEventListener(EventTypeNames:: ended); }
81 void setOnended(PassRefPtr<EventListener>, DOMWrapperWorld* isolatedWorld = 0); 81 void setOnended(PassRefPtr<EventListener>);
82 82
83 protected: 83 protected:
84 // Get frame information for the current time quantum. 84 // Get frame information for the current time quantum.
85 // We handle the transition into PLAYING_STATE and FINISHED_STATE here, 85 // We handle the transition into PLAYING_STATE and FINISHED_STATE here,
86 // zeroing out portions of the outputBus which are outside the range of star tFrame and endFrame. 86 // zeroing out portions of the outputBus which are outside the range of star tFrame and endFrame.
87 // 87 //
88 // Each frame time is relative to the context's currentSampleFrame(). 88 // Each frame time is relative to the context's currentSampleFrame().
89 // quantumFrameOffset : Offset frame in this time quantum to start render ing. 89 // quantumFrameOffset : Offset frame in this time quantum to start render ing.
90 // nonSilentFramesToProcess : Number of frames rendering non-silence (will b e <= quantumFrameSize). 90 // nonSilentFramesToProcess : Number of frames rendering non-silence (will b e <= quantumFrameSize).
91 void updateSchedulingInfo(size_t quantumFrameSize, 91 void updateSchedulingInfo(size_t quantumFrameSize,
(...skipping 17 matching lines...) Expand all
109 double m_endTime; // in seconds 109 double m_endTime; // in seconds
110 110
111 bool m_hasEndedListener; 111 bool m_hasEndedListener;
112 112
113 static const double UnknownTime; 113 static const double UnknownTime;
114 }; 114 };
115 115
116 } // namespace WebCore 116 } // namespace WebCore
117 117
118 #endif // AudioScheduledSourceNode_h 118 #endif // AudioScheduledSourceNode_h
OLDNEW
« no previous file with comments | « Source/core/events/EventTarget.cpp ('k') | Source/modules/webaudio/AudioScheduledSourceNode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698