Chromium Code Reviews| 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..58df02dbdf4fc275fdb4b7a95ed82481d9a539d2 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(WebDeviceMotionData&) = 0; |
|
abarth-chromium
2013/05/07 16:43:47
Why not a const reference?
timvolodine
2013/05/07 19:02:30
Done.
|
| }; |
| } // namespace WebKit |
| -#endif |
| +#endif // WebDeviceMotionListener_h |