Chromium Code Reviews| Index: content/browser/device_orientation/data_fetcher_shared_memory.h |
| diff --git a/content/browser/device_orientation/data_fetcher_shared_memory.h b/content/browser/device_orientation/data_fetcher_shared_memory.h |
| index cbc274a51d2bdc74767a79441a1b512ea6a87801..fd5a4bd83b6ed00a338315b7d4daeda9ce7d85c9 100644 |
| --- a/content/browser/device_orientation/data_fetcher_shared_memory.h |
| +++ b/content/browser/device_orientation/data_fetcher_shared_memory.h |
| @@ -14,6 +14,13 @@ |
| class SuddenMotionSensor; |
| #endif |
| +#if defined(OS_WIN) |
|
bulach
2013/09/02 13:29:34
nit: could commbine with line 15 with an #elif
timvolodine
2013/09/03 17:14:51
Done.
|
| +#include <SensorsApi.h> |
| +#include "base/win/scoped_comptr.h" |
| +#include "content/common/device_motion_hardware_buffer.h" |
| +#include "content/common/device_orientation/device_orientation_hardware_buffer.h" |
| +#endif |
| + |
| namespace content { |
| class CONTENT_EXPORT DataFetcherSharedMemory |
| @@ -37,6 +44,14 @@ class CONTENT_EXPORT DataFetcherSharedMemory |
| scoped_ptr<SuddenMotionSensor> sudden_motion_sensor_; |
| #endif |
| +#if defined(OS_WIN) |
| + class SensorEventSink; |
| + friend SensorEventSink; |
| + |
| + DeviceOrientationHardwareBuffer* orientation_buffer_; |
| + base::win::ScopedComPtr<ISensor> sensor_; |
| +#endif |
| + |
| DISALLOW_COPY_AND_ASSIGN(DataFetcherSharedMemory); |
| }; |