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

Unified Diff: Source/Platform/chromium/public/WebDeviceMotionListener.h

Issue 14460010: Implement the Blink part of the Device Motion API. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: added MockWebDeviceMotionHandler and methods to set in in the platform Created 7 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: Source/Platform/chromium/public/WebDeviceMotionListener.h
diff --git a/Source/WebKit/chromium/public/WebMediaSource.h b/Source/Platform/chromium/public/WebDeviceMotionListener.h
similarity index 83%
copy from Source/WebKit/chromium/public/WebMediaSource.h
copy to Source/Platform/chromium/public/WebDeviceMotionListener.h
index ae7864b3090d45d155dce3a55872d6f6a27830c4..b8da1500d6afa8f7c97bb38454effb119de1a4a2 100644
--- a/Source/WebKit/chromium/public/WebMediaSource.h
+++ b/Source/Platform/chromium/public/WebDeviceMotionListener.h
@@ -28,22 +28,19 @@
* 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 {
+class WebDeviceMotionListener {
public:
- virtual ~WebMediaSource() { };
- virtual void open(WebMediaSourceClient*) = 0;
+ // This method is called every time new device motion data is available.
+ virtual void didChangeDeviceMotion(const WebDeviceMotionData&) = 0;
};
} // namespace WebKit
-#endif
+#endif // WebDeviceMotionListener_h

Powered by Google App Engine
This is Rietveld 408576698