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

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

Issue 478243002: bindings: Adds virtual ScriptWrappable::wrap method. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Synced. Created 6 years, 3 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/AudioNode.h ('k') | Source/modules/webaudio/AudioProcessingEvent.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) 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 * 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 25 matching lines...) Expand all
36 #include <sys/types.h> 36 #include <sys/types.h>
37 #include "wtf/Float32Array.h" 37 #include "wtf/Float32Array.h"
38 #include "wtf/PassRefPtr.h" 38 #include "wtf/PassRefPtr.h"
39 #include "wtf/text/WTFString.h" 39 #include "wtf/text/WTFString.h"
40 40
41 namespace blink { 41 namespace blink {
42 42
43 class AudioNodeOutput; 43 class AudioNodeOutput;
44 44
45 class AudioParam FINAL : public AudioSummingJunction, public ScriptWrappable { 45 class AudioParam FINAL : public AudioSummingJunction, public ScriptWrappable {
46 DEFINE_WRAPPERTYPEINFO();
46 public: 47 public:
47 static const double DefaultSmoothingConstant; 48 static const double DefaultSmoothingConstant;
48 static const double SnapThreshold; 49 static const double SnapThreshold;
49 50
50 static AudioParam* create(AudioContext* context, double defaultValue) 51 static AudioParam* create(AudioContext* context, double defaultValue)
51 { 52 {
52 return new AudioParam(context, defaultValue); 53 return new AudioParam(context, defaultValue);
53 } 54 }
54 55
55 // AudioSummingJunction 56 // AudioSummingJunction
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 115
115 // Smoothing (de-zippering) 116 // Smoothing (de-zippering)
116 double m_smoothedValue; 117 double m_smoothedValue;
117 118
118 AudioParamTimeline m_timeline; 119 AudioParamTimeline m_timeline;
119 }; 120 };
120 121
121 } // namespace blink 122 } // namespace blink
122 123
123 #endif // AudioParam_h 124 #endif // AudioParam_h
OLDNEW
« no previous file with comments | « Source/modules/webaudio/AudioNode.h ('k') | Source/modules/webaudio/AudioProcessingEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698