blob: 4413dd07898ad103553aa2d10c62b362a135f133 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
// 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_
#pragma once
#include <vector>
#include "base/compiler_specific.h"
#include "base/memory/scoped_ptr.h"
#include "content/browser/device_orientation/data_fetcher.h"
class SuddenMotionSensor;
namespace device_orientation {
class AccelerometerMac : public DataFetcher {
public:
static DataFetcher* Create();
// Implement DataFetcher.
virtual bool GetOrientation(Orientation* orientation) OVERRIDE;
virtual ~AccelerometerMac();
private:
AccelerometerMac();
bool Init();
scoped_ptr<SuddenMotionSensor> sudden_motion_sensor_;
};
} // namespace device_orientation
#endif // CONTENT_BROWSER_DEVICE_ORIENTATION_ACCELEROMETER_MAC_H_
|