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

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

Issue 22926029: Mac: implement orientation/motion shared memory data fetcher. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: FakeNonPollingDataFetcher on stack Created 7 years, 4 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 | « no previous file | content/browser/device_orientation/data_fetcher_shared_memory_base.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
+#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);
};
« no previous file with comments | « no previous file | content/browser/device_orientation/data_fetcher_shared_memory_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698