Index: Source/Platform/chromium/public/WebDeviceMotionListener.h |
diff --git a/Source/WebKit/chromium/public/WebMediaSource.h b/Source/Platform/chromium/public/WebDeviceMotionListener.h |
similarity index 81% |
copy from Source/WebKit/chromium/public/WebMediaSource.h |
copy to Source/Platform/chromium/public/WebDeviceMotionListener.h |
index ae7864b3090d45d155dce3a55872d6f6a27830c4..ccc9318ad0328d237735df05ed07b9d34bc04b6e 100644 |
--- a/Source/WebKit/chromium/public/WebMediaSource.h |
+++ b/Source/Platform/chromium/public/WebDeviceMotionListener.h |
@@ -28,22 +28,20 @@ |
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
-#ifndef WebMediaSource_h |
-#define WebMediaSource_h |
- |
-#include "../../../Platform/chromium/public/WebURL.h" |
-#include "WebTimeRange.h" |
+#ifndef WebDeviceMotionListener_h |
+#define WebDeviceMotionListener_h |
namespace WebKit { |
-class WebMediaSourceClient; |
+class WebDeviceMotionData; |
-class WebMediaSource { |
+// Abstract interface for the Device Motion API listener. |
+class WebDeviceMotionListener { |
public: |
- virtual ~WebMediaSource() { }; |
- virtual void open(WebMediaSourceClient*) = 0; |
+ // This method is called every time new motion data is available. |
+ virtual void didChangeDeviceMotion(const WebDeviceMotionData&) = 0; |
}; |
} // namespace WebKit |
-#endif |
+#endif // WebDeviceMotionListener_h |