| Index: device/sensors/public/cpp/orientation_data.h
|
| diff --git a/third_party/WebKit/public/platform/modules/device_orientation/WebDeviceOrientationData.h b/device/sensors/public/cpp/orientation_data.h
|
| similarity index 81%
|
| rename from third_party/WebKit/public/platform/modules/device_orientation/WebDeviceOrientationData.h
|
| rename to device/sensors/public/cpp/orientation_data.h
|
| index 8c1fd8662fcc44aad960f197ebe9ea9abfda2226..0332c6bf4c5fad3ba0683d53a6600eb30912ec88 100644
|
| --- a/third_party/WebKit/public/platform/modules/device_orientation/WebDeviceOrientationData.h
|
| +++ b/device/sensors/public/cpp/orientation_data.h
|
| @@ -28,19 +28,17 @@
|
| * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| */
|
|
|
| -#ifndef WebDeviceOrientationData_h
|
| -#define WebDeviceOrientationData_h
|
| +#ifndef OrientationData_h
|
| +#define OrientationData_h
|
|
|
| -#include "public/platform/WebCommon.h"
|
| -
|
| -namespace blink {
|
| +namespace device {
|
|
|
| #pragma pack(push, 1)
|
|
|
| -class WebDeviceOrientationData {
|
| +class OrientationData {
|
| public:
|
| - BLINK_PLATFORM_EXPORT WebDeviceOrientationData();
|
| - ~WebDeviceOrientationData() {}
|
| + OrientationData();
|
| + ~OrientationData() {}
|
|
|
| double alpha;
|
| double beta;
|
| @@ -55,12 +53,12 @@ class WebDeviceOrientationData {
|
| bool allAvailableSensorsAreActive : 1;
|
| };
|
|
|
| -static_assert(sizeof(WebDeviceOrientationData) ==
|
| +static_assert(sizeof(OrientationData) ==
|
| (3 * sizeof(double) + 1 * sizeof(char)),
|
| - "WebDeviceOrientationData has wrong size");
|
| + "OrientationData has wrong size");
|
|
|
| #pragma pack(pop)
|
|
|
| -} // namespace blink
|
| +} // namespace device
|
|
|
| -#endif // WebDeviceOrientationData_h
|
| +#endif // OrientationData_h
|
|
|