| 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 CONTENT_BROWSER_DEVICE_SENSORS_DATA_FETCHER_SHARED_MEMORY_H_ | 5 #ifndef CONTENT_BROWSER_DEVICE_SENSORS_DATA_FETCHER_SHARED_MEMORY_H_ |
| 6 #define CONTENT_BROWSER_DEVICE_SENSORS_DATA_FETCHER_SHARED_MEMORY_H_ | 6 #define CONTENT_BROWSER_DEVICE_SENSORS_DATA_FETCHER_SHARED_MEMORY_H_ |
| 7 | 7 |
| 8 #include "content/browser/device_sensors/data_fetcher_shared_memory_base.h" | 8 #include "content/browser/device_sensors/data_fetcher_shared_memory_base.h" |
| 9 | 9 |
| 10 #if !defined(OS_ANDROID) | 10 #if !defined(OS_ANDROID) |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 #elif defined(OS_MACOSX) | 54 #elif defined(OS_MACOSX) |
| 55 void Fetch(unsigned consumer_bitmask) override; | 55 void Fetch(unsigned consumer_bitmask) override; |
| 56 FetcherType GetType() const override; | 56 FetcherType GetType() const override; |
| 57 | 57 |
| 58 scoped_ptr<AmbientLightSensor> ambient_light_sensor_; | 58 scoped_ptr<AmbientLightSensor> ambient_light_sensor_; |
| 59 scoped_ptr<SuddenMotionSensor> sudden_motion_sensor_; | 59 scoped_ptr<SuddenMotionSensor> sudden_motion_sensor_; |
| 60 #elif defined(OS_WIN) | 60 #elif defined(OS_WIN) |
| 61 class SensorEventSink; | 61 class SensorEventSink; |
| 62 class SensorEventSinkMotion; | 62 class SensorEventSinkMotion; |
| 63 class SensorEventSinkOrientation; | 63 class SensorEventSinkOrientation; |
| 64 class SensorEventSinkLight; |
| 64 | 65 |
| 65 virtual FetcherType GetType() const override; | 66 virtual FetcherType GetType() const override; |
| 66 | 67 |
| 67 bool RegisterForSensor(REFSENSOR_TYPE_ID sensor_type, ISensor** sensor, | 68 bool RegisterForSensor(REFSENSOR_TYPE_ID sensor_type, ISensor** sensor, |
| 68 scoped_refptr<SensorEventSink> event_sink); | 69 scoped_refptr<SensorEventSink> event_sink); |
| 69 void DisableSensors(ConsumerType consumer_type); | 70 void DisableSensors(ConsumerType consumer_type); |
| 70 void SetBufferAvailableState(ConsumerType consumer_type, bool enabled); | 71 void SetBufferAvailableState(ConsumerType consumer_type, bool enabled); |
| 71 | 72 |
| 72 base::win::ScopedComPtr<ISensor> sensor_inclinometer_; | 73 base::win::ScopedComPtr<ISensor> sensor_inclinometer_; |
| 73 base::win::ScopedComPtr<ISensor> sensor_accelerometer_; | 74 base::win::ScopedComPtr<ISensor> sensor_accelerometer_; |
| 74 base::win::ScopedComPtr<ISensor> sensor_gyrometer_; | 75 base::win::ScopedComPtr<ISensor> sensor_gyrometer_; |
| 76 base::win::ScopedComPtr<ISensor> sensor_light_; |
| 75 #endif | 77 #endif |
| 76 | 78 |
| 77 DISALLOW_COPY_AND_ASSIGN(DataFetcherSharedMemory); | 79 DISALLOW_COPY_AND_ASSIGN(DataFetcherSharedMemory); |
| 78 }; | 80 }; |
| 79 | 81 |
| 80 } // namespace content | 82 } // namespace content |
| 81 | 83 |
| 82 #endif // CONTENT_BROWSER_DEVICE_SENSORS_DATA_FETCHER_SHARED_MEMORY_H_ | 84 #endif // CONTENT_BROWSER_DEVICE_SENSORS_DATA_FETCHER_SHARED_MEMORY_H_ |
| OLD | NEW |