Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(645)

Unified Diff: content/browser/device_sensors/data_fetcher_shared_memory.h

Issue 856123002: Device Orientation API on Chrome OS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update to reflect chromeos accelerometer changes Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/BUILD.gn ('k') | content/browser/device_sensors/data_fetcher_shared_memory_chromeos.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/device_sensors/data_fetcher_shared_memory.h
diff --git a/content/browser/device_sensors/data_fetcher_shared_memory.h b/content/browser/device_sensors/data_fetcher_shared_memory.h
index a5d1f824ce9cf6534609ec63e29d9dfb1ecc4ccb..a0d9828c2a5b81858b4f3aa20481d6dc001ac2be 100644
--- a/content/browser/device_sensors/data_fetcher_shared_memory.h
+++ b/content/browser/device_sensors/data_fetcher_shared_memory.h
@@ -22,7 +22,9 @@ class SuddenMotionSensor;
namespace content {
-#if defined(OS_MACOSX)
+#if defined(OS_CHROMEOS)
+class SensorManagerChromeOS;
+#elif defined(OS_MACOSX)
class AmbientLightSensor;
#endif
@@ -42,7 +44,10 @@ class CONTENT_EXPORT DataFetcherSharedMemory
DeviceOrientationHardwareBuffer* orientation_buffer_;
DeviceLightHardwareBuffer* light_buffer_;
#endif
-#if defined(OS_MACOSX)
+
+#if defined(OS_CHROMEOS)
+ scoped_ptr<SensorManagerChromeOS> sensor_manager_;
+#elif defined(OS_MACOSX)
void Fetch(unsigned consumer_bitmask) override;
FetcherType GetType() const override;
« no previous file with comments | « content/browser/BUILD.gn ('k') | content/browser/device_sensors/data_fetcher_shared_memory_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698