| 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 "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
| 10 #include "content/browser/device_sensors/data_fetcher_shared_memory_base.h" | 10 #include "content/browser/device_sensors/data_fetcher_shared_memory_base.h" |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 class SensorEventSinkLight; | 67 class SensorEventSinkLight; |
| 68 | 68 |
| 69 FetcherType GetType() const override; | 69 FetcherType GetType() const override; |
| 70 | 70 |
| 71 bool RegisterForSensor(REFSENSOR_TYPE_ID sensor_type, ISensor** sensor, | 71 bool RegisterForSensor(REFSENSOR_TYPE_ID sensor_type, ISensor** sensor, |
| 72 scoped_refptr<SensorEventSink> event_sink); | 72 scoped_refptr<SensorEventSink> event_sink); |
| 73 void DisableSensors(ConsumerType consumer_type); | 73 void DisableSensors(ConsumerType consumer_type); |
| 74 void SetBufferAvailableState(ConsumerType consumer_type, bool enabled); | 74 void SetBufferAvailableState(ConsumerType consumer_type, bool enabled); |
| 75 | 75 |
| 76 base::win::ScopedComPtr<ISensor> sensor_inclinometer_; | 76 base::win::ScopedComPtr<ISensor> sensor_inclinometer_; |
| 77 base::win::ScopedComPtr<ISensor> sensor_inclinometer_absolute_; |
| 77 base::win::ScopedComPtr<ISensor> sensor_accelerometer_; | 78 base::win::ScopedComPtr<ISensor> sensor_accelerometer_; |
| 78 base::win::ScopedComPtr<ISensor> sensor_gyrometer_; | 79 base::win::ScopedComPtr<ISensor> sensor_gyrometer_; |
| 79 base::win::ScopedComPtr<ISensor> sensor_light_; | 80 base::win::ScopedComPtr<ISensor> sensor_light_; |
| 80 #endif | 81 #endif |
| 81 | 82 |
| 82 DISALLOW_COPY_AND_ASSIGN(DataFetcherSharedMemory); | 83 DISALLOW_COPY_AND_ASSIGN(DataFetcherSharedMemory); |
| 83 }; | 84 }; |
| 84 | 85 |
| 85 } // namespace content | 86 } // namespace content |
| 86 | 87 |
| 87 #endif // CONTENT_BROWSER_DEVICE_SENSORS_DATA_FETCHER_SHARED_MEMORY_H_ | 88 #endif // CONTENT_BROWSER_DEVICE_SENSORS_DATA_FETCHER_SHARED_MEMORY_H_ |
| OLD | NEW |