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

Unified Diff: third_party/WebKit/Source/modules/webaudio/AudioListener.idl

Issue 1820403002: Implement Automations for PannerNode and AutioListener (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update test because CL for min/maxValue AudioParam landed Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/webaudio/AudioListener.idl
diff --git a/third_party/WebKit/Source/modules/webaudio/AudioListener.idl b/third_party/WebKit/Source/modules/webaudio/AudioListener.idl
index ad270177543b3c7ab1845e0578826f71b46cb596..b2645a00a04270baa98b4b24dbd92f2adf351f0b 100644
--- a/third_party/WebKit/Source/modules/webaudio/AudioListener.idl
+++ b/third_party/WebKit/Source/modules/webaudio/AudioListener.idl
@@ -31,7 +31,22 @@
[DeprecateAs=AudioListenerDopplerFactor] attribute float dopplerFactor; // same as OpenAL (default 1.0)
[DeprecateAs=AudioListenerSpeedOfSound] attribute float speedOfSound; // in meters / second (default 343.3)
- void setPosition(float x, float y, float z);
- void setOrientation(float x, float y, float z, float xUp, float yUp, float zUp);
+ [MeasureAs=AudioListenerSetPosition] void setPosition(float x, float y, float z);
+ [MeasureAs=AudioListenerSetOrientation] void setOrientation(float x, float y, float z, float xUp, float yUp, float zUp);
[DeprecateAs=AudioListenerSetVelocity] void setVelocity(float x, float y, float z);
+
+ // Location of the listener
+ readonly attribute AudioParam positionX;
+ readonly attribute AudioParam positionY;
+ readonly attribute AudioParam positionZ;
+
+ // Forward direction vector of the listener
+ readonly attribute AudioParam forwardX;
+ readonly attribute AudioParam forwardY;
+ readonly attribute AudioParam forwardZ;
+
+ // Up direction vector for the listener
+ readonly attribute AudioParam upX;
+ readonly attribute AudioParam upY;
+ readonly attribute AudioParam upZ;
};
« no previous file with comments | « third_party/WebKit/Source/modules/webaudio/AudioListener.cpp ('k') | third_party/WebKit/Source/modules/webaudio/AudioParam.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698