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 9d378eb25a09285135e2e6cd89056c9ad2883477..cbc274a51d2bdc74767a79441a1b512ea6a87801 100644 |
| --- a/content/browser/device_orientation/data_fetcher_shared_memory.h |
| +++ b/content/browser/device_orientation/data_fetcher_shared_memory.h |
| @@ -7,6 +7,13 @@ |
| #include "content/browser/device_orientation/data_fetcher_shared_memory_base.h" |
| +#if defined(OS_MACOSX) |
| +#include "content/common/device_motion_hardware_buffer.h" |
| +#include "content/common/device_orientation/device_orientation_hardware_buffer.h" |
| + |
| +class SuddenMotionSensor; |
|
bulach
2013/08/23 16:03:34
scoped_ptr requires the #include to be in rather t
timvolodine
2013/08/23 16:34:55
not true. scoped_ptr appears to work ok with fwd d
bulach
2013/08/23 16:37:36
ops, sorry, you're right :)
it needs the #include
|
| +#endif |
| + |
| namespace content { |
| class CONTENT_EXPORT DataFetcherSharedMemory |
| @@ -21,6 +28,15 @@ class CONTENT_EXPORT DataFetcherSharedMemory |
| virtual bool Start(ConsumerType consumer_type) OVERRIDE; |
| virtual bool Stop(ConsumerType consumer_type) OVERRIDE; |
| +#if defined(OS_MACOSX) |
| + virtual void Fetch(unsigned consumer_bitmask) OVERRIDE; |
| + virtual bool IsPolling() const OVERRIDE; |
| + |
| + DeviceMotionHardwareBuffer* motion_buffer_; |
| + DeviceOrientationHardwareBuffer* orientation_buffer_; |
| + scoped_ptr<SuddenMotionSensor> sudden_motion_sensor_; |
| +#endif |
| + |
| DISALLOW_COPY_AND_ASSIGN(DataFetcherSharedMemory); |
| }; |