| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef UI_ACCEROMETER_ACCELEROMETER_TYPES_H_ | 5 #ifndef UI_ACCELEROMETER_ACCELEROMETER_TYPES_H_ |
| 6 #define UI_ACCEROMETER_ACCELEROMETER_TYPES_H_ | 6 #define UI_ACCELEROMETER_ACCELEROMETER_TYPES_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "ui/accelerometer/ui_accelerometer_export.h" | 9 #include "ui/accelerometer/ui_accelerometer_export.h" |
| 10 #include "ui/gfx/geometry/vector3d_f.h" | 10 #include "ui/gfx/geometry/vector3d_f.h" |
| 11 | 11 |
| 12 namespace ui { | 12 namespace ui { |
| 13 | 13 |
| 14 enum AccelerometerSource { | 14 enum AccelerometerSource { |
| 15 // Accelerometer is located in the device's screen. In the screen's natural | 15 // Accelerometer is located in the device's screen. In the screen's natural |
| 16 // orientation, positive X points to the right, consistent with the pixel | 16 // orientation, positive X points to the right, consistent with the pixel |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 data_[source].reading.set_y(y); | 64 data_[source].reading.set_y(y); |
| 65 data_[source].reading.set_z(z); | 65 data_[source].reading.set_z(z); |
| 66 } | 66 } |
| 67 | 67 |
| 68 protected: | 68 protected: |
| 69 AccelerometerReading data_[ACCELEROMETER_SOURCE_COUNT]; | 69 AccelerometerReading data_[ACCELEROMETER_SOURCE_COUNT]; |
| 70 | 70 |
| 71 DISALLOW_COPY_AND_ASSIGN(AccelerometerUpdate); | 71 DISALLOW_COPY_AND_ASSIGN(AccelerometerUpdate); |
| 72 }; | 72 }; |
| 73 | 73 |
| 74 } // namespace chromeos | 74 } // namespace ui |
| 75 | 75 |
| 76 #endif // UI_ACCEROMETER_ACCELEROMETER_TYPES_H_ | 76 #endif // UI_ACCELEROMETER_ACCELEROMETER_TYPES_H_ |
| OLD | NEW |