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

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: fix compile on win Created 7 years, 3 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_win.cc » ('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 1b5091ea23c6be24db327bf3bdd295f840a5e841..225f1b55c22b58d551e3ad80dc1abde9ea199ff4 100644
--- a/content/browser/device_orientation/data_fetcher_shared_memory.h
+++ b/content/browser/device_orientation/data_fetcher_shared_memory.h
@@ -14,6 +14,9 @@
#if defined(OS_MACOSX)
class SuddenMotionSensor;
+#elif defined(OS_WIN)
+#include <SensorsApi.h>
+#include "base/win/scoped_comptr.h"
#endif
namespace content {
@@ -38,6 +41,11 @@ class CONTENT_EXPORT DataFetcherSharedMemory
virtual bool IsPolling() const OVERRIDE;
scoped_ptr<SuddenMotionSensor> sudden_motion_sensor_;
+#elif defined(OS_WIN)
+ class SensorEventSink;
+ friend SensorEventSink;
+
+ base::win::ScopedComPtr<ISensor> sensor_;
#endif
DISALLOW_COPY_AND_ASSIGN(DataFetcherSharedMemory);
« no previous file with comments | « no previous file | content/browser/device_orientation/data_fetcher_shared_memory_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698