blob: 654ae83e843e260bf08d3bf8393e9432f69e48e2 [file] [log] [blame]
// Copyright (c) 2012 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_ACCELEROMETER_MAC_H_
#define CONTENT_BROWSER_DEVICE_ORIENTATION_ACCELEROMETER_MAC_H_
#include <vector>
#include "base/compiler_specific.h"
#include "base/memory/scoped_ptr.h"
#include "content/browser/device_orientation/data_fetcher.h"
#include "content/browser/device_orientation/device_data.h"
class SuddenMotionSensor;
namespace content {
class Orientation;
class AccelerometerMac : public DataFetcher {
public:
static DataFetcher* Create();
// Implement DataFetcher.
virtual const DeviceData* GetDeviceData(DeviceData::Type type) OVERRIDE;
virtual ~AccelerometerMac();
private:
AccelerometerMac();
bool Init();
const Orientation* GetOrientation();
scoped_ptr<SuddenMotionSensor> sudden_motion_sensor_;
};
} // namespace content
#endif // CONTENT_BROWSER_DEVICE_ORIENTATION_ACCELEROMETER_MAC_H_