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

Unified Diff: Source/core/platform/chromium/support/WebDeviceMotionData.cpp

Issue 14460010: Implement the Blink part of the Device Motion API. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: moved tests to be treated in a separate CL 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/core/platform/chromium/support/WebDeviceMotionData.cpp
diff --git a/Source/core/loader/UniqueIdentifier.h b/Source/core/platform/chromium/support/WebDeviceMotionData.cpp
similarity index 89%
copy from Source/core/loader/UniqueIdentifier.h
copy to Source/core/platform/chromium/support/WebDeviceMotionData.cpp
index c1dc5a2b000338f48b787c9292d80ef1671f5600..17e149e81758c823c230b334e9575df9781b2d28 100644
--- a/Source/core/loader/UniqueIdentifier.h
+++ b/Source/core/platform/chromium/support/WebDeviceMotionData.cpp
@@ -28,14 +28,14 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef UniqueIdentifier_h
-#define UniqueIdentifier_h
+#include "config.h"
+#include <public/WebDeviceMotionData.h>
darin (slow to review) 2013/05/23 19:08:09 ditto: you probably didn't intend for this to be a
timvolodine 2013/05/23 19:30:31 using similarity=80, will try higher values, but t
-namespace WebCore {
-
-unsigned long createUniqueIdentifier();
+namespace WebKit {
+WebDeviceMotionData::WebDeviceMotionData()
+{
+ memset(this, 0, sizeof(*this));
}
-#endif // UniqueIdentifier_h
-
+} // namespace WebKit

Powered by Google App Engine
This is Rietveld 408576698