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

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

Issue 236833003: Rename device_orientation to device_sensors (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 8 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
deleted file mode 100644
index 16a55fe4cd0bf0279639353e9e71504653545ab7..0000000000000000000000000000000000000000
--- a/content/browser/device_orientation/data_fetcher_shared_memory.h
+++ /dev/null
@@ -1,66 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CONTENT_BROWSER_DEVICE_ORIENTATION_DATA_FETCHER_SHARED_MEMORY_H_
-#define CONTENT_BROWSER_DEVICE_ORIENTATION_DATA_FETCHER_SHARED_MEMORY_H_
-
-#include "content/browser/device_orientation/data_fetcher_shared_memory_base.h"
-
-#if !defined(OS_ANDROID)
-#include "content/common/device_orientation/device_motion_hardware_buffer.h"
-#include "content/common/device_orientation/device_orientation_hardware_buffer.h"
-#endif
-
-#if defined(OS_MACOSX)
-class SuddenMotionSensor;
-#elif defined(OS_WIN)
-#include <SensorsApi.h>
-#include "base/win/scoped_comptr.h"
-#endif
-
-namespace content {
-
-class CONTENT_EXPORT DataFetcherSharedMemory
- : public DataFetcherSharedMemoryBase {
-
- public:
- DataFetcherSharedMemory();
- virtual ~DataFetcherSharedMemory();
-
- private:
- virtual bool Start(ConsumerType consumer_type, void* buffer) OVERRIDE;
- virtual bool Stop(ConsumerType consumer_type) OVERRIDE;
-
-#if !defined(OS_ANDROID)
- DeviceMotionHardwareBuffer* motion_buffer_;
- DeviceOrientationHardwareBuffer* orientation_buffer_;
-#endif
-#if defined(OS_MACOSX)
- virtual void Fetch(unsigned consumer_bitmask) OVERRIDE;
- virtual FetcherType GetType() const OVERRIDE;
-
- scoped_ptr<SuddenMotionSensor> sudden_motion_sensor_;
-#elif defined(OS_WIN)
- class SensorEventSink;
- class SensorEventSinkMotion;
- class SensorEventSinkOrientation;
-
- virtual FetcherType GetType() const OVERRIDE;
-
- bool RegisterForSensor(REFSENSOR_TYPE_ID sensor_type, ISensor** sensor,
- scoped_refptr<SensorEventSink> event_sink);
- void DisableSensors(ConsumerType consumer_type);
- void SetBufferAvailableState(ConsumerType consumer_type, bool enabled);
-
- base::win::ScopedComPtr<ISensor> sensor_inclinometer_;
- base::win::ScopedComPtr<ISensor> sensor_accelerometer_;
- base::win::ScopedComPtr<ISensor> sensor_gyrometer_;
-#endif
-
- DISALLOW_COPY_AND_ASSIGN(DataFetcherSharedMemory);
-};
-
-} // namespace content
-
-#endif // CONTENT_BROWSER_DEVICE_ORIENTATION_DATA_FETCHER_SHARED_MEMORY_H_
« no previous file with comments | « content/browser/device_orientation/OWNERS ('k') | content/browser/device_orientation/data_fetcher_shared_memory_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698