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

Unified Diff: device/sensors/public/cpp/motion_data.cc

Issue 2415083002: Move Device Sensors client files from Blink to //device/sensors client lib (Closed)
Patch Set: Revert licenses change for similarity Created 4 years, 2 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: device/sensors/public/cpp/motion_data.cc
diff --git a/third_party/WebKit/Source/platform/exported/WebDeviceOrientationData.cpp b/device/sensors/public/cpp/motion_data.cc
similarity index 91%
rename from third_party/WebKit/Source/platform/exported/WebDeviceOrientationData.cpp
rename to device/sensors/public/cpp/motion_data.cc
index 1feb0ff5f8f8b577289103a3073ca1e2f85ee7f3..03f66ddadbe92bb2a676cf2a4a83bd8f286632b4 100644
--- a/third_party/WebKit/Source/platform/exported/WebDeviceOrientationData.cpp
+++ b/device/sensors/public/cpp/motion_data.cc
@@ -28,13 +28,13 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#include "public/platform/modules/device_orientation/WebDeviceOrientationData.h"
+#include "device/sensors/public/cpp/motion_data.h"
#include <string.h>
-namespace blink {
+namespace device {
-WebDeviceOrientationData::WebDeviceOrientationData() {
+MotionData::MotionData() {
// Make sure to zero out the memory so that there are no uninitialized bits.
// This object is used in the shared memory buffer and is memory copied by
// two processes. Valgrind will complain if we copy around memory that is
@@ -42,4 +42,6 @@ WebDeviceOrientationData::WebDeviceOrientationData() {
memset(this, 0, sizeof(*this));
}
-} // namespace blink
+MotionData::MotionData(const MotionData& other) = default;
+
+} // namespace device

Powered by Google App Engine
This is Rietveld 408576698