| OLD | NEW |
| 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 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 219 double default_value, | 219 double default_value, |
| 220 float min_value, | 220 float min_value, |
| 221 float max_value); | 221 float max_value); |
| 222 | 222 |
| 223 DECLARE_TRACE(); | 223 DECLARE_TRACE(); |
| 224 // |handler| always returns a valid object. | 224 // |handler| always returns a valid object. |
| 225 AudioParamHandler& Handler() const { return *handler_; } | 225 AudioParamHandler& Handler() const { return *handler_; } |
| 226 // |context| always returns a valid object. | 226 // |context| always returns a valid object. |
| 227 BaseAudioContext* Context() const { return context_; } | 227 BaseAudioContext* Context() const { return context_; } |
| 228 | 228 |
| 229 RefPtr<AudioParamHandler> HandlerExperimental() { return handler_; } |
| 230 |
| 229 AudioParamType GetParamType() const { return Handler().GetParamType(); } | 231 AudioParamType GetParamType() const { return Handler().GetParamType(); } |
| 230 void SetParamType(AudioParamType); | 232 void SetParamType(AudioParamType); |
| 231 String GetParamName() const; | 233 String GetParamName() const; |
| 232 | 234 |
| 233 float value() const; | 235 float value() const; |
| 234 void setValue(float); | 236 void setValue(float); |
| 235 float defaultValue() const; | 237 float defaultValue() const; |
| 236 | 238 |
| 237 float minValue() const; | 239 float minValue() const; |
| 238 float maxValue() const; | 240 float maxValue() const; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 264 | 266 |
| 265 void WarnIfOutsideRange(const String& param_methd, float value); | 267 void WarnIfOutsideRange(const String& param_methd, float value); |
| 266 | 268 |
| 267 RefPtr<AudioParamHandler> handler_; | 269 RefPtr<AudioParamHandler> handler_; |
| 268 Member<BaseAudioContext> context_; | 270 Member<BaseAudioContext> context_; |
| 269 }; | 271 }; |
| 270 | 272 |
| 271 } // namespace blink | 273 } // namespace blink |
| 272 | 274 |
| 273 #endif // AudioParam_h | 275 #endif // AudioParam_h |
| OLD | NEW |