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

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: Created 8 years, 5 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/accelerometer_mac.h
diff --git a/content/browser/device_orientation/accelerometer_mac.h b/content/browser/device_orientation/accelerometer_mac.h
index 4413dd07898ad103553aa2d10c62b362a135f133..7b3d3f2708374902e91612f7d7db1ce27263dfe9 100644
--- a/content/browser/device_orientation/accelerometer_mac.h
+++ b/content/browser/device_orientation/accelerometer_mac.h
@@ -21,13 +21,14 @@ class AccelerometerMac : public DataFetcher {
static DataFetcher* Create();
// Implement DataFetcher.
- virtual bool GetOrientation(Orientation* orientation) OVERRIDE;
+ virtual bool GetDeviceData(DeviceData* device_data) OVERRIDE;
virtual ~AccelerometerMac();
private:
AccelerometerMac();
bool Init();
+ bool GetOrientation(Orientation* orientation);
scoped_ptr<SuddenMotionSensor> sudden_motion_sensor_;
};

Powered by Google App Engine
This is Rietveld 408576698