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

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

Issue 22926032: Win: implement shared memory Device Orientation fetcher. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Aug-23-mac-fetcher
Patch Set: modified to use InitSharedMemoryBuffer() to compile on win 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
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 cbc274a51d2bdc74767a79441a1b512ea6a87801..fd5a4bd83b6ed00a338315b7d4daeda9ce7d85c9 100644
--- a/content/browser/device_orientation/data_fetcher_shared_memory.h
+++ b/content/browser/device_orientation/data_fetcher_shared_memory.h
@@ -14,6 +14,13 @@
class SuddenMotionSensor;
#endif
+#if defined(OS_WIN)
bulach 2013/09/02 13:29:34 nit: could commbine with line 15 with an #elif
timvolodine 2013/09/03 17:14:51 Done.
+#include <SensorsApi.h>
+#include "base/win/scoped_comptr.h"
+#include "content/common/device_motion_hardware_buffer.h"
+#include "content/common/device_orientation/device_orientation_hardware_buffer.h"
+#endif
+
namespace content {
class CONTENT_EXPORT DataFetcherSharedMemory
@@ -37,6 +44,14 @@ class CONTENT_EXPORT DataFetcherSharedMemory
scoped_ptr<SuddenMotionSensor> sudden_motion_sensor_;
#endif
+#if defined(OS_WIN)
+ class SensorEventSink;
+ friend SensorEventSink;
+
+ DeviceOrientationHardwareBuffer* orientation_buffer_;
+ base::win::ScopedComPtr<ISensor> sensor_;
+#endif
+
DISALLOW_COPY_AND_ASSIGN(DataFetcherSharedMemory);
};

Powered by Google App Engine
This is Rietveld 408576698