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

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

Issue 19724003: Revert "Transition modules/** to use ExceptionState" (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 5 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/webaudio/PannerNode.cpp ('k') | Source/modules/webaudio/WaveShaperNode.cpp » ('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) 2011, Google Inc. All rights reserved. 2 * Copyright (C) 2011, 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 13 matching lines...) Expand all
24 24
25 #ifndef WaveShaperNode_h 25 #ifndef WaveShaperNode_h
26 #define WaveShaperNode_h 26 #define WaveShaperNode_h
27 27
28 #include "modules/webaudio/AudioBasicProcessorNode.h" 28 #include "modules/webaudio/AudioBasicProcessorNode.h"
29 #include "modules/webaudio/BiquadProcessor.h" 29 #include "modules/webaudio/BiquadProcessor.h"
30 #include "modules/webaudio/WaveShaperProcessor.h" 30 #include "modules/webaudio/WaveShaperProcessor.h"
31 #include "wtf/Forward.h" 31 #include "wtf/Forward.h"
32 32
33 namespace WebCore { 33 namespace WebCore {
34 34
35 class ExceptionState;
36
37 class WaveShaperNode : public AudioBasicProcessorNode { 35 class WaveShaperNode : public AudioBasicProcessorNode {
38 public: 36 public:
39 static PassRefPtr<WaveShaperNode> create(AudioContext* context) 37 static PassRefPtr<WaveShaperNode> create(AudioContext* context)
40 { 38 {
41 return adoptRef(new WaveShaperNode(context)); 39 return adoptRef(new WaveShaperNode(context));
42 } 40 }
43 41
44 // setCurve() is called on the main thread. 42 // setCurve() is called on the main thread.
45 void setCurve(Float32Array*); 43 void setCurve(Float32Array*);
46 Float32Array* curve(); 44 Float32Array* curve();
47 45
48 void setOversample(const String& , ExceptionState&); 46 void setOversample(const String& , ExceptionCode&);
49 String oversample() const; 47 String oversample() const;
50 48
51 double latency() const { return latencyTime(); } 49 double latency() const { return latencyTime(); }
52 50
53 private: 51 private:
54 explicit WaveShaperNode(AudioContext*); 52 explicit WaveShaperNode(AudioContext*);
55 53
56 WaveShaperProcessor* waveShaperProcessor() { return static_cast<WaveShaperPr ocessor*>(processor()); } 54 WaveShaperProcessor* waveShaperProcessor() { return static_cast<WaveShaperPr ocessor*>(processor()); }
57 }; 55 };
58 56
59 } // namespace WebCore 57 } // namespace WebCore
60 58
61 #endif // WaveShaperNode_h 59 #endif // WaveShaperNode_h
OLDNEW
« no previous file with comments | « Source/modules/webaudio/PannerNode.cpp ('k') | Source/modules/webaudio/WaveShaperNode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698