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

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

Issue 10755002: Refactors DeviceOrientation to make it more extensible (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Small changes to appease try bots Created 8 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
« no previous file with comments | « no previous file | content/browser/device_orientation/accelerometer_mac.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/device_orientation/accelerometer_mac.h
diff --git a/content/browser/device_orientation/accelerometer_mac.h b/content/browser/device_orientation/accelerometer_mac.h
index d94ddb2543f09591391271cad225c62067df6e8f..48f8f795697d22db46c9e8bd4240a3fefb571b71 100644
--- a/content/browser/device_orientation/accelerometer_mac.h
+++ b/content/browser/device_orientation/accelerometer_mac.h
@@ -10,23 +10,27 @@
#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 device_orientation {
+class Orientation;
+
class AccelerometerMac : public DataFetcher {
public:
static DataFetcher* Create();
// Implement DataFetcher.
- virtual bool GetOrientation(Orientation* orientation) OVERRIDE;
+ virtual const DeviceData* GetDeviceData(DeviceData::Type type) OVERRIDE;
virtual ~AccelerometerMac();
private:
AccelerometerMac();
bool Init();
+ const Orientation* GetOrientation();
scoped_ptr<SuddenMotionSensor> sudden_motion_sensor_;
};
« no previous file with comments | « no previous file | content/browser/device_orientation/accelerometer_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698